Closed Bug 479373 Opened 16 years ago Closed 15 years ago

Hang on shutdown if there are outstanding SSL requests, low cpu

Categories

(Core :: Security: PSM, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME
Tracking Status
blocking2.0 --- final+

People

(Reporter: jruderman, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: hang, testcase, Whiteboard: [psm-fatal][tbwants])

Attachments

(4 files)

1. Temporarily install Quitter from https://www.squarefree.com/extensions/quitter.xpi 2. Load the testcase (this will cause Firefox to exit) Result: hang during shut down Expected: clean shut down
Attached file sample
CPU usage is low, so I'm guessing this is a deadlock. The main thread seems to be waiting for the PSM thread (nsPSMBackgroundThread::requestExit), and maybe the PSM thread is waiting for the main thread (nsComponentManagerImpl::CreateInstanceByContractID).
I'm hitting this a lot when fuzzing. It's slowing me down quite a big.
Blocks: ghostproc
Blocks: zombieproc
No longer blocks: ghostproc
Anecdotal evidence suggests that lots of users are hitting the "Firefox is already running, but is not responding" dialog, which indicates either a shutdown hang or a lock-management bug. This bug has a reproducible testcase and could plausibly be responsible for some of the pain users are experiencing.
blocking2.0: --- → ?
Summary: Hang on shutdown if there are outstanding SSL requests → Hang on shutdown if there are outstanding SSL requests, low cpu
I agree with Jesse, shutdown hangs is something we know is biting our users, and this could very well be a source of these. Seems like we should fix this for 1.9.3.
blocking2.0: ? → final+
Assignee: kaie → nobody
Whiteboard: [psm-fatal]
I believe Thunderbird is susceptible to this, especially with IMAP and LDAP
WFM on trunk with both testcases. Tested on Mac OS X 10.5.x.
WFM on Linux too, fwiw.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Whiteboard: [psm-fatal] → [psm-fatal][tbwants]
Target Milestone: --- → mozilla2.0b2
sorry, firefox session restore is mucking with bugzilla fields again. I didn't touch them. bievenu, I guess this means we take a different path. Cursory examination doesn't find other ssl hang bugs for core.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → WORKSFORME
Target Milestone: mozilla2.0b2 → ---
Wayne, I'm not sure any of those bugs involve an open ldap connection at shutdown time, though I think Standard8 might have one...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: