Closed Bug 475532 Opened 16 years ago Closed 15 years ago

ASSERTION: nsXPInstallManager not thread-safe: '_mOwningThread.GetThread() == PR_GetCurrentThread()', file /Users/dave/mozilla/source/trunk/mozilla/xpinstall/src/nsXPInstallManager.cpp

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: mossop, Assigned: mossop)

References

Details

(Keywords: fixed1.9.0.11, fixed1.9.1)

Attachments

(1 file, 1 obsolete file)

While it is never getting called on a non-main thread, the badcertlistener code is called through a proxy to the main thread, and creating that proxy requires the object to have threadsafe addref/release implementations.
Attached patch patch rev 1 (obsolete) — Splinter Review
Give it threadsafe implementations
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #359046 - Flags: superreview?
Attachment #359046 - Flags: review?
Attachment #359046 - Flags: superreview?(dveditz)
Attachment #359046 - Flags: superreview?
Attachment #359046 - Flags: review?(benjamin)
Attachment #359046 - Flags: review?
Comment on attachment 359046 [details] [diff] [review]
patch rev 1

Please add an assertion to ~nsXPInstallManager that it is always being destroyed on the main thread (last release).
Attachment #359046 - Flags: superreview?(dveditz)
Attachment #359046 - Flags: superreview+
Attachment #359046 - Flags: review?(benjamin)
Attachment #359046 - Flags: review+
Pushed: http://hg.mozilla.org/mozilla-central/rev/0d50fb80f608
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Blocks: 474763
Attached patch patch checked inSplinter Review
I'd like to land this on the 1.9.1 branch. I don't expect it likely we'd see any problems fixed by this, though it certainly wouldn't hurt, but I would like to land bug 474763 on the branch
Attachment #359046 - Attachment is obsolete: true
Attachment #361519 - Flags: superreview+
Attachment #361519 - Flags: review+
Attachment #361519 - Flags: approval1.9.1?
Comment on attachment 361519 [details] [diff] [review]
patch checked in

a191=beltzner
Attachment #361519 - Flags: approval1.9.1? → approval1.9.1+
Comment on attachment 361519 [details] [diff] [review]
patch checked in

Approving both of these for 1.9.0.10. a=ss for release-drivers.
Attachment #361519 - Flags: approval1.9.0.10+
Landed on 1.9.0.x branch:

Checking in xpinstall/src/nsXPInstallManager.cpp;
/cvsroot/mozilla/xpinstall/src/nsXPInstallManager.cpp,v  <--  nsXPInstallManager.cpp
new revision: 1.168; previous revision: 1.167
done
Keywords: fixed1.9.0.10
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: