Hit MOZ_CRASH(called `Result::unwrap()` on an `Err` value: UnalignedRange) at gfx/wgpu_bindings/src/server.rs:372
Categories
(Core :: Graphics: WebGPU, defect, P3)
Tracking
()
People
(Reporter: jkratzer, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: testcase, Whiteboard: [bugmon:bisected,confirmed])
Crash Data
Attachments
(1 file)
422 bytes,
text/plain
|
Details |
Testcase found while fuzzing mozilla-central rev 0ac3dabcf588 (built with: --enable-debug --enable-fuzzing).
Testcase can be reproduced using the following commands:
$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build 0ac3dabcf588 --debug --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
Hit MOZ_CRASH(called `Result::unwrap()` on an `Err` value: UnalignedRange) at gfx/wgpu_bindings/src/server.rs:372
==3262721==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f82f56c4785 bp 0x7f82b4a11e00 sp 0x7f82b4a11df0 T3262802)
==3262721==The signal is caused by a WRITE memory access.
==3262721==Hint: address points to the zero page.
#0 0x7f82f56c4785 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
#1 0x7f82f56c4785 in RustMozCrash /mozglue/static/rust/wrappers.cpp:18:3
#2 0x7f82f56c4708 in mozglue_static::panic_hook::hc73c6ec992377969 /mozglue/static/rust/lib.rs:91:9
#3 0x7f82f56c418b in core::ops::function::Fn::call::h3d3ab1c02c30d6c6 /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/ops/function.rs:77:5
#4 0x7f82f66878d5 in std::panicking::rust_panic_with_hook::hc82286af2030e925 /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:702:17
#5 0x7f82f66876d6 in std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::h1c15057c2f09081f /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:588:13
#6 0x7f82f6684893 in std::sys_common::backtrace::__rust_end_short_backtrace::h65de906a5330f8da /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/sys_common/backtrace.rs:138:18
#7 0x7f82f6687408 in rust_begin_unwind /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:584:5
#8 0x7f82ebdf0a02 in core::panicking::panic_fmt::h741cfbfc95bc6112 /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/panicking.rs:142:14
#9 0x7f82ebdf0af2 in core::result::unwrap_failed::h995262f85f9c4e2c /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/result.rs:1785:5
#10 0x7f82f49ec56a in wgpu_server_buffer_map /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/result.rs
#11 0x7f82ef5d4c4a in mozilla::webgpu::WebGPUParent::RecvBufferMap(unsigned long, mozilla::webgpu::ffi::WGPUHostMap, unsigned long, unsigned long, std::function<void (mozilla::ipc::Shmem&&)>&&) /dom/webgpu/ipc/WebGPUParent.cpp:407:3
#12 0x7f82ef5ee0c8 in mozilla::webgpu::PWebGPUParent::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PWebGPUParent.cpp:958:80
#13 0x7f82ed6dc7ee in mozilla::gfx::PCanvasManagerParent::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PCanvasManagerParent.cpp:214:32
#14 0x7f82ecd724f1 in mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) /ipc/glue/MessageChannel.cpp:1749:25
#15 0x7f82ecd6f045 in mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageChannel.cpp:1674:9
#16 0x7f82ecd6fbe6 in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) /ipc/glue/MessageChannel.cpp:1474:3
#17 0x7f82ecd70f71 in mozilla::ipc::MessageChannel::MessageTask::Run() /ipc/glue/MessageChannel.cpp:1572:14
#18 0x7f82ec1a3bb7 in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1199:16
#19 0x7f82ec1aa0fd in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:465:10
#20 0x7f82ecd791f4 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:330:5
#21 0x7f82ecc9e397 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:380:10
#22 0x7f82ecc9e2a2 in RunHandler /ipc/chromium/src/base/message_loop.cc:373:3
#23 0x7f82ecc9e2a2 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:355:3
#24 0x7f82ec19eee6 in nsThread::ThreadFunc(void*) /xpcom/threads/nsThread.cpp:384:10
#25 0x7f830294e557 in _pt_root /nsprpub/pr/src/pthreads/ptthread.c:201:5
#26 0x7f83036c0608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
#27 0x7f8303287132 in __clone /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3 in MOZ_Crash
==3262721==ABORTING
Reporter | ||
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
Bugmon Analysis
Verified bug as reproducible on mozilla-central 20220718184409-e8822bdecf78.
Unable to bisect testcase (Testcase reproduces on start build!):
Start: d71ea8ccda7bdd3d2d6968a05a65716e39bd62bb (20210720094604)
End: 0ac3dabcf588387aba58cdf2ff7400d05aa8ccd0 (20220717090304)
BuildFlags: BuildFlags(asan=False, tsan=False, debug=True, fuzzing=True, coverage=False, valgrind=False, no_opt=False, fuzzilli=False, nyx=False)
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
The severity field is not set for this bug.
:jimb, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 5•2 years ago
|
||
Looks like this was fixed by bug 1777535.
Comment 6•2 years ago
|
||
Bugmon Analysis
Testcase crashes using the initial build (mozilla-central 20220717090304-0ac3dabcf588) but not with tip (mozilla-central 20220812214215-fbae7216fa06.)
The bug appears to have been fixed in the following build range:
Start: 880cac21dca544a25fa34b5d0c6599d0fd240c17 (20220810143834)
End: bdb42cfe62138374343d5be83ac208826812cd2d (20220810161147)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=880cac21dca544a25fa34b5d0c6599d0fd240c17&tochange=bdb42cfe62138374343d5be83ac208826812cd2d
jkratzer, can you confirm that the above bisection range is responsible for fixing this issue?
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
Reporter | ||
Comment 7•2 years ago
|
||
Per comment 5 and the bugmon fix bisection, this was fixed via bug 1777535.
Reporter | ||
Updated•2 years ago
|
Description
•