Skip to content
Tcl Source Code History Of Ticket 2843166
Login

History Of Ticket 2843166

Artifacts Associated With Ticket 2843166

  1. Ticket change [fc9b0d9b9d] (rid 108265) by afaupell on 2009-08-23 18:03:57:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      test script:
      
      proc stdin {args} {
          switch -exact -- [lindex $args 0] {
              initialize { return {initialize finalize watch read} }
              read {
                  return read
              }
          }
      }
      close stdin
      chan create read stdin
      interp create
      puts hi
      
      
      causes segfault at interp create on AS build 8.5.7 on linux. commenting the chan create line fixes the problem.
      
      source built 8.5.6 on bsd and tclkit 8.5.2 on windows work fine.
      
      
    4. foundin initialized to: "None"
    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: "afaupell"
    10. subsystem initialized to: "20. [interp]"
    11. title initialized to:
      replacing stdin with refchan causes segfault in interp
      
    12. type initialized to: "Bug"
  2. Ticket change [4e4a97c6bc] (rid 127201) by dkf on 2009-08-24 02:53:42:

    1. assignee changed to: "andreas_kupries"
  3. Ticket change [6a863b4153] (rid 128166) by afaupell on 2009-08-24 04:30:30:

    1. icomment:
      stack trace
      
      #0  0x00000000 in ?? ()
      #1  0xb8016b9b in TclpMakeFile () from /usr/local/lib/libtcl8.5.so
      #2  0xb7fece03 in TclCreatePipeline () from /usr/local/lib/libtcl8.5.so
      #3  0xb7fecec0 in Tcl_OpenCommandChannel () from /usr/local/lib/libtcl8.5.so
      #4  0xb7fcad8f in Tcl_ExecObjCmd () from /usr/local/lib/libtcl8.5.so
      #5  0xb7f652ba in TclEvalObjvInternal () from /usr/local/lib/libtcl8.5.so
      #6  0xb7faaa57 in TclExecuteByteCode () from /usr/local/lib/libtcl8.5.so
      #7  0xb7ff273c in TclObjInterpProcCore () from /usr/local/lib/libtcl8.5.so
      #8  0xb7ff26a0 in TclObjInterpProc () from /usr/local/lib/libtcl8.5.so
      #9  0xb7f652ba in TclEvalObjvInternal () from /usr/local/lib/libtcl8.5.so
      #10 0xb7faaa57 in TclExecuteByteCode () from /usr/local/lib/libtcl8.5.so
      
      
    2. login: "afaupell"
    3. mimetype: "text/plain"
    4. username: "afaupell"
  4. Ticket change [09f5cc2d7c] (rid 113738) by andreas_kupries on 2009-08-24 06:10:31:

    1. icomment:
      From the stacktrace this might be a duplicate of 18262248 per
      
      2009-07-24  Andreas Kupries  <[email protected]>
      
              * generic/tclIO.c (Tcl_GetChannelHandle): [Bug 2826248]: Do not crash
              * generic/tclPipe.c (FileForRedirect): for getHandleProc == NULL, this
              is allowed. Provide a nice error message in the bypass area. Updated
              caller to check the bypass for a mesage. Bug reported by Andy
              Sonnenburg <[email protected]>. Backported from CVS
              head.
      
      A limitation of reflected channels, they cannot be used as redirection in command pipelines. On the other hand, it is not clear where in 'interp create' it would run [exec]. Maybe somewhere in "init.tcl" ?
      
      It might be useful to try this with the CVS head of the 8.5 branch. Note that this will not fix the limitation itself, only convert the crash into a proper Tcl error message.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [04f6293405] (rid 88960) by afaupell on 2009-08-24 10:47:44:

    1. icomment:
      i dont think its related to command pipelines, and i dont think it should be a limitation (throw an error) since everything works as expected in the 2 different versions/builds i have available.
      
      
    2. login: "afaupell"
    3. mimetype: "text/plain"
    4. username: "afaupell"
  6. Ticket change [100ebf713b] (rid 94903) by andreas_kupries on 2009-08-25 02:40:26:

    1. icomment:
      Ok. 8.5/8.6 Head, plain build - No crash, output is 'hi'.
      
      Next up, try most current AT 8.5.7, 8.6 builds made this weekend, this also the CVS heads of Tcl as of Friday afternoon.
          ActiveTcl8.5.7.0.291058-linux-ix86-threaded
          ActiveTcl8.6.0.0b1.291058-linux-ix86-threaded
      
      Ditto. No crash. Output is 'hi'.
      
      For comparison, use the 8.5.7.290198 release ...
      Seg.fault.
      
      Ok. This seems to be something which is fixed in the latest core sources, relative to April 14 (last AT 8.5.7 release).
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  7. Ticket change [93f41f1263] (rid 105895) by andreas_kupries on 2009-08-28 04:30:15:

    1. icomment:
      Was found to be ok in head. Closing as out-of-date.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [40c019e03a] (rid 116069) by andreas_kupries on 2009-08-28 04:30:18:

    1. closedate changed to: "2009-08-27T21:30:18"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"
    8. subsystem changed to: "25. Channel System"
    9. username: "andreas_kupries"