Hit MOZ_CRASH(`offset` is out of memory block bounds) at /third_party/rust/gpu-alloc/src/block.rs:145
Categories
(Core :: Graphics: WebGPU, defect, P2)
Tracking
()
People
(Reporter: jkratzer, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: testcase, Whiteboard: [bugmon:bisected,confirmed])
Crash Data
Attachments
(1 file)
|
465 bytes,
text/plain
|
Details |
Testcase found while fuzzing mozilla-central rev 9530a7bf5efa (built with: --enable-address-sanitizer --enable-fuzzing).
Testcase can be reproduced using the following commands:
$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build 9530a7bf5efa --asan --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
Hit MOZ_CRASH(`offset` is out of memory block bounds) at /third_party/rust/gpu-alloc/src/block.rs:145
=================================================================
==2634399==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000001 (pc 0x7f246516f280 bp 0x7f241ad42730 sp 0x7f241ad42720 T78)
==2634399==The signal is caused by a WRITE memory access.
==2634399==Hint: address points to the zero page.
#0 0x7f246516f280 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
#1 0x7f246516f280 in RustMozCrash /mozglue/static/rust/wrappers.cpp:18:3
#2 0x7f246516f1a6 in mozglue_static::panic_hook::hfa977cf1421d9ca6 /mozglue/static/rust/lib.rs:91:9
#3 0x7f246516de65 in core::ops::function::Fn::call::h875c5534bb524182 /builds/worker/fetches/rust/library/core/src/ops/function.rs:70:5
#4 0x7f24680f1a37 in std::panicking::rust_panic_with_hook::h213176a09718247f (/home/jkratzer/builds/mc-asan/libxul.so+0x1f413a37)
#5 0x7f2461da3731 in std::panicking::begin_panic::_$u7b$$u7b$closure$u7d$$u7d$::hd7b5a399490ebf40 /builds/worker/fetches/rust/library/std/src/panicking.rs:526:9
#6 0x7f2461d9d279 in std::sys_common::backtrace::__rust_end_short_backtrace::h63ff03180a6e11fd /builds/worker/fetches/rust/library/std/src/sys_common/backtrace.rs:139:18
#7 0x7f245109f1eb in std::panicking::begin_panic::h7527468948009430 /builds/worker/fetches/rust/library/std/src/panicking.rs:525:12
#8 0x7f2461f2a081 in gpu_alloc::block::MemoryBlock$LT$M$GT$::map::hb2910dd1b72c4fee /third_party/rust/gpu-alloc/src/block.rs:145:9
#9 0x7f2461f2a081 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::h6b98c96648b80ad7 /third_party/rust/wgpu-hal/src/vulkan/device.rs:769:19
#10 0x7f24617436f6 in wgpu_core::device::map_buffer::hd3374d3f4410102d /third_party/rust/wgpu-core/src/device/mod.rs:162:9
#11 0x7f246178ffde in wgpu_core::device::life::LifetimeTracker$LT$A$GT$::handle_mapping::haa54180b682c839e /third_party/rust/wgpu-core/src/device/life.rs:727:27
#12 0x7f246178ffde in wgpu_core::device::Device$LT$A$GT$::maintain::hbe60d9f5294a6a0e /third_party/rust/wgpu-core/src/device/mod.rs:452:32
#13 0x7f24618e93f7 in wgpu_core::device::_$LT$impl$u20$wgpu_core..hub..Global$LT$G$GT$$GT$::poll_devices::h7aad310dc5c62076 /third_party/rust/wgpu-core/src/device/mod.rs:4871:23
#14 0x7f24618e93f7 in wgpu_core::device::_$LT$impl$u20$wgpu_core..hub..Global$LT$G$GT$$GT$::poll_all_devices::he4936d6ad5cca182 /third_party/rust/wgpu-core/src/device/mod.rs:4882:13
#15 0x7f24618e93f7 in wgpu_server_poll_all_devices /gfx/wgpu_bindings/src/server.rs:87:5
#16 0x7f245802590d in DispatchToMethod<mozilla::webgpu::WebGPUParent, void (mozilla::webgpu::WebGPUParent::*)()> /ipc/chromium/src/base/tuple.h:381:3
#17 0x7f245802590d in base::BaseTimer<mozilla::webgpu::WebGPUParent, true>::TimerTask::Run() /ipc/chromium/src/base/timer.h:157:7
#18 0x7f24521915d4 in mozilla::DelayedRunnable::DoRun() /xpcom/threads/DelayedRunnable.cpp:71:13
#19 0x7f245221587c in operator() /xpcom/threads/nsTimerImpl.cpp:654:44
#20 0x7f245221587c in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:309:16
#21 0x7f245221587c in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:653:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:318:14
#22 0x7f245221587c in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:653:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:902:12
#23 0x7f245221587c in match<(lambda at /xpcom/threads/nsTimerImpl.cpp:653:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:857:12
#24 0x7f245221587c in nsTimerImpl::Fire(int) /xpcom/threads/nsTimerImpl.cpp:652:22
#25 0x7f24521be66f in nsTimerEvent::Run() /xpcom/threads/TimerThread.cpp:265:11
#26 0x7f24521d21cb in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1189:16
#27 0x7f24521dcb7c in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:467:10
#28 0x7f24536f1251 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:330:5
#29 0x7f2453574971 in RunInternal /ipc/chromium/src/base/message_loop.cc:331:10
#30 0x7f2453574971 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
#31 0x7f2453574971 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
#32 0x7f24521ca6df in nsThread::ThreadFunc(void*) /xpcom/threads/nsThread.cpp:391:10
#33 0x7f2474e2602e in _pt_root /nsprpub/pr/src/pthreads/ptthread.c:201:5
#34 0x7f2476f3c608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477:8
#35 0x7f2476b04292 in __clone /build/glibc-eX1tMB/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3 in MOZ_Crash
Thread T78 (Compositor) created by T0 here:
#0 0x557893cb0e1c in __interceptor_pthread_create /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cpp:207:3
#1 0x7f2474e160b4 in _PR_CreateThread /nsprpub/pr/src/pthreads/ptthread.c:458:14
#2 0x7f2474e0735e in PR_CreateThread /nsprpub/pr/src/pthreads/ptthread.c:533:12
#3 0x7f24521cda25 in nsThread::Init(nsTSubstring<char> const&) /xpcom/threads/nsThread.cpp:627:18
#4 0x7f24521da95f in nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /xpcom/threads/nsThreadManager.cpp:581:12
#5 0x7f24521e5ef1 in NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /xpcom/threads/nsThreadUtils.cpp:163:57
#6 0x7f2454fd3882 in NS_NewNamedThread<11UL> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:74:10
#7 0x7f2454fd3882 in mozilla::layers::CompositorThreadHolder::CreateCompositorThread() /gfx/layers/ipc/CompositorThread.cpp:62:17
#8 0x7f2454fd3c06 in CompositorThreadHolder /gfx/layers/ipc/CompositorThread.cpp:39:25
#9 0x7f2454fd3c06 in mozilla::layers::CompositorThreadHolder::Start() /gfx/layers/ipc/CompositorThread.cpp:103:33
#10 0x7f24551ac407 in InitLayersIPC /gfx/thebes/gfxPlatform.cpp:1301:5
#11 0x7f24551ac407 in gfxPlatform::Init() /gfx/thebes/gfxPlatform.cpp:963:3
#12 0x7f24551af560 in GetPlatform /gfx/thebes/gfxPlatform.cpp:467:5
#13 0x7f24551af560 in gfxPlatform::InitializeCMS() /gfx/thebes/gfxPlatform.cpp:2090:9
#14 0x7f245a55af6d in GetCMSMode /builds/worker/workspace/obj-build/dist/include/gfxPlatform.h:521:5
#15 0x7f245a55af6d in nsXPLookAndFeel::GetColorValue(mozilla::StyleSystemColor, mozilla::ColorScheme, mozilla::LookAndFeel::UseStandins, unsigned int&) /widget/nsXPLookAndFeel.cpp:868:9
#16 0x7f245a55edae in mozilla::LookAndFeel::GetColor(mozilla::StyleSystemColor, mozilla::ColorScheme, mozilla::LookAndFeel::UseStandins) /widget/nsXPLookAndFeel.cpp:1252:47
#17 0x7f245a4d2dc8 in Color /builds/worker/workspace/obj-build/dist/include/mozilla/LookAndFeel.h:446:12
#18 0x7f245a4d2dc8 in ThemedAccentColor /widget/ThemeColors.cpp:89:37
#19 0x7f245a4d2dc8 in mozilla::widget::ThemeColors::RecomputeAccentColors() /widget/ThemeColors.cpp:170:20
#20 0x7f245a4d2a45 in mozilla::widget::Theme::LookAndFeelChanged() /widget/Theme.cpp:178:3
#21 0x7f245a559452 in nsXPLookAndFeel::GetInstance() /widget/nsXPLookAndFeel.cpp:359:3
#22 0x7f245a55f7ad in mozilla::LookAndFeel::GetThemeInfo(nsTSubstring<char>&) /widget/nsXPLookAndFeel.cpp:1369:3
#23 0x7f2452027047 in nsSystemInfo::Init() /xpcom/base/nsSystemInfo.cpp:1047:5
#24 0x7f245212eeaf in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:9164:7
#25 0x7f245217dcb7 in CreateInstance /xpcom/components/nsComponentManager.cpp:181:46
#26 0x7f245217dcb7 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /xpcom/components/nsComponentManager.cpp:1288:17
#27 0x7f245217e768 in nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /xpcom/components/nsComponentManager.cpp:1378:10
#28 0x7f2452152e0d in mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12288:50
#29 0x7f2451fdd4c1 in nsCOMPtr_base::assign_from_helper(nsCOMPtr_helper const&, nsID const&) /xpcom/base/nsCOMPtr.cpp:109:7
#30 0x7f24545ef85c in nsCOMPtr /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:999:5
#31 0x7f24545ef85c in GetServiceImpl /js/xpconnect/src/JSServices.cpp:84:32
#32 0x7f24545ef85c in GetService /js/xpconnect/src/JSServices.cpp:131:8
#33 0x7f24545ef85c in xpc::Services_Resolve(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::PropertyKey>, bool*) /js/xpconnect/src/JSServices.cpp:154:25
#34 0x7f245fa0cd57 in CallResolveOp /js/src/vm/NativeObject-inl.h:640:8
#35 0x7f245fa0cd57 in NativeLookupOwnPropertyInline<js::CanGC, js::LookupResolveMode::CheckResolve> /js/src/vm/NativeObject-inl.h:760:14
#36 0x7f245fa0cd57 in NativeGetPropertyInline<js::CanGC> /js/src/vm/NativeObject.cpp:2127:10
#37 0x7f245fa0cd57 in js::NativeGetProperty(JSContext*, JS::Handle<js::NativeObject*>, JS::Handle<JS::Value>, JS::Handle<JS::PropertyKey>, JS::MutableHandle<JS::Value>) /js/src/vm/NativeObject.cpp:2175:10
#38 0x7f245f523049 in GetProperty /js/src/vm/ObjectOperations-inl.h:120:10
#39 0x7f245f523049 in js::GetProperty(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::PropertyName*, JS::MutableHandle<JS::Value>) /js/src/vm/ObjectOperations-inl.h:127:10
#40 0x7f245f5226a4 in js::GetProperty(JSContext*, JS::Handle<JS::Value>, JS::Handle<js::PropertyName*>, JS::MutableHandle<JS::Value>) /js/src/vm/Interpreter.cpp:4710:10
#41 0x7f245f4f3448 in GetPropertyOperation /js/src/vm/Interpreter.cpp:208:10
#42 0x7f245f4f3448 in Interpret(JSContext*, js::RunState&) /js/src/vm/Interpreter.cpp:2973:12
#43 0x7f245f4eac21 in js::RunScript(JSContext*, js::RunState&) /js/src/vm/Interpreter.cpp:394:13
#44 0x7f245f519acf in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /js/src/vm/Interpreter.cpp:544:13
#45 0x7f245f51bc1b 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
#46 0x7f245f7987fc in JS_CallFunctionValue(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) /js/src/vm/CallAndConstruct.cpp:53:10
#47 0x7f24546377f0 in nsXPCWrappedJS::CallMethod(unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) /js/xpconnect/src/XPCWrappedJSClass.cpp:973:17
#48 0x7f2452223852 in PrepareAndDispatch /xpcom/reflect/xptcall/md/unix/xptcstubs_x86_64_linux.cpp:115:37
#49 0x7f24522225da in SharedStub xptcstubs_x86_64_linux.cpp
#50 0x7f2452174042 in NS_CreateServicesFromCategory(char const*, nsISupports*, char const*, char16_t const*) /xpcom/components/nsCategoryManager.cpp:687:19
#51 0x7f245f251e19 in nsXREDirProvider::DoStartup() /toolkit/xre/nsXREDirProvider.cpp:978:11
#52 0x7f245f22d303 in XREMain::XRE_mainRun() /toolkit/xre/nsAppRunner.cpp:5106:18
#53 0x7f245f230389 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /toolkit/xre/nsAppRunner.cpp:5556:8
#54 0x7f245f2310c3 in XRE_main(int, char**, mozilla::BootstrapConfig const&) /toolkit/xre/nsAppRunner.cpp:5615:21
#55 0x557893cfba69 in do_main /browser/app/nsBrowserApp.cpp:225:22
#56 0x557893cfba69 in main /browser/app/nsBrowserApp.cpp:395:16
#57 0x7f2476a090b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
==2634399==ABORTING
| Reporter | ||
Comment 1•4 years ago
|
||
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
Bugmon Analysis
Verified bug as reproducible on mozilla-central 20220128155052-48e8fb0b62c5.
Failed to bisect testcase (Testcase reproduces on start build!):
Start: 62eead3951fa7e3d40b2f96f814d5e6e80409342 (20210129020006)
End: 9530a7bf5efae110ca73aa6b62133d0c6ad04c65 (20220128000428)
BuildFlags: BuildFlags(asan=True, tsan=False, debug=False, fuzzing=True, coverage=False, valgrind=False, no_opt=False, fuzzilli=False)
| Reporter | ||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
The severity field is not set for this bug.
:kvark, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•4 years ago
|
||
I think that this was fixed in wgpu but the revision has not made it to mozilla-central yet.
Comment 6•3 years ago
|
||
Fixed by bug 1791297.
Comment 7•3 years ago
|
||
Bugmon Analysis
Verified bug as fixed on rev mozilla-central 20220922214429-4ce68ee50da2.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
Description
•