Hit MOZ_CRASH(`offset + size` is out of memory block bounds) at /third_party/rust/gpu-alloc/src/block.rs:146
Categories
(Core :: Graphics: WebGPU, defect)
Tracking
()
People
(Reporter: jkratzer, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: crash, testcase, Whiteboard: [bugmon:bisected,confirmed])
Crash Data
Attachments
(2 files)
Testcase found while fuzzing mozilla-central rev 914ead848de4 (built with: --enable-debug --enable-fuzzing).
Testcase can be reproduced using the following commands:
$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build 914ead848de4 --debug --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
Hit MOZ_CRASH(`offset + size` is out of memory block bounds) at /third_party/rust/gpu-alloc/src/block.rs:146
==2992923==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f0e259336d5 bp 0x7f0df40eb730 sp 0x7f0df40eb720 T2992999)
==2992923==The signal is caused by a WRITE memory access.
==2992923==Hint: address points to the zero page.
#0 0x7f0e259336d5 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
#1 0x7f0e259336d5 in RustMozCrash /mozglue/static/rust/wrappers.cpp:18:3
#2 0x7f0e25933534 in mozglue_static::panic_hook::ha203d40143d12c16 /mozglue/static/rust/lib.rs:91:9
#3 0x7f0e259330bb in core::ops::function::Fn::call::h2e8e93985c21adf5 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:70:5
#4 0x7f0e267048f3 in std::panicking::rust_panic_with_hook::h3b7380e99b825b63 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:702:17
#5 0x7f0e24c69fbb in std::panicking::begin_panic::_$u7b$$u7b$closure$u7d$$u7d$::h134181f5206e5d8a /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:617:9
#6 0x7f0e24c697cf in std::sys_common::backtrace::__rust_end_short_backtrace::ha30612ff6900ded3 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18
#7 0x7f0e1bee3f5e in std::panicking::begin_panic::he3a8384241309aa0 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:616:12
#8 0x7f0e24c467ed in gpu_alloc::block::MemoryBlock$LT$M$GT$::map::hb78ad4f80b810f0c /third_party/rust/gpu-alloc/src/block.rs:146:9
#9 0x7f0e24c467ed in wgpu_hal::vulkan::device::_$LT$impl$u20$wgpu_hal..Device$LT$wgpu_hal..vulkan..Api$GT$$u20$for$u20$wgpu_hal..vulkan..Device$GT$::map_buffer::h39121c2ee7752cd0 /third_party/rust/wgpu-hal/src/vulkan/device.rs:787:19
#10 0x7f0e24ad47f0 in wgpu_core::device::map_buffer::h59e5fc119d5b3de9 /third_party/rust/wgpu-core/src/device/mod.rs:164:9
#11 0x7f0e24ad774d in wgpu_core::device::life::LifetimeTracker$LT$A$GT$::handle_mapping::h5180a1ca74d7a7b6 /third_party/rust/wgpu-core/src/device/life.rs:874:27
#12 0x7f0e24ad774d in wgpu_core::device::Device$LT$A$GT$::maintain::h997c28e084236e6a /third_party/rust/wgpu-core/src/device/mod.rs:485:32
#13 0x7f0e249cf32e in wgpu_core::device::_$LT$impl$u20$wgpu_core..hub..Global$LT$G$GT$$GT$::poll_devices::h4e9a3125275c612d /third_party/rust/wgpu-core/src/device/mod.rs:4994:42
#14 0x7f0e249cf32e in wgpu_core::device::_$LT$impl$u20$wgpu_core..hub..Global$LT$G$GT$$GT$::poll_all_devices::h7468047dac86cbd1 /third_party/rust/wgpu-core/src/device/mod.rs:5024:31
#15 0x7f0e249cf32e in wgpu_server_poll_all_devices /gfx/wgpu_bindings/src/server.rs:111:5
#16 0x7f0e1f7814d3 in DispatchToMethod<mozilla::webgpu::WebGPUParent, void (mozilla::webgpu::WebGPUParent::*)()> /ipc/chromium/src/base/tuple.h:381:3
#17 0x7f0e1f7814d3 in base::BaseTimer<mozilla::webgpu::WebGPUParent, true>::TimerTask::Run() /ipc/chromium/src/base/timer.h:157:7
#18 0x7f0e1c36facb in mozilla::DelayedRunnable::Notify(nsITimer*) /xpcom/threads/DelayedRunnable.cpp:92:20
#19 0x7f0e1c3b9e1c in operator() /xpcom/threads/nsTimerImpl.cpp:656:44
#20 0x7f0e1c3b9e1c in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:656:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:657:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:660:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:661:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:309:16
#21 0x7f0e1c3b9e1c in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:656:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:657:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:660:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:661:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:318:14
#22 0x7f0e1c3b9e1c in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:656:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:657:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:660:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:661:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:902:12
#23 0x7f0e1c3b9e1c in match<(lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:656:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:657:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:660:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:661:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:857:12
#24 0x7f0e1c3b9e1c in nsTimerImpl::Fire(int) /xpcom/threads/nsTimerImpl.cpp:654:22
#25 0x7f0e1c38b68e in nsTimerEvent::Run() /xpcom/threads/TimerThread.cpp:263:11
#26 0x7f0e1c397527 in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1174:16
#27 0x7f0e1c39da5d in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:465:10
#28 0x7f0e1cf604b4 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:330:5
#29 0x7f0e1ce87557 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:380:10
#30 0x7f0e1ce87462 in RunHandler /ipc/chromium/src/base/message_loop.cc:373:3
#31 0x7f0e1ce87462 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:355:3
#32 0x7f0e1c392a16 in nsThread::ThreadFunc(void*) /xpcom/threads/nsThread.cpp:378:10
#33 0x7f0e329912e7 in _pt_root /nsprpub/pr/src/pthreads/ptthread.c:201:5
#34 0x7f0e33703608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
#35 0x7f0e332ca132 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
==2992923==ABORTING
Reporter | ||
Comment 1•2 years ago
|
||
Reporter | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Bugmon Analysis
Verified bug as reproducible on mozilla-central 20220527092603-914ead848de4.
Unable to bisect testcase (Testcase reproduces on start build!):
Start: 6adf3e04d40e2a9a1a69dc06fe101dc5a54ef615 (20210528214803)
End: 914ead848de431dcd0f42c2fda013018704b29b9 (20220527092603)
BuildFlags: BuildFlags(asan=False, tsan=False, debug=True, fuzzing=True, coverage=False, valgrind=False, no_opt=False, fuzzilli=False)
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
|
||
Bugmon Analysis
Testcase crashes using the initial build (mozilla-central 20220527092603-914ead848de4) but not with tip (mozilla-central 20220924093346-50f72898d7b8.)
The bug appears to have been fixed in the following build range:
Start: f348ca1573b2fc208e93d96b1468ec0b2aa49e07 (20220919002906)
End: a3b4eca8da815106d4738ff2518b8368220b0db3 (20220919113239)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f348ca1573b2fc208e93d96b1468ec0b2aa49e07&tochange=a3b4eca8da815106d4738ff2518b8368220b0db3
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 6•2 years ago
|
||
This appears to have been fixed via bug 1791297.
Description
•