Closed Bug 1702513 Opened 3 years ago Closed 2 years ago

Crash in [@ IPCError-browser | ShutDownKill | mozilla::BackgroundHangThread::NotifyWait]

Categories

(Toolkit :: General, defect)

Unspecified
Windows 7
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sefeng, Unassigned)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/12837791-3203-49b1-a945-a93ec0210331

Reason: EXCEPTION_BREAKPOINT

Top 10 frames of crashing thread:

0 ntdll.dll NtWaitForKeyedEvent 
1 ntdll.dll RtlSleepConditionVariableSRW 
2 xul.dll mozilla::BackgroundHangThread::NotifyWait toolkit/components/backgroundhangmonitor/BackgroundHangMonitor.cpp:272
3 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1089
4 xul.dll mozilla::ipc::MessagePump::Run ipc/glue/MessagePump.cpp:109
5 xul.dll MessageLoop::RunHandler ipc/chromium/src/base/message_loop.cc:328
6 xul.dll MessageLoop::Run ipc/chromium/src/base/message_loop.cc:310
7 xul.dll nsBaseAppShell::Run widget/nsBaseAppShell.cpp:137
8 xul.dll nsAppShell::Run widget/windows/nsAppShell.cpp:602
9 xul.dll XRE_RunAppShell toolkit/xre/nsEmbedFunctions.cpp:902

This shutdown hang looks suspicious. Could it be that the BackgroundHangThread is waiting for a lock, however the thread which supposes to release the lock is dead?

Latest work under BHR seems to be under the Profiler banner. Recomponenting.

Component: Telemetry → Gecko Profiler
Product: Toolkit → Core
Component: Gecko Profiler → General
Flags: needinfo?(dothayer)
Product: Core → Toolkit

One thing that stands out to me is that these all seem to be on Windows 7? I cannot think of a reason why Windows 7 would behave differently than Windows 10 here though.

We basically never forcibly terminate threads, and there aren't many threads that are even tracked by BHR. All uses of the lock are clearly scoped, so I don't see a way for this to be a hang on an indefinitely held lock.

Given that this seems to be Windows 7 specific, the code only runs on Nightly, and I can't identify any obvious smoking gun, I think this is low priority to diagnose.

Flags: needinfo?(dothayer)

I'm afraid the crash report is gone, so we can't really see what the hang was happening in in the content process. Closing as INCOMPLETE.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.