Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 54653d077df9dc790c9fc2c4f995f90e49c71a1b
Ticket: 524674ffffffffffffffffffffffffffffffffff
bad cleanup of channels / encs on exit
User & Date: hobbs on 2002-03-02 04:30:42
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If you set the encoding on a file to an escape 
    encoding and then exit before closing that file, Tcl 
    doesn't clean up in the right order, and you crash due 
    to free memory reads/writes.  A simple example:
    
    lorax [~/build/tcl84a4s] 25 > make shell
    % fconfigure stdout -encoding iso2022-jp
    % puts ab\u4e4e\u68d9g
    ab8CD%g
    % exit
    make: *** [shell] Error 139
    
    but it can be done with any file.  The sample attached 
    can be used for a more "robust" test:
    
    set f [open iso.sample]
    fconfigure $f -encoding iso2022-jp
    gets $f
    exit
    
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "hobbs"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "bad cleanup of channels / encs on exit"
  11. type changed to: "Bug"