Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 09f5cc2d7cd62d8ee072477a6bbe0c689531b228
Ticket: 2843166fffffffffffffffffffffffffffffffff
replacing stdin with refchan causes segfault in interp
User & Date: andreas_kupries on 2009-08-24 06:10:31
Changes

  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"