Firefox 99.0a1 Crash Report [@ shutdownhang | XPTC__InvokebyIndex ]
Categories
(Toolkit :: Data Sanitization, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox98 | --- | unaffected |
firefox99 | --- | fixed |
firefox100 | --- | fixed |
People
(Reporter: Gioxx, Unassigned)
References
(Regression)
Details
(Whiteboard: [Fixed by Bug 1755190])
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
Open Firefox Nightly / Close Firefox Nightly.
Actual results:
Firefox Crashes (since 14th of feb.).
https://crash-stats.mozilla.org/report/index/bp-552d2d78-d8eb-44a3-b9e5-a15dd0220214
https://crash-stats.mozilla.org/report/index/bp-9be477f2-0692-45b1-8303-62a8e0220214
https://crash-stats.mozilla.org/report/index/bp-7750f697-aed3-4add-bf89-7dd750220215
https://crash-stats.mozilla.org/report/index/bp-075fc358-f49d-4939-a1ca-260500220216
https://crash-stats.mozilla.org/report/index/bp-682ef8ab-3a37-44ed-bcb3-743a90220216
https://crash-stats.mozilla.org/report/index/bp-55557afb-d19e-47c4-90cc-ffcdd0220217
https://crash-stats.mozilla.org/report/index/bp-bf6fe957-8d19-4e30-9262-a92370220217
https://crash-stats.mozilla.org/report/index/bp-58056136-412b-4399-8384-6c2270220217
https://crash-stats.mozilla.org/report/index/bp-7164fbd0-67ad-4f8f-a5d1-c01ea0220218
https://crash-stats.mozilla.org/report/index/bp-3148d9e3-4c50-47a2-8b5c-6abdf0220218
https://crash-stats.mozilla.org/report/index/bp-1b364340-9492-414c-a11d-318a20220221
https://crash-stats.mozilla.org/report/index/bp-309bb785-3532-44a8-90fb-acab80220222
https://crash-stats.mozilla.org/report/index/bp-beff18e2-499f-4cfd-9823-26c770220222
https://crash-stats.mozilla.org/report/index/bp-9f056bdb-9fa1-47ca-ab70-b1f2f0220223
Expected results:
Firefox should open or close normally, running its updates, without crashing.
Comment 1•3 years ago
|
||
Hey Giovanni,
We tried reproducing this issue on the latest versions of Firefox Nightly 99.0a1 (2022-02-24), beta 98.0b8 and release 97.0.1 but didn't encounter the crash following your steps.
Can you test the issue while in Safe Mode? You can find helpful info here : https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode .
Testing with a fresh new profile could help. You can find more about creating a new profile here : https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile .
If possible, you can test this issue on the nightly build as well. Download the build from : https://www.mozilla.org/en-US/firefox/nightly/all/ .
Reporter | ||
Comment 2•3 years ago
|
||
I can reproduce this bug since the 14th. of february, everyday, even several times a day if I wish to reproduce it again (simply closing and reopening Firefox), this is the profile I use everyday on my Nightly and before the 14th. of feb. i never had this problem.
This is the new crash: https://crash-stats.mozilla.org/report/index/8ad95be9-9908-4c34-b914-43daa0220224 and this is the profiler analysis: https://share.firefox.dev/3BKSbWB
Comment 3•3 years ago
|
||
Hi Gioxx,
Thanks for reporting. Does this issue only appear when there are updates to apply? Or every time you attempt to shutdown Firefox Nightly, even without pending updates?
Reporter | ||
Comment 4•3 years ago
|
||
Ciao Mike, everytime, with or without pending updates available.
Comment 5•3 years ago
|
||
A number of those crashes are happening while doing something with principals in the permissions manager.
Reporter | ||
Comment 6•3 years ago
|
||
Crash this morning (there were pending updates to run) and a short video capture of what happens in Task Manager when I close Firefox.
https://crash-stats.mozilla.org/report/index/238a64e5-d0e7-4bb1-b756-fbab30220225
https://capture.dropbox.com/GKgZo1AsgxwlvxAw
Comment 7•3 years ago
|
||
Hey valentin, the hang (at least in that last report) seems to ultimately be happening inside of nsStandardURL::Release... is this something for Necko to look at? Or Jens, is this more of a permission manager thing?
Comment 8•3 years ago
|
||
I see in those stack traces often some frame with _tailMerge_d3dcompiler_47.dll
, which I usually don't see in our stacks? Is that meaning something?
In any case Permission Manager is more Tim's playground.
Comment 9•3 years ago
|
||
This also crashes in nsStandardURL::SetSpec (the page URL seems to be gmail)
https://crash-stats.mozilla.org/report/index/309bb785-3532-44a8-90fb-acab80220222
I think there's a script running at shutdown (not sure why) that keeps creating and destroying URLs. d3dcompiler_47.dll
could be involved.
Comment 10•3 years ago
|
||
Hm... d3dcompiler_47.dll is, I believe, part of Direct3D... jrmuizel, is the graphics layer somehow involved here?
Comment 11•3 years ago
|
||
I'm pretty sure the d3dcompiler stuff is not related here. I think it's just the nearest symbol or something.
Comment 12•3 years ago
|
||
Yeah, those looks like frames where we have JIT code or the weird XPCOM call stuff, so I'm pretty sure it is junk. You see the tailcall stuff fairly often in crash stacks.
Comment 13•3 years ago
|
||
Yeah, the offsets from _tailMerge_d3dcompiler_47.dll
are two large to be reasonable. I've filed bug 1757217 about the unwinding/symbolicating issue.
Comment 14•3 years ago
|
||
It looks to me that something is trying to get all permissions during the shutdown. But it's hard to tell from stack traces of those crash reports because they all link to _tailMerge_d3dcompiler_47.dll
and it doesn't seem to be the right symbol. We should wait for bug 1757890 to get more details regarding this crash.
Comment 15•3 years ago
|
||
We should check if this is a regression of Bug 1681701, also see Bug 1755190. For the exception support we do iterate over all permissions on shutdown. Hannah is currently looking into it.
Can we see if the affected profiles have either network.cookie.lifetimePolicy
or privacy.sanitize.sanitizeOnShutdown
enabled?
Reporter | ||
Comment 16•3 years ago
|
||
(In reply to Paul Zühlcke [:pbz] from comment #15)
We should check if this is a regression of Bug 1681701, also see Bug 1755190. For the exception support we do iterate over all permissions on shutdown. Hannah is currently looking into it.
Can we see if the affected profiles have either
network.cookie.lifetimePolicy
orprivacy.sanitize.sanitizeOnShutdown
enabled?
In my profile I have network.cookie.lifetimePolicy
set to 0 and privacy.sanitize.sanitizeOnShutdown
true.
Comment 17•3 years ago
|
||
Thank you, could you do me a favor and try to reproduce this crash with privacy.sanitize.sanitizeOnShutdown set to false?
Reporter | ||
Comment 18•3 years ago
|
||
(In reply to hpeuckmann@mozilla.com from comment #17)
Thank you, could you do me a favor and try to reproduce this crash with privacy.sanitize.sanitizeOnShutdown set to false?
AH! With privacy.sanitize.sanitizeOnShutdown
set to false Firefox closed correctly without generating crashes!
Comment 19•3 years ago
|
||
(In reply to Paul Zühlcke [:pbz] from comment #15)
We should check if this is a regression of Bug 1681701, also see Bug 1755190. For the exception support we do iterate over all permissions on shutdown. Hannah is currently looking into it.
Based on this I think we can move this bug under that component for now.
Comment 20•3 years ago
|
||
We created Bug 1759579 to refactor the method in the sanitizer that is recursively calling the permission manager to get all permissions. Refactoring this to call the permission manager only once might also fix this crash.
Until fixed, Giovanni you can try to clear your history through about:preferences#privacy Clear history...
, this will give you the option to clear your history not on shutdown and except you select the time range 'everything', the recursive method calling the permission manager should not be triggered.
Reporter | ||
Comment 21•3 years ago
|
||
(In reply to hpeuckmann@mozilla.com from comment #20)
We created Bug 1759579 to refactor the method in the sanitizer that is recursively calling the permission manager to get all permissions. Refactoring this to call the permission manager only once might also fix this crash.
Until fixed, Giovanni you can try to clear your history through about:preferences#privacyClear history...
, this will give you the option to clear your history not on shutdown and except you select the time range 'everything', the recursive method calling the permission manager should not be triggered.
In the meantime I have created a clean profile from scratch, with my addons and my configurations and without the problem, but I also have the old profile I can use to make other tests to help you on "find and solve" the problem. Spring cleaning is sometimes good for the browser, especially when using Nightly :-)
Comment 22•3 years ago
|
||
Hey Giovanni, I'm glad to hear you could fix this for your profile and thank you for offering your help with solving this. Could you help me out again? Could you check if you can still reproduce the issue with Nightly 100.0a1? We landed a small patch that has a positive impact on the performance of the shutdown data sanitization. If still crashing, could you try to make a performance profile of the shutdown? I actually don't know what happens to a shutdown performance profile if the shutdown crashes, but its worth a try.
Reporter | ||
Comment 23•3 years ago
|
||
(In reply to hpeuckmann@mozilla.com from comment #22)
Hey Giovanni, I'm glad to hear you could fix this for your profile and thank you for offering your help with solving this. Could you help me out again? Could you check if you can still reproduce the issue with Nightly 100.0a1? We landed a small patch that has a positive impact on the performance of the shutdown data sanitization. If still crashing, could you try to make a performance profile of the shutdown? I actually don't know what happens to a shutdown performance profile if the shutdown crashes, but its worth a try.
Ciao, no problem, but the question is: should I first change the status of privacy.sanitize.sanitizeOnShutdown
back to true
to make this test? At the moment is set to false
.
Comment 24•3 years ago
|
||
(In reply to Giovanni [:Gioxx] (Mozilla Italia) from comment #23)
(In reply to hpeuckmann@mozilla.com from comment #22)
Hey Giovanni, I'm glad to hear you could fix this for your profile and thank you for offering your help with solving this. Could you help me out again? Could you check if you can still reproduce the issue with Nightly 100.0a1? We landed a small patch that has a positive impact on the performance of the shutdown data sanitization. If still crashing, could you try to make a performance profile of the shutdown? I actually don't know what happens to a shutdown performance profile if the shutdown crashes, but its worth a try.
Ciao, no problem, but the question is: should I first change the status of
privacy.sanitize.sanitizeOnShutdown
back totrue
to make this test? At the moment is set tofalse
.
Hey, please set privacy.sanitize.sanitizeOnShutdown
back to true
.
Reporter | ||
Comment 25•3 years ago
|
||
(In reply to hpeuckmann@mozilla.com from comment #24)
Hey, please set
privacy.sanitize.sanitizeOnShutdown
back totrue
.
Done! Nightly configuration modified on the "problematic profile", the browser closing without any crashes. I think this is a good news :-)
Comment 26•3 years ago
|
||
Thanks for confirming!
Comment 27•3 years ago
|
||
Set release status flags based on info from the regressing bug 1681701
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Description
•