Closed
Bug 1439383
Opened 6 years ago
Closed 6 years ago
the LoadRoots background thread hangs around indefinitely
Categories
(Core :: Security: PSM, enhancement, P1)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: froydnj, Assigned: keeler)
References
Details
(Whiteboard: [MemShrink:P3][psm-assigned])
Attachments
(1 file)
LoadLoadableRootsTask::Dispatch creates a thread for itself to run on, but never shuts the thread down. So we have this single-use thread hanging out in the parent process, consuming resources (mostly the memory for its stack) for no reason. We should shut down the thread after LoadLoadableRootsTask has finished its work, or find a separate, non-transient thread to do this work on.
Updated•6 years ago
|
Whiteboard: [MemShrink] → [MemShrink:P3]
Assignee | ||
Updated•6 years ago
|
Priority: -- → P2
Whiteboard: [MemShrink:P3] → [MemShrink:P3][psm-backlog]
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → dkeeler
Priority: P2 → P1
Whiteboard: [MemShrink:P3][psm-backlog] → [MemShrink:P3][psm-assigned]
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8960276 [details] bug 1439383 - clean up the load loadable roots thread when we're done with it https://reviewboard.mozilla.org/r/229044/#review234816 Thank you!
Attachment #8960276 -
Flags: review?(nfroyd) → review+
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8960276 [details] bug 1439383 - clean up the load loadable roots thread when we're done with it https://reviewboard.mozilla.org/r/229044/#review234946 LGTM.
Attachment #8960276 -
Flags: review?(jjones) → review+
Assignee | ||
Comment 4•6 years ago
|
||
Thanks for the reviews! https://treeherder.mozilla.org/#/jobs?repo=try&revision=bac374b018d9154e1327827d9f7996ce46874725
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5be07e86738e clean up the load loadable roots thread when we're done with it r=froydnj,jcj
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5be07e86738e
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Updated•6 years ago
|
Backout by csabou@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/c23c7481957f Backed out changeset 5be07e86738e for causing leaks (bug 1401883). a=backout
Assignee | ||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
Backed out for causing leaks. Please see https://bugzilla.mozilla.org/show_bug.cgi?id=1401883#c64 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=171756681&repo=mozilla-inbound&lineNumber=4133 Backout link: https://hg.mozilla.org/mozilla-central/rev/c23c7481957f7b982cffc0ce1d25979c69ca2c2f
status-firefox58:
wontfix → ---
status-firefox59:
wontfix → ---
status-firefox60:
wontfix → ---
status-firefox61:
affected → ---
status-firefox-esr52:
unaffected → ---
Flags: needinfo?(dkeeler)
Target Milestone: mozilla61 → ---
Assignee | ||
Comment 9•6 years ago
|
||
I tried some things, but I have no idea why shutting down a thread would cause leaks. :froydnj any ideas?
Flags: needinfo?(dkeeler) → needinfo?(nfroyd)
Reporter | ||
Comment 10•6 years ago
|
||
(In reply to David Keeler [:keeler] (use needinfo) from comment #9) > I tried some things, but I have no idea why shutting down a thread would > cause leaks. :froydnj any ideas? I have no idea either, that seems bizarre. The one thing that comes to mind is that with this patch, you're now sending an extra event through the event loop, and that does...something. It changes some sort of timing window just enough that the conditions for the leak happen more consistently? Unfortunately, the leaks only seem to happen on Windows, so we don't have rr available...maybe MS's time travel debugging could be used to capture this?
Flags: needinfo?(nfroyd)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 12•6 years ago
|
||
Now that bug 1401883 has (hopefully?) been fixed, I think it's safe to re-land this. https://treeherder.mozilla.org/#/jobs?repo=try&revision=a5c3f8a32fbf4b4a0db55df2acd7e555da061bab&selectedJob=182414098
Comment 13•6 years ago
|
||
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ffd4b055fb8b clean up the load loadable roots thread when we're done with it r=froydnj,jcj
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ffd4b055fb8b
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•