Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ade2d81547f5481026494f00fffbfa488934023e
Ticket: 851747ffffffffffffffffffffffffffffffffff
[binary scan] object sharing/reuse problem
User & Date: obermeier on 2003-11-30 22:07:01
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    While working with the fileType function of TclLib, I 
    encountered core dumps on both Linux and Windows 
    with different versions of Tcl 8.4 (8.4.2, 8.4.4, 8.4.5).
    
    The same code works with Tcl 8.3 on both platforms.
    
    I succeeded to strip down the problem to the attached 
    code.
    This code applied to the four (identical) image files 
    supplied in the attachment, dumps core.
    You can avoid dumping core by
    1. replacing the binary scan command as noted in the 
    code or
    2. by commenting out the line "set s [file size $filename]"
    
    I noticed, that if I copy the files from the FAT32 
    partition to a NTFS partition, it does not dump core, but 
    still prints out different offset values, although the files 
    are identical.
    
    Core dumps also occur on Mac OS X with Tcl 8.4, but 
    not with Tcl 8.3.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "obermeier"
  9. subsystem changed to: "37. File System"
  10. title changed to: "Coredump with Tcl 8.4.X (possibly binary scan)"
  11. type changed to: "Bug"