Closed Bug 2073801 Opened 2 months ago Closed 2 months ago

Hit MOZ_CRASH(called `Option::unwrap()` on a `None` value) at /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:409

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 2073321
Tracking Status
firefox158 --- affected

People

(Reporter: tsmith, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached image testcase.jxl —

Found while fuzzing m-c 20260918-2c95a6c0ffc7.

Hit MOZ_CRASH(called Option::unwrap() on a None value) at /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:409

#0 0x7fffe593bfb8 in MOZ_CrashSequence(void*, long) /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
#1 0x7fffe593bfb8 in MOZ_Crash(char const*, int, char const*) /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:402:3
#2 0x7fffe593bfb8 in RustMozCrash /builds/worker/checkouts/gecko/mozglue/static/rust/wrappers.cpp:17:3
#3 0x7fffe593b23f in mozglue_static::panic_hook /builds/worker/checkouts/gecko/mozglue/static/rust/lib.rs:99:9
#4 0x7fffe593bf15 in <mozglue_static::panic_hook as core::ops::function::Fn<(&std::panic::PanicHookInfo,)>>::call /builds/worker/fetches/rust/library/core/src/ops/function.rs:79:5
#5 0x7fffea98dbc1 in std::panicking::panic_with_hook (/home/worker/firefox/gtest/libxul.so+0x2a681bc1) (BuildId: 93b1d69edaf9498e0aa54ca9ca795b8bf22ab959)
#6 0x7fffea96afc9 in std::panicking::panic_handler::{closure#0} std.8af3bd109c3ae499-cgu.0
#7 0x7fffea9617c8 in std::sys::backtrace::__rust_end_short_backtrace::<std::panicking::panic_handler::{closure#0}, !> (/home/worker/firefox/gtest/libxul.so+0x2a6557c8) (BuildId: 93b1d69edaf9498e0aa54ca9ca795b8bf22ab959)
#8 0x7fffea96c67c in __rustc::rust_begin_unwind (/home/worker/firefox/gtest/libxul.so+0x2a66067c) (BuildId: 93b1d69edaf9498e0aa54ca9ca795b8bf22ab959)
#9 0x7fffea9ddb9b in core::panicking::panic_fmt (/home/worker/firefox/gtest/libxul.so+0x2a6d1b9b) (BuildId: 93b1d69edaf9498e0aa54ca9ca795b8bf22ab959)
#10 0x7fffea9ddb61 in core::panicking::panic (/home/worker/firefox/gtest/libxul.so+0x2a6d1b61) (BuildId: 93b1d69edaf9498e0aa54ca9ca795b8bf22ab959)
#11 0x7fffea9dd848 in core::option::unwrap_failed (/home/worker/firefox/gtest/libxul.so+0x2a6d1848) (BuildId: 93b1d69edaf9498e0aa54ca9ca795b8bf22ab959)
#12 0x7fffe4fe1d60 in <core::option::Option<&jxl::frame::modular::buffers::ModularChannel>>::unwrap /builds/worker/fetches/rust/library/core/src/option.rs:1016:21
#13 0x7fffe4fe1d60 in <jxl::frame::modular::transforms::step::TileGuard>::as_rect::<i16> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:409:74
#14 0x7fffe4fe555c in <jxl::frame::modular::transforms::step::TileGuard>::row::<i16> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:415:14
#15 0x7fffe4fe555c in <jxl::frame::modular::transforms::step::TiledChannelView>::copy_tile_slice::<i16> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:452:28
#16 0x7fffe4fe555c in <jxl::frame::modular::transforms::step::TiledChannelView>::load_row_to_scratch::<i16> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:560:26
#17 0x7fffe534feee in jxl::frame::modular::transforms::smooth_squeeze::smooth_upsample_simd_impl::<jxl_simd::x86_64::avx512::Avx512Descriptor> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/smooth_squeeze.rs:301:19
#18 0x7fffe534feee in jxl::frame::modular::transforms::smooth_squeeze::smooth_upsample_dispatch::<jxl_simd::x86_64::avx512::Avx512Descriptor> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/smooth_squeeze.rs:421:9
#19 0x7fffe534feee in jxl::frame::modular::transforms::smooth_squeeze::smooth_upsample::avx512 /builds/worker/checkouts/gecko/third_party/rust/jxl_simd/src/x86_64/mod.rs:92:17
#20 0x7fffe505271f in jxl::frame::modular::transforms::smooth_squeeze::smooth_upsample /builds/worker/checkouts/gecko/third_party/rust/jxl_simd/src/x86_64/mod.rs:32:13
#21 0x7fffe505271f in <jxl::frame::modular::transforms::step::TransformStepChunk>::do_run::{closure#11} /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:922:29
#22 0x7fffe518f682 in jxl::frame::modular::buffers::with_buffers::<(), <jxl::frame::modular::transforms::step::TransformStepChunk>::do_run::{closure#11}> /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/buffers.rs:391:5
#23 0x7fffe518f682 in <jxl::frame::modular::transforms::step::TransformStepChunk>::do_run /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/transforms/step.rs:907:17
#24 0x7fffe5180188 in <jxl::frame::modular::FullModularImage>::run_transform /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/mod.rs:873:35
#25 0x7fffe5180188 in <jxl::frame::modular::FullModularImage>::run_transforms /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/modular/mod.rs:897:18
#26 0x7fffe5044b0a in <jxl::frame::Frame>::decode_and_render_hf_groups::{closure#9} /builds/worker/checkouts/gecko/third_party/rust/jxl/src/frame/render.rs:478:26
#27 0x7fffe4fb56c9 in <jxl_decoder::runner::PoolRunner as jxl::api::JxlParallelRunner>::run_ordered::{closure#0} /builds/worker/checkouts/gecko/third_party/rust/jxl/src/api/mod.rs:128:13
#28 0x7fffe4fb619b in <jxl_decoder::runner::Shared>::drain /builds/worker/checkouts/gecko/image/rust/jxl/src/runner.rs:166:29
#29 0x7fffe4fb4b74 in jxl_decoder::runner::run_in_parallel::{closure#0} /builds/worker/checkouts/gecko/image/rust/jxl/src/runner.rs:259:22
#30 0x7fffe4fb4b74 in <jxl_decoder::runner::run_in_parallel::{closure#0} as core::ops::function::FnOnce<()>>::call_once /builds/worker/fetches/rust/library/core/src/ops/function.rs:250:5
#31 0x7fffe4fb4b74 in <moz_task::dispatcher::RunnableFunction<jxl_decoder::runner::run_in_parallel::{closure#0}>>::Run /builds/worker/checkouts/gecko/xpcom/rust/moz_task/src/dispatcher.rs:29:13
#32 0x7fffe4fb4b74 in <moz_task::dispatcher::RunnableFunction<_>>::allocate::Run::<jxl_decoder::runner::run_in_parallel::{closure#0}> /builds/worker/checkouts/gecko/xpcom/rust/moz_task/src/dispatcher.rs:16:1
#33 0x7fffce875a1e in nsThreadPool::Run() /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/nsThreadPool.cpp:442:14
#34 0x7fffce864a07 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/nsThread.cpp:1313:16
#35 0x7fffce87072b in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:471:32
#36 0x7fffceafadda in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/workspace/obj-build/ipc/glue/./../../../../checkouts/gecko/ipc/glue/MessagePump.cpp:297:20
#37 0x7fffce9bdb69 in MessageLoop::RunInternal() /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:371:10
#38 0x7fffce9bdb69 in MessageLoop::RunHandler() /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:364:3
#39 0x7fffce9bdb69 in MessageLoop::Run() /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:346:3
#40 0x7fffce859e4d in nsThread::ThreadFunc(void*) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/nsThread.cpp:436:10
#41 0x7ffff7f8232a in _pt_root /builds/worker/workspace/obj-build/config/external/nspr/pr/./../../../../../../checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:198:5
#42 0x555555709a36 in asan_thread_start(void*) /builds/worker/fetches/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:246:28
Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 2073321
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: