Skip to content
Tcl Source Code Artifact [305daba531]
Login

Artifact [305daba531]

Artifact 305daba53114c83012a16b57db1d95e565066889:

Ticket change [305daba531] - New ticket [427196ffffffffff|427196ffff] <i>fconfigure -buffer in midread =&gt;segfault</i>. by dgp on 2001-05-25 06:32:50.
D 2001-05-25T06:32:50
J assignee nobody
J cmimetype text/plain
J comment \sThe\sdemo\sscript\sreads\spart\sof\sa\sfile,\sthen\schanges\nthe\sbuffer\ssize,\sthen\stries\sto\sread\sthe\srest\sof\sthe\nfile.\s\sThen,\seither\sa\ssegfault\sor\sa\sPOSIX\serror.\n\nTo\sdiagnose\sthe\smemory\sproblem,\sevaluate\sthe\sdemo\nscript\sin\sa\stclsh\sbuilt\swith\sTCL_MEM_DEBUG:\n\n$\s./tclsh\sbuffer.tcl\s\nhi\sguard\sbyte\s0\sis\s0x65\s\s\s\s\s\s\s\s\se\nhi\sguard\sbyte\s2\sis\s0x64\s\s\s\s\s\s\s\s\sd\nhi\sguard\sbyte\s3\sis\s0x20\s\s\s\s\s\s\s\s\s\s\nhi\sguard\sbyte\s4\sis\s0x24\s\s\s\s\s\s\s\s\s$\nhi\sguard\sbyte\s5\sis\s0x63\s\s\s\s\s\s\s\s\sc\ntotal\smallocs\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s1402\ntotal\sfrees\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s791\ncurrent\spackets\sallocated\s\s\s\s\s\s\s\s611\ncurrent\sbytes\sallocated\s\s\s\s\s\s\s\s49654\nmaximum\spackets\sallocated\s\s\s\s\s\s\s\s759\nmaximum\sbytes\sallocated\s\s\s\s\s\s\s\s87378\nhigh\sguard\sfailed\sat\s80d9008,\s./../generic/tclIO.c\s4913\n58\sbytes\sallocated\sat\s(./../generic/tclIO.c\s1659)\nMemory\svalidation\sfailure\nAborted\s(core\sdumped)\n\nApparently\sthis\sproblem\sfirst\sappeared\sin\sTcl\s8.1.
J foundin obsolete:\s8.4a3
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 25.\sChannel\sSystem
J title fconfigure\s-buffer\sin\smidread\s=>segfault
J type Bug
K 427196ffffffffffffffffffffffffffffffffff
U dgp
Z 20b5d7d709dfff24cf373592a6015274