Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 96a790b880036d691cdfc0bbd364c639c87018dc
Ticket: 1941063fffffffffffffffffffffffffffffffff
test exec-9.7 fails randomly
User & Date: ferrieux on 2008-04-13 16:06:28
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Donal, two questions:
    
    (1) Scary. What about prio 9 ?
    
    (2)Isn't the test case itself risking a race ? Indeed, it spawns in parallel two instances of
    
        sh -c {echo error msg >&2;sleep 1}
    
    In this setup, descriptor 2 of both children is the err pipe to Tcl.
    Of course, those are small writes which are supposed to be atomic; but in principle nothing prevents the OS from doing a task switch in the middle. The result seen in $msg could then be any "crossover" like "errorerror msmsg
    g
    "
    I would have found much safer to have & child doing
         echo error msg >&2;sleep 1
    and the other one doing
         sleep 1;echo error msg >&2
    
    OK, now investigating, looking for the order of EOF and waitpid in the child-reaping process.
    Has this changed recently ?
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"