Nullptr dereference when processing tasks after main thread destruction
Categories
(Core :: XPCOM, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
Crash Data
Attachments
(1 file)
For example, see: https://treeherder.mozilla.org/logviewer?job_id=326465839&repo=mozilla-central
It appears it's possible to hit https://searchfox.org/mozilla-central/source/xpcom/threads/TaskController.cpp#659-661 where NS_GetMainThread returns a nullptr. Right now we crash when this happens.
Comment 1•5 years ago
|
||
There's already bug 1690592 on file for this crash. You could dupe it over if you want.
Comment 2•5 years ago
|
||
Oops, I didn't mean to close this.
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
I did the very, most reliable thing of making sure a lack of main thread wouldn't crash task controller. Which is I think is a good thing. Andrew, do you want me to put up a patch trying to remove the event processing after ThreatManager shutdown altogether as well?
Comment 6•5 years ago
|
||
I'm not really familiar enough with event processing to have an opinion on how it should work late in shutdown, sorry.
Comment 8•5 years ago
|
||
bugherder |
Description
•