Skip to content
Tcl Source Code History Of Ticket 2826248fffffffff
Login

History Of Ticket 2826248fffffffff

Artifacts Associated With Ticket 2826248fffffffff

  1. Ticket change [275372479d] (rid 88496) by andy22286 on 2009-07-23 22:17:13:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When using a ref chan as part of an [exec] command, on redirection to the channel from another subprocess, a segmentation fault occurs.  This is due to a NULL function pointer, as detailed below.  See attached for sample script and associated valgrind error report.
      
      As stated by aku,
      
      akuTclpMakefile (tclUnixPipe) calls Tcl_GetChannelHandle (tclIO), this runs ->getHandleProc. This is NULL for reflected channels.
      akuAccording to my comment in tclIORChan.c this getHandleProc should be NULL'able, i.e. NULL allowed. Seems not. Or some check is missing somewhere.
      akuright, tcl.h says the same, getHandleProc can be set to NULL if not supported.
      akuThat means any channel type without getHandleProc will crash 'exec' and 'open|' when using a chanel of that type.
      
      akuso, we have to add a NULL check in Tcl_GetChannelHandle, and return TCL_ERROR if this occurs.
      
      akuI will likely have to do some other things around this to get a nice error message. The standard message will just claim 'not opened for reading or writing', which is bogus for this case.
      
    4. foundin initialized to: "obsolete: 8.6b1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "andy22286"
    10. subsystem initialized to: "24. Channel Commands"
    11. title initialized to: "Redirecting to a ref chan results in a seg fault"
    12. type initialized to: "Bug"
  2. Add attachment "chan.tcl" [99f621ddf5] (rid 110878) by andy22286 on 2009-07-24 05:17:13.

  3. Ticket change [c374524074] (rid 111660) by andy22286 on 2009-07-24 05:17:13:

    1. icomment:
      
      
      File Added - 336313: chan.tcl
      
      
      
    2. login: "andy22286"
    3. mimetype: "text/plain"
    4. username: "andy22286"
  4. Ticket change [c6ef51aa7b] (rid 121856) by andy22286 on 2009-07-24 05:19:09:

    1. icomment:
      
      
      File Added - 336314: chan.tcl.valgrind
      
      
      
    2. login: "andy22286"
    3. mimetype: "text/plain"
    4. username: "andy22286"
  5. Ticket change [197f68d25d] (rid 122815) by andy22286 on 2009-07-24 05:19:21:

    1. icomment:
      
      
      File Deleted - 336314: 
      
      
      
    2. login: "andy22286"
    3. mimetype: "text/plain"
    4. username: "andy22286"
  6. Add attachment "chan.tcl.valgrind" [b0966fea24] (rid 98008) by andy22286 on 2009-07-24 05:19:52.

  7. Ticket change [d2051dea5b] (rid 113453) by andy22286 on 2009-07-24 05:19:52:

    1. icomment:
      
      
      File Added - 336315: chan.tcl.valgrind
      
      
      
    2. login: "andy22286"
    3. mimetype: "text/plain"
    4. username: "andy22286"
  8. Ticket change [90ed3ac4dd] (rid 120538) by andy22286 on 2009-07-24 05:22:42:

    1. icomment:
      The sample script fails as detailed in the bug description on:
      Linux 2.6.28-13-generic Ubuntu 9.04 GNU/Linux
      
      
    2. login: "andy22286"
    3. mimetype: "text/plain"
    4. username: "andy22286"
  9. Add attachment "io-unos-channels-in-exec.patch" [32a76d1d9f] (rid 93649) by andreas_kupries on 2009-07-24 05:27:13.

  10. Ticket change [e068115df4] (rid 115189) by andreas_kupries on 2009-07-24 05:27:14:

    1. icomment:
      
      
      File Added - 336317: io-unos-channels-in-exec.patch
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  11. Ticket change [ade225cc38] (rid 101535) by andreas_kupries on 2009-07-24 05:28:41:

    1. icomment:
      Attached a patch fixing the problem for me.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  12. Ticket change [b1bdd82cb3] (rid 98205) by andreas_kupries on 2009-07-24 05:52:38:

    1. icomment:
      Passes testsuite. Committed for HEAD.
      Keeping open, check 8.5 branch as well.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  13. Ticket change [8902295319] (rid 131961) by andreas_kupries on 2009-07-25 00:43:06:

    1. closedate changed to: "2009-07-24T17:43:06"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      Backported to 8.5.
      Closing.
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"