Closed
Bug 788971
Opened 13 years ago
Closed 13 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•13 years ago
|
||
So this is a bug in rules.mk that also manifested as a deadlock in Pymake?
| Reporter | ||
Comment 2•13 years ago
|
||
Apparently, yes.
| Reporter | ||
Comment 3•13 years ago
|
||
random dead-lock.
| Assignee | ||
Updated•13 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•13 years ago
|
||
Assignee: nobody → sagarwal
Status: NEW → ASSIGNED
Attachment #658881 -
Flags: review?(ted.mielczarek)
Comment 5•13 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•13 years ago
|
Attachment #658881 -
Flags: review?(ted.mielczarek) → review+
| Assignee | ||
Comment 6•13 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•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Flags: in-testsuite+
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•