Closed
Bug 540967
Opened 15 years ago
Closed 15 years ago
Windows: sporadic issue with mochitest-ipcplugins: "missing output line for total leaks"
Categories
(Core :: IPC, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: philor, Assigned: benjamin)
References
()
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
2.67 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #539295 +++
Second verse, same as the first except with Windows this time:
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264019073.1264020660.32626.gz#err6
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/20 12:24:33
s: win32-slave18
PROCESS-CRASH | automation.py | application crashed (minidump found)
Thread 2 (crashed)
PROCESS-CRASH | automation.py | application crashed (minidump found)
Thread 2 (crashed)
PROCESS-CRASH | automation.py | application crashed (minidump found)
Thread 2 (crashed)
TEST-UNEXPECTED-FAIL | plugin process 3056 | automationutils.processLeakLog() | missing output line for total leaks!
TEST-UNEXPECTED-FAIL | plugin process 3056 | automationutils.processLeakLog() | missing output line for total leaks!
Reporter | ||
Comment 1•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264083500.1264084951.9731.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/21 06:18:20
s: win32-slave15
Assignee | ||
Comment 2•15 years ago
|
||
Assignee: nobody → benjamin
Attachment #422825 -
Flags: review?(jones.chris.g)
Comment on attachment 422825 [details] [diff] [review]
Wait for processes on Windows too, rev. 1
>diff --git a/ipc/chromium/src/chrome/common/process_watcher_win.cc b/ipc/chromium/src/chrome/common/process_watcher_win.cc
>--- a/ipc/chromium/src/chrome/common/process_watcher_win.cc
>+++ b/ipc/chromium/src/chrome/common/process_watcher_win.cc
>-void ProcessWatcher::EnsureProcessTerminated(base::ProcessHandle process) {
>+void ProcessWatcher::EnsureProcessTerminated(base::ProcessHandle process
>+#ifdef CHROMIUM_MOZILLA_BUILD
>+ , bool force
>+#endif
>+) {
> DCHECK(process != GetCurrentProcess());
>
>+#ifdef CHROMIUM_MOZILLA_BUILD
>+ if (!force) {
>+ WaitForSingleObject(process, INFINITE);
>+ return;
>+ }
>+#endif
>+
bent points out that you need a |CloseHandle(process)| here. r+ with that fix.
There's a less important, more general question of how this code should behave. It runs on the IO thread, so blocking syscalls choke off IPC for their duration. The POSIX code only does an infinite-blocking-wait upon "MessageLoop destruction" (i.e. IO thread exit), whereas this code infinite-blocking-waits immediate on ~GeckoChildProcessHost(). Arguments can be made for both; I'm r+ing because for unit tests et al. I don't think it really matters. However, for developer builds, I prefer the POSIX code's behavior, because hung child processes don't immediately wedge IPC in the parent. Certainly something for a followup bug, if that.
Attachment #422825 -
Flags: review?(jones.chris.g) → review+
Reporter | ||
Comment 4•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264120630.1264122636.21432.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/21 16:37:10
s: win32-slave06
Reporter | ||
Comment 5•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264206458.1264208394.13167.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/22 16:27:38
s: win32-slave16
Reporter | ||
Comment 6•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264215631.1264217356.16225.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/22 19:00:31
s: win32-slave23
Reporter | ||
Comment 7•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264218712.1264220146.14730.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/22 19:51:52
s: win32-slave34
Reporter | ||
Comment 8•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264356525.1264358196.5576.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/24 10:08:45
s: win32-slave43
Reporter | ||
Comment 9•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264336403.1264338465.32619.gz
WINNT 5.2 mozilla-central debug test mochitest-other on 2010/01/24 04:33:23
s: win32-slave12
Assignee | ||
Comment 10•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Target Milestone: --- → mozilla1.9.3a1
Updated•15 years ago
|
Whiteboard: [orange]
Updated•12 years ago
|
Keywords: intermittent-failure
Updated•12 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•