Closed Bug 1823657 Opened 2 years ago Closed 2 years ago

Crash in [@ shutdownhang | mozilla::IdentityCredentialStorageService::WaitForInitialization | mozilla::IdentityCredentialStorageService::DeleteFromOriginAttributesPattern]

Categories

(Core :: DOM: Credential Management, defect)

Firefox 111
x86
Windows 7
defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox111 --- wontfix
firefox112 --- disabled
firefox113 --- disabled
firefox114 --- wontfix
firefox115 --- fixed

People

(Reporter: dmeehan, Assigned: bvandersloot)

References

(Blocks 2 open bugs)

Details

(Keywords: crash, regression, regressionwindow-wanted)

Crash Data

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/6e20bd7e-537e-4e48-81bf-8f1240230321

MOZ_CRASH Reason: Shutdown hanging at step AppShutdownTeardown. Something is blocking the main-thread.

Top 10 frames of crashing thread:

0  ntdll.dll  KiFastSystemCallRet  
1  ntdll.dll  NtWaitForKeyedEvent  
2  ntdll.dll  RtlSleepConditionVariableSRW  
3  kernel32.dll  SleepConditionVariableSRW  
4  mozglue.dll  mozilla::detail::ConditionVariableImpl::wait  mozglue/misc/ConditionVariable_windows.cpp:50
5  xul.dll  mozilla::OffTheBooksCondVar::Wait  xpcom/threads/CondVar.h:58
5  xul.dll  mozilla::Monitor::Wait  xpcom/threads/Monitor.h:37
5  xul.dll  mozilla::IdentityCredentialStorageService::WaitForInitialization  toolkit/components/credentialmanagement/IdentityCredentialStorageService.cpp:198
6  xul.dll  mozilla::IdentityCredentialStorageService::DeleteFromOriginAttributesPattern  toolkit/components/credentialmanagement/IdentityCredentialStorageService.cpp:719
7  xul.dll  NS_InvokeByIndex  

So far 333 crashes all on windows

See Bug 1823655 also, not sure if this both should be tracked under the same bug

See Also: → 1823655
QA Whiteboard: [qa-regression-triage]

Settings 111 to wontfix, as 112 RC builds next week.

marking as this disabled since the crashes should technically not occur in 112 with the landing of D174488 in Bug 1823655. The actual fix remains in 113 (D174212 in Bug 1823655)

The severity field is not set for this bug.
:bvandersloot, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bvandersloot)

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 20 desktop browser crashes on release

:bvandersloot, could you consider increasing the severity of this top-crash bug?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bvandersloot)
Keywords: topcrash
Blocks: 1788211
Flags: needinfo?(tihuang)

We landed the same disabling patch from bug 1823655 for 113 that landed back in comment 4 for 112. And if I understand correctly, we're hoping that bug 1825749 resolves these crashes for 114+. We can probably close this out next cycle if Beta114 is looking good.

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit BugBot documentation.

Keywords: topcrash

Bug 1825749 disables cleaning credential identity storage during shutdown if the feature is not enabled(The default setting). This will stop this crash, but we don't fix the root cause. So, the crash will happen again once we enable this feature. I suggest we keep this bug open for investigating and fixing the rool cause.

Flags: needinfo?(tihuang)

I don't have a windows machine to repro this on, however I have a likely root cause and will validate it in a Treeherder run.

This service has some logic to prevent initialization during shutdown. This prevents deadlocks like this where we wait for initialization. This was using ShutdownPhase::AppShutdown. It looks like Windows is hitting this code in ShutdownPhase::AppShutdownTeardown, which is before ShutdownPhase::AppShutdown according to https://searchfox.org/mozilla-central/source/xpcom/base/ShutdownPhase.h.

The correct solution to fix that issue would be to use ShutdownPhase::AppShutdownConfirmed as the first phase in which we don't spin up this service, rather than ShutdownPhase::AppShutdown.

Flags: needinfo?(bvandersloot)
Assignee: nobody → bvandersloot
Status: NEW → ASSIGNED
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b3cff6aaf6bd Include earlier stages of shutdown when preventing initialization during shutdown of IdentityCredentialStorageService, r=timhuang
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.
:bvandersloot, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox114 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(bvandersloot)
Flags: needinfo?(bvandersloot)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: