Open Bug 1870373 Opened 1 year ago Updated 11 months ago

Assertion failure: i == lastChunk || chunk->DataSize() == kChunkSize, at /builds/worker/checkouts/gecko/netwerk/cache2/CacheFile.cpp:1858

Categories

(Core :: Networking: Cache, defect, P2)

defect

Tracking

()

Tracking Status
firefox122 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, Whiteboard: [necko-triaged][necko-priority-next])

Found with m-c 20231209-a518b336e4b7 (--enable-debug)

This was found by visiting a live website with a debug build. I have not been able to reproduce the issue locally at this time.

This has been triggered by visiting a few different sites so far:

Assertion failure: i == lastChunk || chunk->DataSize() == kChunkSize, at /builds/worker/checkouts/gecko/netwerk/cache2/CacheFile.cpp:1858

#0 0x7fdedcb98466 in mozilla::net::CacheFile::BytesFromChunk(unsigned int, bool) /builds/worker/checkouts/gecko/netwerk/cache2/CacheFile.cpp:1858:7
#1 0x7fdedcbbf33b in mozilla::net::CacheFileInputStream::Available(unsigned long*) /builds/worker/checkouts/gecko/netwerk/cache2/CacheFileInputStream.cpp:102:30
#2 0x7fdedc7fe71a in nsInputStreamPump::OnStateStart() /builds/worker/checkouts/gecko/netwerk/base/nsInputStreamPump.cpp:491:24
#3 0x7fdedc7fe324 in nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) /builds/worker/checkouts/gecko/netwerk/base/nsInputStreamPump.cpp:409:21
#4 0x7fdedc7ff69c in non-virtual thunk to nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) /builds/worker/checkouts/gecko/netwerk/base/nsInputStreamPump.cpp
#5 0x7fdedc57ae68 in nsInputStreamReadyEvent::Run() /builds/worker/checkouts/gecko/xpcom/io/nsStreamUtils.cpp:96:20
#6 0x7fdedc5c28a7 in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:549:16
#7 0x7fdedc5b84b3 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:876:26
#8 0x7fdedc5b6ca7 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:699:15
#9 0x7fdedc5b7125 in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:485:36
#10 0x7fdedc5c6816 in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:211:37
#11 0x7fdedc5c6816 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:548:5
#12 0x7fdedc5db902 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1199:16
#13 0x7fdedc5e2a2d in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10
#14 0x7fdedd29eaa5 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:85:21
#15 0x7fdedd1b85e1 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
#16 0x7fdedd1b85e1 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
#17 0x7fdee1b93448 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:148:27
#18 0x7fdee1c50048 in nsAppShell::Run() /builds/worker/checkouts/gecko/widget/gtk/nsAppShell.cpp:470:33
#19 0x7fdee3aef264 in nsAppStartup::Run() /builds/worker/checkouts/gecko/toolkit/components/startup/nsAppStartup.cpp:296:30
#20 0x7fdee3c556c5 in XREMain::XRE_mainRun() /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5709:22
#21 0x7fdee3c56e36 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5918:8
#22 0x7fdee3c57a52 in XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5974:21
#23 0x55b535f69187 in do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22
#24 0x55b535f69187 in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16
#25 0x7fdef0c32d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#26 0x7fdef0c32e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#27 0x55b535f3efa8 in _start (/home/worker/build/firefox-bin+0x58fa8) (BuildId: c26de06da0016a0d1bb7535d22895f77c219ced5)
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-new]

This assertion was added in bug 1010221

Whiteboard: [necko-triaged][necko-priority-new] → [necko-triaged][necko-priority-next]
You need to log in before you can comment on or make changes to this bug.