Closed
Bug 988881
Opened 11 years ago
Closed 11 years ago
SignedJAR threads are not ended by the end of xpcom-shutdown-threads
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: jesup, Assigned: jesup)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 3 obsolete files)
3.04 KB,
patch
|
mayhemer
:
review+
benjamin
:
feedback+
|
Details | Diff | Splinter Review |
With the patch from bug 988464, we see many SignedJAR threads in M1 still active after xpcom-shutdown-threads (which is after xpcom-shutdown). One run with an earlier version of the patch:
https://tbpl.mozilla.org/?tree=Try&rev=8ac1c136a95f
See https://wiki.mozilla.org/XPCOM_Shutdown
xpcom-shutdown-threads: "Any non-main-thread event queues should be finished by the module which owns them. All threads running XPCOM code should be joined. Any special services that might be required for component loader shutdown should be obtained and cached by the end of this notification. Initial garbage collection should be performed at this stage."
Updated•11 years ago
|
Component: Security → Security: PSM
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 8407845 [details] [diff] [review]
clean up CryptoTask (SignedJar) tasks instead of leaking them
Review of attachment 8407845 [details] [diff] [review]:
-----------------------------------------------------------------
This is leaking a thread for every SignedJar examined......
Attachment #8407845 -
Flags: review?(benjamin)
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8407845 -
Attachment is obsolete: true
Attachment #8407845 -
Flags: review?(benjamin)
Assignee | ||
Comment 4•11 years ago
|
||
Switched from Dispatch-in-NewNamedThread(), because the returned value isn't valid until the call returns, and the event may run before then. In the AudioInitTask, we could have passed it in and used the CurrentThread to set mThread in ::Run(), but there's no real advantage to that over this, and this is clear. A more direct AsyncShutdown(currentThread) would make this simpler, of course.
Assignee | ||
Updated•11 years ago
|
Attachment #8407957 -
Attachment is obsolete: true
Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8407989 [details] [diff] [review]
clean up CryptoTask (SignedJar) tasks instead of leaking them
https://tbpl.mozilla.org/?tree=Try&rev=36c43142e548
https://tbpl.mozilla.org/php/getParsedLog.php?id=37970671&tree=Mozilla-Inbound is an example of why we need to make sure mThread is set before Dispatch()/Run().
Attachment #8407989 -
Flags: review?(benjamin)
Assignee | ||
Comment 6•11 years ago
|
||
Note the Try has the patch from bug 988464 in it. See https://tbpl.mozilla.org/?tree=Try&rev=65248c8ac654 for a run without this patch (leaks of 13 SignedJar threads in M1)
Assignee | ||
Comment 7•11 years ago
|
||
split AudioInitTask code out to bug 997286
Assignee | ||
Updated•11 years ago
|
Attachment #8407989 -
Attachment is obsolete: true
Attachment #8407989 -
Flags: review?(benjamin)
Assignee | ||
Updated•11 years ago
|
Attachment #8408015 -
Flags: review?(benjamin)
Comment 8•11 years ago
|
||
Comment on attachment 8408015 [details] [diff] [review]
clean up CryptoTask (SignedJar) tasks instead of leaking them
I think we should have PSM review here.
Attachment #8408015 -
Flags: review?(honzab.moz)
Attachment #8408015 -
Flags: review?(benjamin)
Attachment #8408015 -
Flags: feedback+
Updated•11 years ago
|
Attachment #8408015 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Comment 9•11 years ago
|
||
status-firefox28:
--- → wontfix
status-firefox29:
--- → wontfix
status-firefox30:
--- → affected
status-firefox31:
--- → affected
status-firefox-esr24:
--- → wontfix
tracking-firefox30:
--- → ?
Target Milestone: --- → mozilla31
Comment 10•11 years ago
|
||
Assignee: nobody → rjesup
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Assignee | ||
Comment 12•11 years ago
|
||
I'm not sure a memory leak that has existed for quite a while deserves beta uplift. This is already on Aurora.
Flags: needinfo?(rjesup)
Comment 13•11 years ago
|
||
Not going to track this then, if it's not a concern to you - but it was nominated for tracking 3 weeks ago by you and I had the impression this was worth getting uplifted to help with any shutdown slowness since we're experiencing a higher volume of that in FF29. If it's not low risk to land, we can let it ride but if not and there's any positive user impact, please consider an uplift.
Assignee | ||
Updated•9 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•