Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 60ad429c9d2e5180cb388b261937202d4aae212a
Ticket: 1904907fffffffffffffffffffffffffffffffff
Fix [chan create]/return dict key finalization order issues
User & Date: schwarzkopf on 2008-02-29 19:16:37
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    % parray tcl_platform
    tcl_platform(byteOrder)   = littleEndian
    tcl_platform(machine)     = x86_64
    tcl_platform(os)          = Linux
    tcl_platform(osVersion)   = 2.6.22-14-generic
    tcl_platform(platform)    = unix
    tcl_platform(pointerSize) = 8
    tcl_platform(threaded)    = 1
    tcl_platform(user)        = bschwarz
    tcl_platform(wordSize)    = 8
    
    I have a file with this in it, and it produces a segfault:
    
      et fid [chan create {r w} ::vchan]
    
      chan puts $fid "HELLO THERE"
      set data [read $fid]
    
    If I add the following at the end, it does not segfault (note that I need a catch, because there is another problem when I [chan close]):
    
      catch {chan close $fid}
      
    I don't see the problem on "normal" channels (i.e. opening a file on the filesystem with [open])
    
  4. foundin changed to: "obsolete: 8.5.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "schwarzkopf"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to:
    get segfault when using a channel created with [chan create]
    
  12. type changed to: "Bug"