Closed Bug 1771293 Opened 2 years ago Closed 2 years ago

Hit MOZ_CRASH(bug: no sub-graph output) at gfx/wr/webrender/src/prepare.rs:813

Categories

(Core :: Graphics: WebRender, defect)

x86_64
Linux
defect

Tracking

()

VERIFIED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox101 --- unaffected
firefox102 --- verified

People

(Reporter: jkratzer, Assigned: gw)

References

(Blocks 1 open bug)

Details

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

Attachments

(2 files)

Testcase found while fuzzing mozilla-central rev e7aef329a267 (built with: --enable-debug --enable-fuzzing).

Testcase can be reproduced using the following commands:

$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build e7aef329a267 --debug --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
Hit MOZ_CRASH(bug: no sub-graph output) at gfx/wr/webrender/src/prepare.rs:813

    ==2092614==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fdec19314f5 bp 0x7fddb85302e0 sp 0x7fddb85302d0 T2092822)
    ==2092614==The signal is caused by a WRITE memory access.
    ==2092614==Hint: address points to the zero page.
        #0 0x7fdec19314f5 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
        #1 0x7fdec19314f5 in RustMozCrash /mozglue/static/rust/wrappers.cpp:18:3
        #2 0x7fdec1931354 in mozglue_static::panic_hook::ha203d40143d12c16 /mozglue/static/rust/lib.rs:91:9
        #3 0x7fdec1930edb in core::ops::function::Fn::call::h2e8e93985c21adf5 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:70:5
        #4 0x7fdec2702713 in std::panicking::rust_panic_with_hook::h3b7380e99b825b63 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:702:17
        #5 0x7fdec27023c6 in std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::h8e849d0710154ce0 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:588:13
        #6 0x7fdec26fe313 in std::sys_common::backtrace::__rust_end_short_backtrace::hedcdaddbd4c46cc5 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18
        #7 0x7fdec27020d8 in rust_begin_unwind /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5
        #8 0x7fdeb7fc42d2 in core::panicking::panic_fmt::he1bbc7336d49a357 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14
        #9 0x7fdec275a2d0 in core::panicking::panic_display::hb184394d54dc8360 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:73:5
        #10 0x7fdec275a27a in core::panicking::panic_str::ha42887cd972750c9 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:56:5
        #11 0x7fdeb7fc4145 in core::option::expect_failed::h9159c9d16ed9fb7c /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/option.rs:1852:5
        #12 0x7fdec12cf23c in core::option::Option$LT$T$GT$::expect::he325222c8d15b79b /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/option.rs:715:21
        #13 0x7fdec12cf23c in webrender::prepare::prepare_interned_prim_for_render::hcf502c2796d88958 /gfx/wr/webrender/src/prepare.rs:809:39
        #14 0x7fdec12c6569 in webrender::prepare::prepare_prim_for_render::h76ef1818bf75175a /gfx/wr/webrender/src/prepare.rs:218:5
        #15 0x7fdec12c6569 in webrender::prepare::prepare_primitives::hdd7e6df3a97c5a85 /gfx/wr/webrender/src/prepare.rs:74:20
        #16 0x7fdec126d775 in webrender::frame_builder::FrameBuilder::build_layer_screen_rects_and_cull_layers::h08c8cac8f2328d0d /gfx/wr/webrender/src/frame_builder.rs:433:17
        #17 0x7fdec126d775 in webrender::frame_builder::FrameBuilder::build::hf64b01a8e46e2b5c /gfx/wr/webrender/src/frame_builder.rs:529:9
        #18 0x7fdec12f30e6 in webrender::render_backend::Document::build_frame::h7387771b02a6788a /gfx/wr/webrender/src/render_backend.rs:498:25
        #19 0x7fdec13093df in webrender::render_backend::RenderBackend::update_document::h3942776e450b1ad4 /gfx/wr/webrender/src/render_backend.rs:1389:41
        #20 0x7fdec12fe2fe in webrender::render_backend::RenderBackend::prepare_transactions::h765c0dc086b40391 /gfx/wr/webrender/src/render_backend.rs:1239:28
        #21 0x7fdec12fe2fe in webrender::render_backend::RenderBackend::process_api_msg::hf9a46b35deb4bab0 /gfx/wr/webrender/src/render_backend.rs:1092:17
        #22 0x7fdec13426dc in webrender::render_backend::RenderBackend::run::he8c5c016d6d3473f /gfx/wr/webrender/src/render_backend.rs:756:21
        #23 0x7fdec13426dc in webrender::renderer::Renderer::new::_$u7b$$u7b$closure$u7d$$u7d$::hdd279e1252bdb24a /gfx/wr/webrender/src/renderer/mod.rs:1337:13
        #24 0x7fdec13426dc in std::sys_common::backtrace::__rust_begin_short_backtrace::h3fc15b0fd538079c /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:122:18
        #25 0x7fdec10c456e in std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hc5e4e8c5207be9fc /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/thread/mod.rs:498:17
        #26 0x7fdec10c456e in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hb6fe521d14f0d523 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panic/unwind_safe.rs:271:9
        #27 0x7fdec10c456e in std::panicking::try::do_call::hd172353aff5e6782 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40
        #28 0x7fdec10c456e in std::panicking::try::hdd5867bd309629dd /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19
        #29 0x7fdec10c456e in std::panic::catch_unwind::had2d17623c35f7da /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14
        #30 0x7fdec10c456e in std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::h667b5281025cc4ad /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/thread/mod.rs:497:30
        #31 0x7fdec10c456e in core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hd6637db685d6d525 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:227:5
        #32 0x7fdec270e332 in _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::hf70ac038171e3e1a /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9
        #33 0x7fdec270e332 in _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::he6690128792365ad /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9
        #34 0x7fdec270e332 in std::sys::unix::thread::Thread::new::thread_start::ha07928d93d5a5ec9 /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys/unix/thread.rs:108:17
        #35 0x7fded0cad608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
        #36 0x7fded0874132 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
    ==2092614==ABORTING
Attached file Testcase

Bugmon Analysis
Verified bug as reproducible on mozilla-central 20220526155159-67475e519671.
The bug appears to have been introduced in the following build range:

Start: e758f99cfd50274790c68853e7e43601dfc5cc03 (20220525034254)
End: 07d584cd2e3ba0f83ff2982d73f46218703ed3bc (20220525053027)
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e758f99cfd50274790c68853e7e43601dfc5cc03&tochange=07d584cd2e3ba0f83ff2982d73f46218703ed3bc

Keywords: regression
Whiteboard: [bugmon:confirm] → [bugmon:bisected,confirmed]
Severity: -- → S2
Assignee: nobody → gwatson
Pushed by gwatson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6aece61c352c
Handle backdrop-filter chains that are culled due to being invisible r=gfx-reviewers,lsalzman
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch

:gw, since this bug contains a bisection range, could you fill (if possible) the regressed_by field?
For more information, please visit auto_nag documentation.

Flags: needinfo?(gwatson)

Bugmon Analysis
Verified bug as fixed on rev mozilla-central 20220527092603-914ead848de4.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Status: RESOLVED → VERIFIED
Keywords: bugmon
Flags: needinfo?(gwatson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: