Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a257d79f769c65488a142358f21967e7f84f4ccb24f7ed60f4ccd8d01f336c0
Ticket: 270f78ca95b642fbed81ed03ad381d64a0d0f7df
file mkdir: race condition if two workers creates same directory and one worker deletes it immediately
User & Date: anonymous on 2018-07-09 15:12:33
Changes

  1. closedate changed to: "2458309.13372222"
  2. closer changed to: "anonymous"
  3. icomment:
    This can reproduced with mkdir alone. On nfs with 3 terminals, 
    
     1. bash : while [[ 1 ]]; do rm -rf bla; done
     2. tclsh: while {1} {file mkdir bla}
    
    This will already cause bash to throw weird errors (but loop will continue)
     
     rm: cannot remove `bla': Is a directory
    
    even though we used -rf. Now add
     3. tclsh: while {1} {file mkdir bla}
    
    Almost immediately one of the tcl shells will produce:
    
     can't create directory "bla": file already exists
    
    These things are tcl specific, and won't happen with builtin mkdir -p.
    
  4. login: "anonymous"
  5. mimetype: "text/plain"