Closed Bug 441352 Opened 17 years ago Closed 15 years ago

Weave calls PSM/NSS late in shutdown, causing crash [@ PK11_GetInternalKeySlot]

Categories

(Cloud Services :: General, defect)

x86
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME
Future

People

(Reporter: bent.mozilla, Unassigned)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Attached file Apple Crash Report
I'm running a debug build with weave and crashed on shutdown here. Stack attached.
Assignee: nobody → kaie
Component: Weave → Security: UI
Keywords: crash
Product: Mozilla Labs → Core
QA Contact: weave → ui
Summary: Shutdown crash with Weave [@PR_CreateFileMap] → Shutdown crash with Weave [@ PR_CreateFileMap - PK11_GetInternalKeySlot]
Target Milestone: -- → ---
Version: unspecified → Trunk
Kai or Julien or Nelson, please determine whether this stack trace is useful, and mark the bug as incomplete if not.
Whiteboard: [needs NSS hackers to determine whether stack is useful]
Does Weave use code to ensure that Weave will stop using all NSS resources prior to the time when PSM shuts down NSS? The list of active threads does not show the SSL thread. I conclude PSM has already shut down NSS.
The stack shown is incorrect, but it's trivial to determine the correct stack. The NSPR function in question is not PR_CreateFileMap. It's PR_Assert, called via the PORT_Assert macro at http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/nss/lib/pk11wrap/pk11slot.c&rev=1.93&mark=1658#1654 As Kai surmised in comment 2, this is precisely another case of calling NSS code after NSS has been shut down.
Assignee: kaie → nobody
Component: Security: UI → Needs Triage
Product: Core → Weave
QA Contact: ui → needstriage
Summary: Shutdown crash with Weave [@ PR_CreateFileMap - PK11_GetInternalKeySlot] → Weave calls PSM/NSS late in shutdown, causing crash [@ PK11_GetInternalKeySlot]
Whiteboard: [needs NSS hackers to determine whether stack is useful]
Version: Trunk → unspecified
Target Milestone: --- → Future
Component: Needs Triage → General
QA Contact: needstriage → general
I haven't seen any reports of this since the switch to ctypes, resolving WFM.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Crash Signature: [@ PK11_GetInternalKeySlot]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: