crash near null in [@ mozilla::PeerConnectionImpl::UpdateTransport]
Categories
(Core :: WebRTC, defect)
Tracking
()
People
(Reporter: tsmith, Assigned: mjf)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: ai-involved, crash, testcase, Whiteboard: [bugmon:bisected,confirmed])
Crash Data
Attachments
(1 file, 2 external files)
|
1.65 KB,
text/html
|
Details |
Found while fuzzing m-c 20260220-d46c04335970 (--enable-address-sanitizer--enable-fuzzing)
To reproduce via Grizzly Replay:
$ pip install fuzzfetch grizzly-framework --upgrade
$ python -m fuzzfetch -a --fuzzing -n firefox
$ python -m grizzly.replay.bugzilla ./firefox/firefox <bugid>
==610617==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x7bffd17a4b2a bp 0x7fffffffa2d0 sp 0x7fffffffa290 T0)
==610617==The signal is caused by a READ memory access.
==610617==Hint: address points to the zero page.
#0 0x7bffd17a4b2a in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.tcc:0:0
#1 0x7bffda4f8385 in assign /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:1379:8
#2 0x7bffda4f8385 in operator= /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:680:15
#3 0x7bffda4f8385 in mozilla::PeerConnectionImpl::UpdateTransport(mozilla::JsepTransceiver const&, bool) /builds/worker/checkouts/gecko/dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:4301:9
#4 0x7bffda4f7d9c in operator() /builds/worker/checkouts/gecko/dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:4274:11
#5 0x7bffda4f7d9c in ForEachTransceiver<(lambda at /builds/worker/checkouts/gecko/dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:4270:7)> /builds/worker/checkouts/gecko/dom/media/webrtc/jsep/JsepSession.h:142:7
#6 0x7bffda4f7d9c in mozilla::PeerConnectionImpl::UpdateTransports(mozilla::JsepSession const&, bool) /builds/worker/checkouts/gecko/dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:4269:17
#7 0x7bffda5bec57 in operator() /builds/worker/checkouts/gecko/dom/media/webrtc/jsapi/PeerConnectionImpl.cpp:2984:11
#8 0x7bffda5bec57 in mozilla::detail::RunnableFunction<mozilla::PeerConnectionImpl::DoSetDescriptionSuccessPostProcessing(mozilla::dom::RTCSdpType, bool, RefPtr<mozilla::dom::Promise> const&)::$_0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:549:5
#9 0x7bffd191ba0a in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:721:16
#10 0x7bffd190ae4b in mozilla::TaskController::RunTask(mozilla::Task*) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:212:19
#11 0x7bffd191214d in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:1342:20
#12 0x7bffd190fc28 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:1165:15
#13 0x7bffd1910246 in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:657:36
#14 0x7bffd1930fc1 in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:349:37
#15 0x7bffd1930fc1 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:549:5
#16 0x7bffd19520fa in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1169:16
#17 0x7bffd195b2f9 in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:467:10
#18 0x7bffd309bc0e in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:85:21
#19 0x7bffd2f7ace4 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:373:10
#20 0x7bffd2f7ace4 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:366:3
#21 0x7bffd2f7ace4 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:348:3
#22 0x7bffdc9b7706 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:152:27
#23 0x7bffdcb9b7cb in nsAppShell::Run() /builds/worker/checkouts/gecko/widget/gtk/nsAppShell.cpp:555:33
#24 0x7bffdec318dd in XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:652:20
#25 0x7bffd2f7ace4 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:373:10
#26 0x7bffd2f7ace4 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:366:3
#27 0x7bffd2f7ace4 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:348:3
#28 0x7bffdec3082c in XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:590:34
#29 0x55555570812a in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:467:22
Comment 1•8 months ago
|
||
Verified bug as reproducible on mozilla-central 20260223210545-4fcd6061bb96.
Unable to bisect testcase (Testcase reproduces on start build!):
Start: 74fc528d64f449162e2eda609969a49e96c0965b (20250225214549)
End: d46c043359705d9752844c2dcedefdeffb86dee9 (20260220162739)
BuildFlags: BuildFlags(asan=True, tsan=False, debug=False, fuzzing=True, coverage=False, valgrind=False, no_opt=False, fuzzilli=False, nyx=False, searchfox=False, afl=False)
Updated•8 months ago
|
Comment 2•8 months ago
|
||
Looks like we have a transport object without mIce set:
https://searchfox.org/firefox-main/source/dom/media/webrtc/jsapi/PeerConnectionImpl.cpp#4301
Comment 3•8 months ago
|
||
Got a slightly differnet crash from the testcse on Nightly: https://crash-stats.mozilla.org/report/index/0d3a8584-a565-4d71-8067-c20f00260226#tab-details
| Assignee | ||
Comment 4•8 months ago
|
||
I'm looking at this now - this fails in a different way under a debug version with the assert on line 4295 inside aTransceiver.GetLevel().
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 5•8 months ago
|
||
| Assignee | ||
Comment 6•8 months ago
|
||
Comment 8•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/47a0b385bbbb
https://hg.mozilla.org/mozilla-central/rev/e86c2d07eb5a
Comment 9•8 months ago
|
||
Verified bug as fixed on rev mozilla-central 20260303043313-961340a3993b.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
Updated•8 months ago
|
Description
•