#11844: Race condition in building MPIR/yasm
------------------------+---------------------------------------------------
   Reporter:  vbraun    |          Owner:  tbd                                  
       
       Type:  defect    |         Status:  needs_review                         
       
   Priority:  critical  |      Milestone:  sage-4.7.2                           
       
  Component:  packages  |       Keywords:                                       
       
Work_issues:            |       Upstream:  Fixed upstream, but not in a stable 
release.
   Reviewer:            |         Author:                                       
       
     Merged:            |   Dependencies:                                       
       
------------------------+---------------------------------------------------

Comment(by leif):

 Replying to [comment:8 vbraun]:
 > > Note that the yasm guys do not check whether the call to tmpfile()
 succeeded
 >
 > In the unlikely case that `tmpfile()` can't find a unique file name,
 it'll return NULL

 {{{
 ERRORS
        EACCES Search permission denied for directory in file's path
 prefix.

        EEXIST Unable to generate a unique filename.

        EINTR  The call was interrupted by a signal.

        EMFILE Too many file descriptors in use by the process.

        ENFILE Too many files open in the system.

        ENOSPC There was no room in the directory to add the new filename.

        EROFS  Read-only file system.
 }}}

 So there are a couple of reasons why `tmpfile()`could fail (and these may
 be temporary, i.e., later calls at least from other processes may well
 succeed).

 Letting `re2c` segfault is of course the pythonic way... ;-)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11844#comment:9>
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.

Reply via email to