Closed Bug 1677581 Opened 4 years ago Closed 2 years ago

Hit MOZ_CRASH(Didn't find a cached resource with that ID!) at gfx/wr/webrender/src/resource_cache.rs:263

Categories

(Core :: Graphics: WebRender, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox85 --- affected

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

Attached file testcase.zip

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

Hit MOZ_CRASH(Didn't find a cached resource with that ID!) at gfx/wr/webrender/src/resource_cache.rs:263

    #0 0x7fed69783da5 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:254:3
    #1 0x7fed69783da5 in RustMozCrash /builds/worker/checkouts/gecko/mozglue/static/rust/wrappers.cpp:17:3
    #2 0x7fed69783d54 in mozglue_static::panic_hook::h6e70bafc479dc06d /builds/worker/checkouts/gecko/mozglue/static/rust/lib.rs:89:9
    #3 0x7fed6978367b in core::ops::function::Fn::call::h01fce3a141895069 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/ops/function.rs:70:5
    #4 0x7fed6a73eb77 in std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03 /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:573:17
    #5 0x7fed6a73e728 in std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::h7001af1bb21aeaeb /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476:9
    #6 0x7fed6a739b9b in std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367 /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153:18
    #7 0x7fed6a73e6e8 in rust_begin_unwind /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475:5
    #8 0x7fed6a7a4a90 in core::panicking::panic_fmt::h4e2659771ebc78eb /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85:14
    #9 0x7fed6a7a4672 in core::option::expect_failed::hd5a1da3a6b6bbb34 /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213:5
    #10 0x7fed69296883 in webrender::resource_cache::ResourceCache::get_image_info::h19e8985fd90fff68 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/option.rs
    #11 0x7fed69296883 in webrender::resource_cache::ResourceCache::get_cached_image::h786a68c5505331b5 /builds/worker/checkouts/gecko/gfx/wr/webrender/src/resource_cache.rs:1099:26
    #12 0x7fed69137770 in webrender::batch::resolve_image::hcd7f052c9aef567b /builds/worker/checkouts/gecko/gfx/wr/webrender/src/batch.rs:3137:45
    #13 0x7fed6916cb3b in webrender::composite::CompositeState::push_surface::hfe4443ac538315cb /builds/worker/checkouts/gecko/gfx/wr/webrender/src/composite.rs:652:34
    #14 0x7fed6912c4dc in webrender::batch::BatchBuilder::add_prim_to_batch::h7b297ad58ffc8db1 /builds/worker/checkouts/gecko/gfx/wr/webrender/src/batch.rs:1487:33
    #15 0x7fed69125734 in webrender::batch::BatchBuilder::add_pic_to_batch::h04730dee7f175422 /builds/worker/checkouts/gecko/gfx/wr/webrender/src/batch.rs:754:17
    #16 0x7fed69228b69 in _$LT$webrender..render_target..ColorRenderTarget$u20$as$u20$webrender..render_target..RenderTarget$GT$::build::hdc3cf79a750e09ee /builds/worker/checkouts/gecko/gfx/wr/webrender/src/render_target.rs:408:21
    #17 0x7fed691920a3 in webrender::frame_builder::build_render_pass::hf50c79dc30adc965 /builds/worker/checkouts/gecko/gfx/wr/webrender/src/frame_builder.rs:684:13
    #18 0x7fed691920a3 in webrender::frame_builder::FrameBuilder::build::hc714398ccfd072db /builds/worker/checkouts/gecko/gfx/wr/webrender/src/frame_builder.rs:592:17
    #19 0x7fed6920e9c4 in webrender::render_backend::Document::build_frame::h857fa5717e387402 /builds/worker/checkouts/gecko/gfx/wr/webrender/src/render_backend.rs:622:25
    #20 0x7fed6921f301 in webrender::render_backend::RenderBackend::update_document::h658c80cf708466af /builds/worker/checkouts/gecko/gfx/wr/webrender/src/render_backend.rs:1501:41
    #21 0x7fed69216e26 in webrender::render_backend::RenderBackend::prepare_transactions::h94057ff9965b1c61 /builds/worker/checkouts/gecko/gfx/wr/webrender/src/render_backend.rs:1356:28
    #22 0x7fed69216e26 in webrender::render_backend::RenderBackend::process_api_msg::h6690b6762a0e5fef /builds/worker/checkouts/gecko/gfx/wr/webrender/src/render_backend.rs:1216:17
    #23 0x7fed69014a23 in webrender::render_backend::RenderBackend::run::h2f9c8dc0d3ec756d /builds/worker/checkouts/gecko/gfx/wr/webrender/src/render_backend.rs:892:21
    #24 0x7fed69014a23 in webrender::renderer::Renderer::new::_$u7b$$u7b$closure$u7d$$u7d$::h2568c5f3e7c1ebfc /builds/worker/checkouts/gecko/gfx/wr/webrender/src/renderer.rs:2781:13
    #25 0x7fed69014a23 in std::sys_common::backtrace::__rust_begin_short_backtrace::h6cde425ea617684e /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137:18
    #26 0x7fed69034a2f in std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h00f0b0cb19182be4 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:458:17
    #27 0x7fed69034a2f in _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hf43f5114ef875487 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panic.rs:308:9
    #28 0x7fed69034a2f in std::panicking::try::do_call::h4cb181af34bf1a1f /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panicking.rs:373:40
    #29 0x7fed69034a2f in std::panicking::try::h4f83ff7f3527638f /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panicking.rs:337:19
    #30 0x7fed69034a2f in std::panic::catch_unwind::hcbba4c6bfbaa1b67 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panic.rs:379:14
    #31 0x7fed69034a2f in std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::hd8ac2883c989d090 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:457:30
    #32 0x7fed69034a2f in core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h6decdaa530827fa5 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
    #33 0x7fed6a74e129 in _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h670c50864ac2cb92 /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/alloc/src/boxed.rs:1042:9
    #34 0x7fed6a74e129 in _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h2511952749086d81 /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/alloc/src/boxed.rs:1042:9
    #35 0x7fed6a74e129 in std::sys::unix::thread::Thread::new::thread_start::h5ad4ddffe24373a8 /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys/unix/thread.rs:87:17
    #36 0x7fed76219608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477:8
    #37 0x7fed75de2292 in clone /build/glibc-ZN95T4/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Flags: in-testsuite?

Bugmon Analysis:
Unable to reproduce bug using the following builds:

mozilla-central 20201116210217-6b97acd45602
mozilla-central 20201116101121-e22423381bcd
Removing bugmon keyword as no further action possible.
Please review the bug and re-add the keyword for further analysis.

Keywords: bugmon
Whiteboard: [bugmon:confirm] → [bugmon:confirmed]

The attached test case no longer reproduces the issue and the fuzzers last reported the issue while targeting m-c 20201127-c42696dc97c6.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: