Skip to content
Tcl Source Code Artifact [47b919e0ed]
Login

Artifact [47b919e0ed]

Artifact 47b919e0edfa4da60ca9eb61be690c15ca7ca4f1:

Ticket change [47b919e0ed] - New ticket [218014ffffffffff|218014ffff] <i>closed standard channels cause core dump</i>. by nobody on 2000-10-26 00:52:11.
D 2000-10-26T00:52:11
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s922\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1998-12-04'\nLastModified:\s'1999-02-02'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\swelch\nChangedBy:\sstanton\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\s8.0.5\nClosedDate:\s'1999-02-02'\n\n\nSome\stime\saround\sApril\sI\shad\slet\syou\sknow\sthat\swe\swere\sexperiencing\sa\score\ndump\swith\sTCL8.0P2\swhen\sany\sof\sthe\sstandard\sI/O\sstreams\swere\snot\sopen\sat\nstartup.\sAt\sthat\stime\sI\swas\sable\sto\sreproduce\sit\son\sboth\sHP-UX\sand\sLinux.\nI\shave\sretested\sfor\sthe\sproblem\swith\sTCL8.0.4\sand,\swhile\sit\sis\sno\slonger\noccurring\son\sLinux,\sit\sis\sstill\soccurring\son\sHP-UX.\sThis,\sperhaps,\smeans\nthat\sa\sfix\swas\smade,\sbut\snot\sin\sa\sgeneral\senough\splace.\n\nI\slooked\sinto\sthe\sTCL\ssource\sthis\smorning,\sand\swas\sable\sto\sfind\sthe\nproblem\sand\scode\san\seasy\sresolution\sto\sit.\s"tclGetDefaultStdChannel",\sin\n"tclUnixChan.c",\scalls\s"Tcl_MakeFileChannel"\swhich\sis\sreturning\s"NULL".\sIt\nthen,\swithout\schecking\sfor\s"NULL",\scalls\s"Tcl_SetChannelOption"\stwice,\sthe\nfirst\stime\sto\sset\s"translation",\sand\sthe\ssecond\stime\sto\sset\s"buffering".\nIt\sis\sthis\slatter\scall,\si.e.\sthe\sone\swhich\ssets\s"buffering",\swhich\ncrashes.\sFor\ssome\sreason\s(which\sI\shave\syet\sto\sdetermine),\sthe\searlier\n"lseek",\swhich\sis\ssupposed\sto\sprotect\sagainst\sthis\spossibility,\sis\nreturning\s0\srather\sthan\s-1.\n\nThe\sfollowing\spatch,\swhich\syou\sare\sentirely\swelcome\sto\splagerize,\sfixes\nthe\sproblem.\sWe\swould\sappreciate\sit\svery\smuch\sif\ssome\sincantation\sof\sit\nwould\seventually\smake\sit\sinto\sthe\sproduction\sstream.\n\nPatch\son\sthe\sweb\sdatabase.\n\n02/02/1999\s10:59\s-\sstanton\s-\sA\ssimilar\spatch\swas\sapplied\sat\ssome\spoint\sin\s8.0.5.\s\sThis\sis\sno\slonger\sa\sbug.\n\n
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 62.\s(unused)
J title closed\sstandard\schannels\scause\score\sdump
J type Bug
K 218014ffffffffffffffffffffffffffffffffff
U nobody
Z 94590390d15353493012d569129d4543