Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 305daba53114c83012a16b57db1d95e565066889
Ticket: 427196ffffffffffffffffffffffffffffffffff
fconfigure -buffer in midread =>segfault
User & Date: dgp on 2001-05-25 06:32:50
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
     The demo script reads part of a file, then changes
    the buffer size, then tries to read the rest of the
    file.  Then, either a segfault or a POSIX error.
    
    To diagnose the memory problem, evaluate the demo
    script in a tclsh built with TCL_MEM_DEBUG:
    
    $ ./tclsh buffer.tcl 
    hi guard byte 0 is 0x65         e
    hi guard byte 2 is 0x64         d
    hi guard byte 3 is 0x20          
    hi guard byte 4 is 0x24         $
    hi guard byte 5 is 0x63         c
    total mallocs                   1402
    total frees                      791
    current packets allocated        611
    current bytes allocated        49654
    maximum packets allocated        759
    maximum bytes allocated        87378
    high guard failed at 80d9008, ./../generic/tclIO.c 4913
    58 bytes allocated at (./../generic/tclIO.c 1659)
    Memory validation failure
    Aborted (core dumped)
    
    Apparently this problem first appeared in Tcl 8.1.
    
  4. foundin changed to: "obsolete: 8.4a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "fconfigure -buffer in midread =>segfault"
  11. type changed to: "Bug"