Skip to content
Tcl Source Code History Of Ticket 772288ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 772288ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 772288ffffffffffffffffffffffffffffffffff

  1. Ticket change [ebed174ca5] (rid 103619) by dkf on 2003-07-16 13:18:15:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The following script crashes both the HEAD and the 8.4
      branch:
        open /dev/null
      when run like this (from BASH, but there are other
      equivalent situations):
        tclsh bug.tcl <&-
      
      The effect of the invokation is to make tclsh run
      without stdin opened (the same also happens with stdout
      and stderr.)  This is caused by leaving the
      initialisation of the channel table until the call to
      Tcl_RegisterChannel() as part of the closing stages of
      the [open] implementation, which ensures that fd0 (or 1
      or 2) is put in the table twice, once for stdin/out/err
      and once for the newly created channel for [open], with
      the second time being the crash.
      
      The attached patch fixes this, but causes test
      encoding-24.3 to fail, and will break any script that
      depends on setting [encoding system] early so as to
      alter the encodings of the std channels.
      
      This problem was discovered by rmax
      
    4. foundin initialized to: "obsolete: 8.4.3"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dkf"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "Crash when std channels not open"
    11. type initialized to: "Bug"
  2. Add attachment "channelbug.patch" [95bb627da5] (rid 106204) by dkf on 2003-07-16 20:18:16.

  3. Ticket change [44a5153fcf] (rid 116742) by dkf on 2003-07-16 20:18:16:

    1. icomment:
      
      
      File Added - 55966: channelbug.patch
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [be272f835c] (rid 102027) by hobbs on 2003-07-19 03:15:26:

    1. priority changed to: "8"
  5. Ticket change [3c546627e8] (rid 120899) by hobbs on 2003-07-19 03:19:03:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      I want a much better understanding of the implications of this 
      bug before placing it into 8.4.x
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [1af25c2653] (rid 123065) by rmax on 2003-10-02 16:38:28:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      Any news here, Jeff?
      Today another colleague got hit by this bug, because stdin
      is closed on processes started from fvwm2 buttons or menus.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  7. Ticket change [f9de8bee66] (rid 91768) by rmax on 2003-10-02 20:15:13:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      How about this patch, at least as a workaround to prevent
      the crash until a better solution is found? Unlike Donal's
      proposal no tests fail with this patch applied. There might
      be better places for adding these lines, but
      TclpInitPlatform was the most reasonable place I have found.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  8. Add attachment "open-std-channels.patch" [53aa1657de] (rid 93794) by rmax on 2003-10-02 20:15:15.

  9. Ticket change [9e9424f9a2] (rid 96500) by rmax on 2003-10-02 20:15:16:

    1. icomment:
      
      
      File Added - 63206: open-std-channels.patch
      
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  10. Ticket change [a3b9fbc949] (rid 110091) by hobbs on 2003-11-07 06:22:45:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      The alternate patch ignores Windows ... but is that 100% 
      valid?  I recently had to solve this by checking for the 
      standard channels being NULL on Windows.  I can't repro this 
      with a variation of bug.tcl though.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  11. Ticket change [d8b3574495] (rid 107488) by hobbs on 2004-02-07 02:34:00:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      we should have a test case for this.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  12. Ticket change [8d5352b0be] (rid 127907) by hobbs on 2004-02-18 06:54:39:

    1. closedate changed to: "2004-02-17T23:54:39"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      test unixInit-7.1 {closed standard channel} -body {
          set tclsh [interpreter]
          makeFile {puts [open /dev/null]} crash.tcl
          makeFile [subst -nocommands {
      close stdin
      exec $tclsh crash.tcl
          }] crashtest.tcl
          exec $tclsh crashtest.tcl
      } -returnCodes 0
      
      in 8.4.6 and 8.5a1.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"