[ET Trac] [Einstein Toolkit] #1612: race condition when building Cactus utilities (was: reace condition when building Cactus utilities)

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue May 6 23:24:04 CDT 2014


#1612: race condition when building Cactus utilities
---------------------+------------------------------------------------------
  Reporter:  rhaas   |       Owner:                     
      Type:  defect  |      Status:  new                
  Priority:  minor   |   Milestone:                     
 Component:  Cactus  |     Version:  development version
Resolution:          |    Keywords:                     
---------------------+------------------------------------------------------

Comment (by rhaas):

 Some digging reveals this mkdir to be actually done by bluewater's ld
 command which is a shell script (/sw/xe/altd/bin/ld) "ALTD ld wrapper
 script".

 It creates in line 109
 {{{
 WRKDIR=/tmp/`date +%s`
 mkdir $WRKDIR
 }}}
 a temporary directory whose name is solely based on the current time
 (which is quite silly, it would have been very easy to also include say
 the process id or simply use mktemp and avoid this race condition).

 There seems to be not much we can do about this. I was actually more
 concerned about the fact that "Building utilities for simO3" appears
 twice, however this seems to be output by simfactory.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1612#comment:2>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list