Closed
Bug 1059480
Opened 10 years ago
Closed 10 years ago
Test harness should produce an error if a content process crashes before we produce the leak log
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 831223
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
(Whiteboard: [MemShrink:P1])
This is needed to detect regressions in content process leaks that are being fixed in bug 1035454. Otherwise, we can apparently crash and it won't report an error. There's some code around to detect this situation, but I guess it isn't working for content processes for some reason.
Assignee | ||
Updated•10 years ago
|
Component: XPCOM → Mochitest
Product: Core → Testing
Comment 1•10 years ago
|
||
ted, is this something you could look at?
Assignee | ||
Comment 2•10 years ago
|
||
This may be a dupe of bug 831223, I can't quite tell. eg it looks like there is code in the test harness that is already set up to do this, it is just intentionally disabled due to Gecko-side flakiness.
Assignee | ||
Comment 3•10 years ago
|
||
Also it looks like this may have regressed in the last week. :(
16:00:52 INFO - WARNING | leakcheck | tab process: missing output line for total leaks!
Either that or my patch messed it up somehow.
https://tbpl.mozilla.org/?tree=Try&rev=4b24221af3b5
Assignee | ||
Comment 4•10 years ago
|
||
Contrast that to my push from the 21st, where the leak detector is working:
https://tbpl.mozilla.org/?tree=Try&rev=32bf41cea397
18:07:28 WARNING - TEST-UNEXPECTED-FAIL | leakcheck | tab process: 591085 bytes leaked (ActiveElementManager, AsyncLatencyLogger, AsyncTransactionTrackersHolder, AtomImpl, BackstagePass, ...)
Comment 5•10 years ago
|
||
If content processes are crashing we ought to be printing an error and a stack to the log (and it looks like we are, from your link in comment 3). Am I missing something?
Flags: needinfo?(ted)
Assignee | ||
Comment 6•10 years ago
|
||
Yeah, I think this is actually trivial to fix on the test harness side of things: there's code to do this, it is just intentionally a warning not an error. I hadn't looked into the particulars of it before, sorry for the bother.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → continuation
Comment 7•10 years ago
|
||
I think the "crashes aren't an error" stuff dates back to before we had the code to handle expected crashes in Mochitest.
Assignee | ||
Comment 8•10 years ago
|
||
Well, from bug 831223 it sounds like the problem is that content processes sometimes end up shutting down after the main process, so the leak check was actually running, but it showed up too late. I don't know what the current state of affairs is for the main process waiting for child process shut down. I imagine with e10s the content process may be doing more shutdown work than the child process.
Assignee | ||
Updated•10 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•