Closed
Bug 796880
Opened 13 years ago
Closed 13 years ago
better diagnostics when parent terminates before children
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: markh, Unassigned)
Details
Attachments
(3 files, 2 obsolete files)
1.32 KB,
patch
|
Details | Diff | Splinter Review | |
1.47 KB,
patch
|
wlach
:
review+
|
Details | Diff | Splinter Review |
999 bytes,
patch
|
markh
:
review+
|
Details | Diff | Splinter Review |
In bug 796840, there is a case where mozprocess gets upset if a parent process terminates while children are alive. The diagnostics in this case could be better - eg, listing the children PIDs would offer clues about what has gone wrong. This patch improves the messages printed in this case, including printing the child PIDs.
Attachment #666935 -
Flags: review?(gps)
Reporter | ||
Comment 1•13 years ago
|
||
Attachment #666935 -
Attachment is obsolete: true
Attachment #666935 -
Flags: review?(gps)
Attachment #666940 -
Flags: review?(gps)
Reporter | ||
Comment 2•13 years ago
|
||
Attachment #666940 -
Attachment is obsolete: true
Attachment #666940 -
Flags: review?(gps)
Attachment #666979 -
Flags: review?(gps)
Reporter | ||
Comment 3•13 years ago
|
||
*sigh* - printing .keys() won't do the right thing in py3k IIRC - list(ob.keys()) will.
Comment 4•13 years ago
|
||
mozprocess is actually part of mozbase: https://wiki.mozilla.org/Auto-tools/Projects/MozBase ; it should be fixed in its repo and mirrored to m-c; :gps, mind if one of us steals this review?
Comment 5•13 years ago
|
||
Comment on attachment 666979 [details] [diff] [review]
self.pid is what we need!
Review of attachment 666979 [details] [diff] [review]:
-----------------------------------------------------------------
Someone else should fix mozprocess issues.
There is also bug 795427 around more useful error messages for mach. Perhaps _run_command should have a try..finally for trapping exit and cleaning up child processes better?
Attachment #666979 -
Flags: review?(gps)
Comment 6•13 years ago
|
||
Attachment #667040 -
Flags: review?(wlachance)
Updated•13 years ago
|
Component: mach → Mozbase
Product: Core → Testing
Version: 16 Branch → Trunk
Comment 7•13 years ago
|
||
Comment on attachment 667040 [details] [diff] [review]
same as above but versus mozbase repo and with string formatting changes
LGTM
Attachment #667040 -
Flags: review?(wlachance) → review+
Comment 8•13 years ago
|
||
pushed to mozbase: https://github.com/mozilla/mozbase/commit/ae6780c717534d64d03919f7b2ee40e56e21cdba
We will mirror to m-c soon
Comment 9•13 years ago
|
||
Reporter | ||
Comment 10•13 years ago
|
||
Seeing this is still open, I'll report this here. The code as checked in will cause:
Traceback (most recent call last):
File "o:\src\mm\mozilla-hg\mc-socialapi-landing\testing/mozbase/mozprocess\mozprocess\processhandler.py", line 297, in _procmgr
self._poll_iocompletion_port()
File "o:\src\mm\mozilla-hg\mc-socialapi-landing\testing/mozbase/mozprocess\mozprocess\processhandler.py", line 333, in _poll_iocompletion_port
print >> sys.stderr, "PIDS: %s" % ', '.join(self._spawned_procs.keys())
TypeError: sequence item 0: expected string, long found
So we probably need something like:
print >> sys.stderr, "PIDS: %s" % ', '.join([str(p) for p in self._spawned_procs.keys()])
Reporter | ||
Comment 11•13 years ago
|
||
And we can just drop .keys()
print >> sys.stderr, "PIDS: %s" % ', '.join([str(p) for p in self._spawned_procs])
Comment 12•13 years ago
|
||
Attachment #668241 -
Flags: review?(mhammond)
Reporter | ||
Comment 13•13 years ago
|
||
Comment on attachment 668241 [details] [diff] [review]
follow up
Looks good and WFM
Attachment #668241 -
Flags: review?(mhammond) → review+
Comment 14•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•