Crash [@ get]
Categories
(Core :: Print Preview, defect)
Tracking
()
People
(Reporter: jkratzer, Assigned: jwatt, NeedInfo)
References
(Blocks 1 open bug, Regression, )
Details
(Keywords: bugmon, regression, testcase, Whiteboard: [bugmon:bisected,confirmed])
Crash Data
Attachments
(1 file)
242 bytes,
text/plain
|
Details |
Testcase found while fuzzing mozilla-central rev ae6487188557 (built with: --enable-address-sanitizer --enable-fuzzing).
Testcase can be reproduced using the following commands:
$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build ae6487188557 --asan --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
[@ get]
=================================================================
==3476443==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000020 (pc 0x7f7c5fd6b412 bp 0x7ffdeb4db230 sp 0x7ffdeb4db140 T0)
==3476443==The signal is caused by a READ memory access.
==3476443==Hint: address points to the zero page.
#0 0x7f7c5fd6b412 in get /builds/worker/workspace/obj-build/dist/include/mozilla/UniquePtr.h:290:32
#1 0x7f7c5fd6b412 in operator-> /builds/worker/workspace/obj-build/dist/include/mozilla/UniquePtr.h:285:12
#2 0x7f7c5fd6b412 in nsPrintJob::ShouldResumePrint() const /layout/printing/nsPrintJob.cpp:1258:19
#3 0x7f7c5fd6af53 in nsPrintJob::MaybeResumePrintAfterResourcesLoaded(bool) /layout/printing/nsPrintJob.cpp:1271:8
#4 0x7f7c5fd61cfe in nsPrintJob::InitPrintDocConstruction(bool) /layout/printing/nsPrintJob.cpp:1250:3
#5 0x7f7c5fd5e320 in nsPrintJob::DoCommonPrint(bool, nsIPrintSettings*, nsIWebProgressListener*, mozilla::dom::Document*) /layout/printing/nsPrintJob.cpp:619:3
#6 0x7f7c5fd5c9f3 in nsPrintJob::CommonPrint(bool, nsIPrintSettings*, nsIWebProgressListener*, mozilla::dom::Document*) /layout/printing/nsPrintJob.cpp:457:17
#7 0x7f7c5fd62622 in nsPrintJob::PrintPreview(mozilla::dom::Document*, nsIPrintSettings*, nsIWebProgressListener*, std::function<void (mozilla::dom::PrintPreviewResultInfo const&)>&&) /layout/printing/nsPrintJob.cpp:676:7
#8 0x7f7c5f5b489a in nsDocumentViewer::PrintPreview(nsIPrintSettings*, nsIWebProgressListener*, std::function<void (mozilla::dom::PrintPreviewResultInfo const&)>&&) /layout/base/nsDocumentViewer.cpp:2980:18
#9 0x7f7c5a15b9de in nsGlobalWindowOuter::Print(nsIPrintSettings*, nsIWebProgressListener*, nsIDocShell*, nsGlobalWindowOuter::IsPreview, nsGlobalWindowOuter::IsForWindowDotPrint, std::function<void (mozilla::dom::PrintPreviewResultInfo const&)>&&, mozilla::ErrorResult&) /dom/base/nsGlobalWindowOuter.cpp:5337:33
#10 0x7f7c5a0f59a1 in nsGlobalWindowInner::PrintPreview(nsIPrintSettings*, nsIWebProgressListener*, nsIDocShell*, mozilla::ErrorResult&) /dom/base/nsGlobalWindowInner.cpp:3816:3
#11 0x7f7c5ba54dd1 in mozilla::dom::Window_Binding::printPreview(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&) /builds/worker/workspace/obj-build/dom/bindings/WindowBinding.cpp:3216:59
#12 0x7f7c5c25794b in bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::MaybeCrossOriginObjectThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*) /dom/bindings/BindingUtils.cpp:3306:13
#13 0x7f7c63f7d094 in CallJSNative /js/src/vm/Interpreter.cpp:425:13
#14 0x7f7c63f7d094 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /js/src/vm/Interpreter.cpp:512:12
#15 0x7f7c63f7f31b in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /js/src/vm/Interpreter.cpp:589:8
#16 0x7f7c64742563 in js::ForwardingProxyHandler::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const /js/src/proxy/Wrapper.cpp:166:10
#17 0x7f7c647132dd in js::CrossCompartmentWrapper::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const /js/src/proxy/CrossCompartmentWrapper.cpp:227:19
#18 0x7f7c6472b296 in js::Proxy::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) /js/src/proxy/Proxy.cpp:654:19
#19 0x7f7c63f7d513 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /js/src/vm/Interpreter.cpp:492:14
#20 0x7f7c63f695ae in CallFromStack /js/src/vm/Interpreter.cpp:576:10
#21 0x7f7c63f695ae in Interpret(JSContext*, js::RunState&) /js/src/vm/Interpreter.cpp:3309:16
#22 0x7f7c63f4e3b1 in js::RunScript(JSContext*, js::RunState&) /js/src/vm/Interpreter.cpp:394:13
#23 0x7f7c63f7d1cf in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /js/src/vm/Interpreter.cpp:544:13
#24 0x7f7c63f7f31b in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /js/src/vm/Interpreter.cpp:589:8
#25 0x7f7c6413540d in JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) /js/src/vm/CallAndConstruct.cpp:117:10
#26 0x7f7c5be7f6a9 in mozilla::dom::EventListener::HandleEvent(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::dom::Event&, mozilla::ErrorResult&) /builds/worker/workspace/obj-build/dom/bindings/EventListenerBinding.cpp:62:8
#27 0x7f7c5cb49954 in void mozilla::dom::EventListener::HandleEvent<mozilla::dom::EventTarget*>(mozilla::dom::EventTarget* const&, mozilla::dom::Event&, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*) /builds/worker/workspace/obj-build/dist/include/mozilla/dom/EventListenerBinding.h:65:12
#28 0x7f7c5cb49410 in mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*) /dom/events/EventListenerManager.cpp:1308:43
#29 0x7f7c5cb4aabc in mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool) /dom/events/EventListenerManager.cpp:1505:17
#30 0x7f7c5cb38bde in mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&) /dom/events/EventDispatcher.cpp:348:17
#31 0x7f7c5cb373ed in mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&) /dom/events/EventDispatcher.cpp:550:16
#32 0x7f7c5cb3b665 in mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*) /dom/events/EventDispatcher.cpp:1085:11
#33 0x7f7c5f5a80f7 in nsDocumentViewer::LoadComplete(nsresult) /layout/base/nsDocumentViewer.cpp:1084:7
#34 0x7f7c6300bad3 in nsDocShell::EndPageLoad(nsIWebProgress*, nsIChannel*, nsresult) /docshell/base/nsDocShell.cpp:6403:20
#35 0x7f7c6300adcb in nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult) /docshell/base/nsDocShell.cpp:5792:7
#36 0x7f7c6300cd9f in non-virtual thunk to nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult) /docshell/base/nsDocShell.cpp
#37 0x7f7c59107830 in nsDocLoader::DoFireOnStateChange(nsIWebProgress*, nsIRequest*, int&, nsresult) /uriloader/base/nsDocLoader.cpp:1377:3
#38 0x7f7c59106444 in nsDocLoader::doStopDocumentLoad(nsIRequest*, nsresult) /uriloader/base/nsDocLoader.cpp:975:14
#39 0x7f7c59102c72 in nsDocLoader::DocLoaderIsEmpty(bool, mozilla::Maybe<nsresult> const&) /uriloader/base/nsDocLoader.cpp:794:9
#40 0x7f7c59104e35 in nsDocLoader::OnStopRequest(nsIRequest*, nsresult) /uriloader/base/nsDocLoader.cpp:677:5
#41 0x7f7c630459bb in nsDocShell::OnStopRequest(nsIRequest*, nsresult) /docshell/base/nsDocShell.cpp:13715:23
#42 0x7f7c56df922e in mozilla::net::nsLoadGroup::NotifyRemovalObservers(nsIRequest*, nsresult) /netwerk/base/nsLoadGroup.cpp:614:22
#43 0x7f7c56dfbc73 in mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult) /netwerk/base/nsLoadGroup.cpp:518:10
#44 0x7f7c5a36cb62 in mozilla::dom::Document::DoUnblockOnload() /dom/base/Document.cpp:11549:18
#45 0x7f7c5a319f67 in mozilla::dom::Document::UnblockOnload(bool) /dom/base/Document.cpp:11479:9
#46 0x7f7c5a34491c in mozilla::dom::Document::DispatchContentLoadedEvents() /dom/base/Document.cpp:7994:3
#47 0x7f7c5a43459d in applyImpl<mozilla::dom::Document, void (mozilla::dom::Document::*)()> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1147:12
#48 0x7f7c5a43459d in apply<mozilla::dom::Document, void (mozilla::dom::Document::*)()> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1153:12
#49 0x7f7c5a43459d in mozilla::detail::RunnableMethodImpl<mozilla::dom::Document*, void (mozilla::dom::Document::*)(), true, (mozilla::RunnableKind)0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1200:13
#50 0x7f7c56a5b79f in mozilla::SchedulerGroup::Runnable::Run() /xpcom/threads/SchedulerGroup.cpp:140:20
#51 0x7f7c56aaa5d2 in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:467:16
#52 0x7f7c56a6ec5d in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:770:26
#53 0x7f7c56a6c1b8 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:606:15
#54 0x7f7c56a6c8c9 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:390:36
#55 0x7f7c56ab2cd1 in operator() /xpcom/threads/TaskController.cpp:124:37
#56 0x7f7c56ab2cd1 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_0>::Run() /xpcom/threads/nsThreadUtils.h:531:5
#57 0x7f7c56a8f9c7 in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1171:16
#58 0x7f7c56a9af3c in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:467:10
#59 0x7f7c57fc1ccf in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:85:21
#60 0x7f7c57e3a341 in RunInternal /ipc/chromium/src/base/message_loop.cc:331:10
#61 0x7f7c57e3a341 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
#62 0x7f7c57e3a341 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
#63 0x7f7c5ef436f7 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:137:27
#64 0x7f7c63c9988f in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:878:20
#65 0x7f7c57e3a341 in RunInternal /ipc/chromium/src/base/message_loop.cc:331:10
#66 0x7f7c57e3a341 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
#67 0x7f7c57e3a341 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
#68 0x7f7c63c98ac3 in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:715:34
#69 0x55ab6a39680d in content_process_main(mozilla::Bootstrap*, int, char**) /browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
#70 0x55ab6a396c40 in main /browser/app/nsBrowserApp.cpp:327:18
#71 0x7f7c7b4e60b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#72 0x55ab6a2e58d9 in _start (/home/jkratzer/builds/mc-asan/firefox+0x5d8d9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/mozilla/UniquePtr.h:290:32 in get
==3476443==ABORTING
Reporter | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
AFAICS, it wouldn't be possible for web content to do this, because the printPreview()
method isn't web-exposed.
@jwatt, do you think we should be concerned about this, or is it just an expected result of misusing a chrome-only API?
Comment 3•2 years ago
|
||
Bugmon Analysis
Verified bug as reproducible on mozilla-central 20220216214005-d0676cb0864b.
The bug appears to have been introduced in the following build range:
Start: e8c61e20953952b1c6727143e249656e9ef87cb2 (20211216135031)
End: 9896c12c490709e214030cd99f598e1ffa0076de (20211216153418)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e8c61e20953952b1c6727143e249656e9ef87cb2&tochange=9896c12c490709e214030cd99f598e1ffa0076de
Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
:jwatt, since this bug contains a bisection range, could you fill (if possible) the regressed_by field?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 5•2 years ago
|
||
I'll revisit this after fixing bug 1747851 since the fix for that may fix this also.
Comment 6•2 years ago
|
||
Set release status flags based on info from the regressing bug 1745452
Updated•2 years ago
|
Updated•2 years ago
|
Comment 7•2 years ago
|
||
The severity field is not set for this bug.
:hiro, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Comment 8•2 years ago
|
||
S3 since the API triggers this crash, printPreview() isn't available on the Web.
Comment 9•2 years ago
|
||
(In reply to Jonathan Watt [:jwatt] from comment #5)
I'll revisit this after fixing bug 1747851 since the fix for that may fix this also.
Ticking ni=you as a reminder. :)
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 10•11 months ago
|
||
Bugmon was unable reproduce this issue.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
Reporter | ||
Comment 11•11 months ago
|
||
A change to the Taskcluster build definitions over the weekend caused Bugmon to fail when reproducing issues. This issue has been corrected. Re-enabling bugmon.
Updated•2 months ago
|
Updated•1 month ago
|
Updated•17 days ago
|
Description
•