Overview
| Artifact ID: | ade2d81547f5481026494f00fffbfa488934023e |
|---|---|
| Ticket: | 851747ffffffffffffffffffffffffffffffffff
[binary scan] object sharing/reuse problem |
| User & Date: | obermeier on 2003-11-30 22:07:01 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "obermeier"
- subsystem changed to: "37. File System"
- title changed to: "Coredump with Tcl 8.4.X (possibly binary scan)"
- type changed to: "Bug"