Overview
| Artifact ID: | 305daba53114c83012a16b57db1d95e565066889 |
|---|---|
| Ticket: | 427196ffffffffffffffffffffffffffffffffff
fconfigure -buffer in midread =>segfault |
| User & Date: | dgp on 2001-05-25 06:32:50 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.4a3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "25. Channel System"
- title changed to: "fconfigure -buffer in midread =>segfault"
- type changed to: "Bug"