Open Bug 1840159 Opened 2 years ago Updated 2 years ago

Crash in [@ mozilla::image::DecodePool::DecodePool]

Categories

(Core :: Graphics: ImageLib, defect, P2)

defect

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/0774eb8f-b749-43e3-9f05-e3fd70230623

MOZ_CRASH Reason: MOZ_RELEASE_ASSERT(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) && mIOThread) (Should successfully create image I/O thread)

Top 10 frames of crashing thread:

0  libxul.so  mozilla::image::DecodePool::DecodePool  image/DecodePool.cpp:102
1  libxul.so  mozilla::image::DecodePool::Singleton  image/DecodePool.cpp:63
1  libxul.so  mozilla::image::DecodePool::Initialize  image/DecodePool.cpp:56
2  libxul.so  mozilla::image::EnsureModuleInitialized  image/build/nsImageModule.cpp:74
3  libxul.so  mozilla::xpcom::CallInitFunc  xpcom/components/StaticComponents.cpp:9483
3  libxul.so  mozilla::xpcom::CreateInstanceImpl  xpcom/components/StaticComponents.cpp:9973
4  libxul.so  mozilla::xpcom::StaticModule::CreateInstance const  xpcom/components/StaticComponents.cpp:13094
4  libxul.so    xpcom/components/nsComponentManager.cpp:184
4  libxul.so  nsComponentManagerImpl::GetServiceLocked  xpcom/components/nsComponentManager.cpp:971
5  libxul.so  nsComponentManagerImpl::GetServiceByContractID  xpcom/components/nsComponentManager.cpp:1160

Failing to create a thread might indicate some kind of resource exhaustion issue we can't easily fix.

Tim, could you please have a look here when you have some cycles?

Severity: -- → S3
Flags: needinfo?(tnikkel)
Priority: -- → P2
See Also: → 1777715

The bulk of these crashes happen on linux.

I found an active intermittent hitting this same assert, bug 1777715. That bug is only hit in linux asan builds. I went through the failures of it in the last ~week, only one of them has any warnings printed (failure cases in this area usually have NS_WARN_IF)

https://treeherder.mozilla.org/logviewer?job_id=419938293&repo=autoland&lineNumber=6005

[Parent 1601, IPC Launch] WARNING: fork() failed: Cannot allocate memory: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_linux.cc:280
[Parent 1601, IPC I/O Parent] WARNING: Failed to launch tab subprocess: file /builds/worker/checkouts/gecko/ipc/glue/GeckoChildProcessHost.cpp:802

So in that case it seems like things are quite wrong and there is some higher level issue (either with our code, tests, or machine running the test).

I asked pernosco to reproduce for the last ~10 failures to see if we can get a pernosco.

I also traced through some of the ways NS_NewNamedThread, nothing stood out as an obvious candidate.

Flags: needinfo?(tnikkel)

(In reply to Timothy Nikkel (:tnikkel) from comment #2)

I asked pernosco to reproduce for the last ~10 failures to see if we can get a pernosco.

None of these ever replied to me success or failure. Kyle said it was tripping up pernosco somehow.

You need to log in before you can comment on or make changes to this bug.