Crash [@ get]
Categories
(Core :: DOM: Device Interfaces, defect, P2)
Tracking
()
People
(Reporter: jkratzer, Assigned: gsvelto)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, testcase, Whiteboard: [bugmon:bisected,confirmed])
Crash Data
Attachments
(3 files)
Testcase found while fuzzing mozilla-central rev 5c56b92baa65 (built with: --enable-debug --enable-fuzzing).
Testcase can be reproduced using the following commands:
$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build 5c56b92baa65 --debug --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.zip
[@ get]
==517932==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000168 (pc 0x7f0b82fe6436 bp 0x7ffd7a3a7460 sp 0x7ffd7a3a72e0 T517932)
==517932==The signal is caused by a READ memory access.
==517932==Hint: address points to the zero page.
#0 0x7f0b82fe6436 in get /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:747:48
#1 0x7f0b82fe6436 in operator nsIURI * /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:755:33
#2 0x7f0b82fe6436 in GetDocumentURI /builds/worker/workspace/obj-build/dist/include/mozilla/dom/Document.h:761:43
#3 0x7f0b82fe6436 in mozilla::dom::MIDIPort::Initialize(mozilla::dom::MIDIPortInfo const&, bool) /dom/midi/MIDIPort.cpp:66:41
#4 0x7f0b82fe48d5 in Create /dom/midi/MIDIInput.cpp:30:14
#5 0x7f0b82fe48d5 in mozilla::dom::MIDIAccess::MaybeCreateMIDIPort(mozilla::dom::MIDIPortInfo const&, mozilla::ErrorResult&) /dom/midi/MIDIAccess.cpp:153:12
#6 0x7f0b82fe5157 in mozilla::dom::MIDIAccess::Notify(mozilla::dom::MIDIPortList const&) /dom/midi/MIDIAccess.cpp:216:5
#7 0x7f0b82fe60f8 in Broadcast /builds/worker/workspace/obj-build/dist/include/mozilla/Observer.h:66:12
#8 0x7f0b82fe60f8 in mozilla::dom::MIDIAccessManager::Update(mozilla::dom::MIDIPortList const&) /dom/midi/MIDIAccessManager.cpp:166:20
#9 0x7f0b82fe7b29 in mozilla::dom::MIDIManagerChild::RecvMIDIPortListUpdate(mozilla::dom::MIDIPortList const&) /dom/midi/MIDIManagerChild.cpp:21:29
#10 0x7f0b82ff808f in mozilla::dom::PMIDIManagerChild::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PMIDIManagerChild.cpp:152:84
#11 0x7f0b7f3dd8bf in mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) /ipc/glue/MessageChannel.cpp:1800:25
#12 0x7f0b7f3da612 in mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>) /ipc/glue/MessageChannel.cpp:1725:9
#13 0x7f0b7f3db292 in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) /ipc/glue/MessageChannel.cpp:1525:3
#14 0x7f0b7f3dc3df in mozilla::ipc::MessageChannel::MessageTask::Run() /ipc/glue/MessageChannel.cpp:1623:14
#15 0x7f0b7e70d697 in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:559:16
#16 0x7f0b7e705213 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:886:26
#17 0x7f0b7e703a67 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:709:15
#18 0x7f0b7e703ec5 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:495:36
#19 0x7f0b7e7113b6 in operator() /xpcom/threads/TaskController.cpp:218:37
#20 0x7f0b7e7113b6 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /xpcom/threads/nsThreadUtils.h:548:5
#21 0x7f0b7e727bda in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1199:16
#22 0x7f0b7e72eacd in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:480:10
#23 0x7f0b7f3e3825 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:85:21
#24 0x7f0b7f2fe7b1 in RunHandler /ipc/chromium/src/base/message_loop.cc:363:3
#25 0x7f0b7f2fe7b1 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:345:3
#26 0x7f0b83d6fcb8 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:148:27
#27 0x7f0b85fdc75b in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:722:20
#28 0x7f0b7f3e4706 in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:235:9
#29 0x7f0b7f2fe7b1 in RunHandler /ipc/chromium/src/base/message_loop.cc:363:3
#30 0x7f0b7f2fe7b1 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:345:3
#31 0x7f0b85fdbf83 in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:657:34
#32 0x55c15a629926 in content_process_main /browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
#33 0x55c15a629926 in main /browser/app/nsBrowserApp.cpp:375:18
#34 0x7f0b92b87d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#35 0x7f0b92b87e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#36 0x55c15a600bc8 in _start (/home/jkratzer/builds/m-c-20230906091315-fuzzing-debug/firefox-bin+0x58bc8) (BuildId: 32c29819e4a761a6cea3e4573a5d4564a3a8e25f)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:747:48 in get
==517932==ABORTING
Reporter | ||
Comment 1•1 year ago
|
||
Comment 2•1 year ago
|
||
Verified bug as reproducible on mozilla-central 20230906091315-5c56b92baa65.
The bug appears to have been introduced in the following build range:
Start: c5ddc463e9f84902a198e1f14dc97fea3bd4fbef (20221229092636)
End: 9b5c52e4d5ce3d83895213c0f5ffcdce5c46d220 (20221229085942)
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c5ddc463e9f84902a198e1f14dc97fea3bd4fbef&tochange=9b5c52e4d5ce3d83895213c0f5ffcdce5c46d220
Comment 3•1 year ago
|
||
Not sure who's the best person for MIDI. Moving to DOM: Device Interface
.
Comment 4•1 year ago
|
||
This bug has been marked as a regression. Setting status flag for Nightly to affected
.
Comment 5•1 year ago
|
||
I'm not sure what the regressor is from the push log, could it be Bug 1807854?
:cmartin pinging you as triage owner if you could take a look?
Comment 6•1 year ago
|
||
Thanks! Let me forward this to Gabriele, since he worked on the MIDI stuff.
Assignee | ||
Comment 7•1 year ago
|
||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Based on comment #2, this bug contains a bisection range found by bugmon. However, the Regressed by
field is still not filled.
:gsvelto, if possible, could you fill the Regressed by
field and investigate this regression?
For more information, please visit BugBot documentation.
Comment 9•1 year ago
|
||
Set release status flags based on info from the regressing bug 1758468
Updated•1 year ago
|
Assignee | ||
Comment 10•1 year ago
|
||
I tried to adapt the test-case into a crashtest but as much as I tried I couldn't get it to work. I'm attaching the patch here in case I find some time to come back to this.
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
bugherder |
Comment 13•1 year ago
|
||
Bug marked as FIXED but still reproduces on mozilla-central 20230915220551-4f0dacf9e5b5. If you believe this to be incorrect, please remove the bugmon keyword to prevent further analysis.
Assignee | ||
Comment 14•1 year ago
|
||
I'm puzzled, I can't reproduce locally using the testcase in comment 0 and the patch that I just landed, maybe I'm missing something?
Reporter | ||
Comment 15•1 year ago
|
||
I now get the following crash using that testcase on mozilla-central rev 0a60f8be5517 (built with: --enable-debug --enable-fuzzing).
==108992==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f1aeca9e3c9 bp 0x7fff160afa80 sp 0x7fff160afa70 T108992)
==108992==The signal is caused by a WRITE memory access.
==108992==Hint: address points to the zero page.
#0 0x7f1aeca9e3c9 in AssertReportedOrSuppressed /builds/worker/workspace/obj-build/dist/include/mozilla/ErrorResult.h:583:5
#1 0x7f1aeca9e3c9 in mozilla::binding_danger::TErrorResult<mozilla::binding_danger::AssertAndSuppressCleanupPolicy>::~TErrorResult() /builds/worker/workspace/obj-build/dist/include/mozilla/ErrorResult.h:185:7
#2 0x7f1af143cf46 in mozilla::dom::MIDIAccess::Notify(mozilla::dom::MIDIPortList const&) /builds/worker/checkouts/gecko/dom/midi/MIDIAccess.cpp:224:3
#3 0x7f1af143de48 in Broadcast /builds/worker/workspace/obj-build/dist/include/mozilla/Observer.h:66:12
#4 0x7f1af143de48 in mozilla::dom::MIDIAccessManager::Update(mozilla::dom::MIDIPortList const&) /builds/worker/checkouts/gecko/dom/midi/MIDIAccessManager.cpp:166:20
#5 0x7f1af143fa39 in mozilla::dom::MIDIManagerChild::RecvMIDIPortListUpdate(mozilla::dom::MIDIPortList const&) /builds/worker/checkouts/gecko/dom/midi/MIDIManagerChild.cpp:21:29
#6 0x7f1af144ff9f in mozilla::dom::PMIDIManagerChild::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PMIDIManagerChild.cpp:152:84
#7 0x7f1aed82de4f in mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1800:25
#8 0x7f1aed82aba2 in mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1725:9
#9 0x7f1aed82b822 in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1525:3
#10 0x7f1aed82c96f in mozilla::ipc::MessageChannel::MessageTask::Run() /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1623:14
#11 0x7f1aecb64767 in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:559:16
#12 0x7f1aecb5c2e3 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:886:26
#13 0x7f1aecb5ab37 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:709:15
#14 0x7f1aecb5af95 in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:495:36
#15 0x7f1aecb68486 in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:218:37
#16 0x7f1aecb68486 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:548:5
#17 0x7f1aecb7ecaa in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1199:16
#18 0x7f1aecb85b9d in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10
#19 0x7f1aed833db5 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:85:21
#20 0x7f1aed74e881 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
#21 0x7f1aed74e881 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
#22 0x7f1af21dbcd8 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:148:27
#23 0x7f1af43fa4db in XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:721:20
#24 0x7f1aed834c96 in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:235:9
#25 0x7f1aed74e881 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
#26 0x7f1aed74e881 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
#27 0x7f1af43f9cfe in XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:656:34
#28 0x5586c15af926 in content_process_main /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
#29 0x5586c15af926 in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:375:18
#30 0x7f1b00f92d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#31 0x7f1b00f92e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#32 0x5586c1586bc8 in _start (/home/jkratzer/builds/m-c-20230919093728-fuzzing-debug/firefox-bin+0x58bc8) (BuildId: a4dc98feb33e4d66b8770ed74681d0bb5ffc0fad)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/mozilla/ErrorResult.h:583:5 in AssertReportedOrSuppressed
Reporter | ||
Comment 16•1 year ago
|
||
Using an asan build, this reproduces the issue listed in bug 1851829.
Assignee | ||
Comment 17•1 year ago
|
||
The issue in comment 15 appears to be a separate problem, I'll file a new bug for it.
Comment 18•1 year ago
|
||
Set release status flags based on info from the regressing bug 1758468
Comment 19•1 year ago
|
||
The severity field is not set for this bug.
:cmartin, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 20•1 year ago
|
||
:gsvelto wondering about the current status of this?
It was reopened and additional fixes landed in Fx120 under Bug 1854386 and Bug 1851829 (re: comment 16 and comment 17)
Should this bug be resolved as fixed in Fx119? Then let Bug 1854386 and Bug 1851829 ride the train with Fx120?
Assignee | ||
Comment 21•1 year ago
|
||
Yes, this was definitely fixed when bug 1854386 landed.
Updated•1 year ago
|
Comment 22•1 year ago
|
||
Bug marked as FIXED but still reproduces on mozilla-central 20230915220551-4f0dacf9e5b5. If you believe this to be incorrect, please remove the bugmon keyword to prevent further analysis.
Reporter | ||
Comment 23•1 year ago
|
||
Sorry. Bugmon was still enabled for this bug. Marking as resolved.
Updated•1 year ago
|
Comment 24•1 year ago
|
||
uplift |
Updated•1 year ago
|
Comment 25•1 year ago
|
||
backout uplift |
https://hg.mozilla.org/releases/mozilla-esr115/rev/65c5636f9da63321782f6fc0a5212b5d92f2a2d3
Backed out changeset c4ed9a9b1665 (Bug 1851847) with 1856659 and 1851729 for causing crashtests failures
https://treeherder.mozilla.org/jobs?repo=mozilla-esr115&selectedTaskRun=LMiilIeWRE-SwK-iGYD0ag.0&searchStr=crashtest&revision=122fd292adeb25eede6a3fd37b77dd1100fa5b60&group_state=expanded
Comment 26•1 year ago
|
||
uplift |
Updated•1 year ago
|
Description
•