Closed
Bug 788971
Opened 12 years ago
Closed 12 years ago
Pymake chokes when native commands raise exceptions without a "code" attribute
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla18
People
(Reporter: glandium, Assigned: rain1)
Details
Attachments
(1 file)
1.48 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Bug 784262 caused bug 788954, which is a race condition happening because export-idl and export are trying to do the same thing in the same directory at the same time. It seems to be causing deadlocks on windows builders in bug 788917.
Assignee | ||
Comment 1•12 years ago
|
||
So this is a bug in rules.mk that also manifested as a deadlock in Pymake?
Reporter | ||
Comment 2•12 years ago
|
||
Apparently, yes.
Reporter | ||
Comment 3•12 years ago
|
||
random dead-lock.
Assignee | ||
Updated•12 years ago
|
Summary: Possible pymake dead-lock caused by makefile race-conditions → Pymake chokes when native commands raise exceptions without a "code" attribute
Assignee | ||
Comment 4•12 years ago
|
||
Assignee: nobody → sagarwal
Status: NEW → ASSIGNED
Attachment #658881 -
Flags: review?(ted.mielczarek)
Comment 5•12 years ago
|
||
Comment on attachment 658881 [details] [diff] [review] oops Review of attachment 658881 [details] [diff] [review]: ----------------------------------------------------------------- ::: pymake/process.py @@ +264,5 @@ > pass # sys.exit(0) is not a failure > else: > print >>sys.stderr, e > + traceback.print_exc() > + return -127 Can we be smarter about this and use getattr(e.code, -127)?
Updated•12 years ago
|
Attachment #658881 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 6•12 years ago
|
||
I'd rather not -- e.code isn't defined in general. It's also defined for a few other exceptions, e.g. HTTP errors in urllib2, and I don't think we should turn those into something equivalent to process exit codes!
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/users/bsmedberg_mozilla.com/pymake/rev/5a286a07783f https://hg.mozilla.org/integration/mozilla-inbound/rev/a111a94df092
Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite+
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a111a94df092
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•