#8677: race condition creating dirs during Sage build on RH 5.4
---------------------------+------------------------------------------------
Reporter: GeorgSWeber | Owner: GeorgSWeber
Type: defect | Status: new
Priority: major | Milestone: sage-4.4
Component: build | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by craigcitro):
Yep, this is a race condition. I hit exactly this problem for the "second"
half of the parallel build stuff -- namely dispatching calls to gcc in
parallel. The fix there would work here: at some point before the parallel
dispatch, I walked the tree and made sure to create all the necessary
directories. The other option would be to catch and ignore the `OSError`,
but I think that's a horrible idea. Well, that's not completely true -- if
you checked the error message, and confirmed that the filename it
complained about was a directory that does now exist, it would probably be
fine to ignore it and move on.
There's nothing RH specific about this -- I think it was just bad luck.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8677#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.