Closed Bug 1860113 Opened 9 months ago Closed 8 months ago

Hit MOZ_CRASH(Unexpected backend Empty) at gfx/wgpu_bindings/src/server.rs:446

Categories

(Core :: Graphics: WebGPU, defect, P1)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1861751
Tracking Status
firefox-esr115 --- unaffected
firefox118 --- unaffected
firefox119 --- unaffected
firefox120 --- disabled
firefox121 --- fixed

People

(Reporter: tsmith, Assigned: bradwerth)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: assertion, regression, testcase, Whiteboard: [bugmon:bisected,confirmed])

Attachments

(1 file)

Attached file testcase.html

Found while fuzzing m-c 20231018-1fdbab33412d (--enable-address-sanitizer --enable-fuzzing)

To reproduce via Grizzly Replay:

$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch -a --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html

Hit MOZ_CRASH(Unexpected backend Empty) at gfx/wgpu_bindings/src/server.rs:446

#0 0x7fca0b6609c7 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:281:3
#1 0x7fca0b6609c7 in RustMozCrash /builds/worker/checkouts/gecko/mozglue/static/rust/wrappers.cpp:18:3
#2 0x7fca0b660895 in mozglue_static::panic_hook::hd80c17bcc51bbfda /builds/worker/checkouts/gecko/mozglue/static/rust/lib.rs:96:9
#3 0x7fca0b65ee65 in core::ops::function::Fn::call::hc7f4c01788a08324 /builds/worker/fetches/rust/library/core/src/ops/function.rs:79:5
#4 0x7fca0f67b566 in std::panicking::rust_panic_with_hook::h92826d2d473a496a std.3df09710191fa715-cgu.08
#5 0x7fca0f63be26 in std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::h503494dd53828311 std.3df09710191fa715-cgu.00
#6 0x7fca0f63bc15 in std::sys_common::backtrace::__rust_end_short_backtrace::h848b048e3ffeb3a6 std.3df09710191fa715-cgu.00
#7 0x7fca0f67b101 in rust_begin_unwind std.3df09710191fa715-cgu.08
#8 0x7fca0f6ea7c2 in core::panicking::panic_fmt::h9dcf2f1ed75a280b core.bfe18676e6579eaf-cgu.10
#9 0x7fca07b3c85f in wgpu_server_buffer_drop /builds/worker/checkouts/gecko/gfx/wgpu_bindings/src/server.rs:446:5
#10 0x7fc9faa454fc in mozilla::webgpu::WebGPUParent::RecvBufferDrop(unsigned long) /builds/worker/checkouts/gecko/dom/webgpu/ipc/WebGPUParent.cpp:683:3
#11 0x7fc9faa71dc5 in mozilla::webgpu::PWebGPUParent::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PWebGPUParent.cpp:1159:80
#12 0x7fc9f6ebd506 in mozilla::gfx::PCanvasManagerParent::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PCanvasManagerParent.cpp:269:32
#13 0x7fc9f56ddca5 in mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1800:25
#14 0x7fc9f56d96cb 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
#15 0x7fc9f56daa79 in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1525:3
#16 0x7fc9f56dbff3 in mozilla::ipc::MessageChannel::MessageTask::Run() /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1623:14
#17 0x7fc9f3acb75f in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1192:16
#18 0x7fc9f3ad904a in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10
#19 0x7fc9f56e8cb9 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:330:5
#20 0x7fc9f551080a in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10
#21 0x7fc9f551080a in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
#22 0x7fc9f551080a in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
#23 0x7fc9f3ac2860 in nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:370:10
#24 0x7fca1b30410f in _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5
#25 0x55a10b0ee74a in asan_thread_start(void*) /builds/worker/fetches/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:225:31
#26 0x7fca1b094ac2 in start_thread nptl/pthread_create.c:442:8
#27 0x7fca1b126a3f  misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Flags: in-testsuite?

Verified bug as reproducible on mozilla-central 20231019213231-fafeb43eefd1.
The bug appears to have been introduced in the following build range:

Start: e0dd0b10e8fd0ea751f11fb0a6548ad9b6780e16 (20231016153418)
End: fa12efd7ca249d06b27ea86690ae0d0478f5dcce (20231016182434)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e0dd0b10e8fd0ea751f11fb0a6548ad9b6780e16&tochange=fa12efd7ca249d06b27ea86690ae0d0478f5dcce

Keywords: regression
Whiteboard: [bugmon:bisected,confirmed]
Regressed by: 1838693

Set release status flags based on info from the regressing bug 1838693

:bradwerth, since you are the author of the regressor, bug 1838693, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(bwerth)

I'll figure this out.

Assignee: nobody → bwerth
Flags: needinfo?(bwerth)
Blocks: webgpu-v1
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1

Because this appears to be due to a double call to Buffer::Drop, this should be fixed by the patch for Bug 1859825.

See Also: → 1859825

Set release status flags based on info from the regressing bug 1838693

Because this is due to a Buffer with id 0, this will be fixed by the patches for Bug 1861751.

Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1861751
Resolution: --- → DUPLICATE

No valid actions for resolution (DUPLICATE).
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Keywords: bugmon
No longer blocks: webgpu-v1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: