Skip to content
Tcl Source Code Artifact [ebed174ca5]
Login

Artifact [ebed174ca5]

Artifact ebed174ca5e536d16a39d49022204e82109898bd:

Ticket change [ebed174ca5] - New ticket [772288ffffffffff|772288ffff] <i>Crash when std channels not open</i>. by dkf on 2003-07-16 13:18:15.
D 2003-07-16T13:18:15
J assignee andreas_kupries
J cmimetype text/plain
J comment The\sfollowing\sscript\scrashes\sboth\sthe\sHEAD\sand\sthe\s8.4\nbranch:\n\s\sopen\s/dev/null\nwhen\srun\slike\sthis\s(from\sBASH,\sbut\sthere\sare\sother\nequivalent\ssituations):\n\s\stclsh\sbug.tcl\s<&-\n\nThe\seffect\sof\sthe\sinvokation\sis\sto\smake\stclsh\srun\nwithout\sstdin\sopened\s(the\ssame\salso\shappens\swith\sstdout\nand\sstderr.)\s\sThis\sis\scaused\sby\sleaving\sthe\ninitialisation\sof\sthe\schannel\stable\suntil\sthe\scall\sto\nTcl_RegisterChannel()\sas\spart\sof\sthe\sclosing\sstages\sof\nthe\s[open]\simplementation,\swhich\sensures\sthat\sfd0\s(or\s1\nor\s2)\sis\sput\sin\sthe\stable\stwice,\sonce\sfor\sstdin/out/err\nand\sonce\sfor\sthe\snewly\screated\schannel\sfor\s[open],\swith\nthe\ssecond\stime\sbeing\sthe\scrash.\n\nThe\sattached\spatch\sfixes\sthis,\sbut\scauses\stest\nencoding-24.3\sto\sfail,\sand\swill\sbreak\sany\sscript\sthat\ndepends\son\ssetting\s[encoding\ssystem]\searly\sso\sas\sto\nalter\sthe\sencodings\sof\sthe\sstd\schannels.\n\nThis\sproblem\swas\sdiscovered\sby\srmax
J foundin obsolete:\s8.4.3
J priority 9\sImmediate
J resolution None
J status Open
J submitter dkf
J subsystem 25.\sChannel\sSystem
J title Crash\swhen\sstd\schannels\snot\sopen
J type Bug
K 772288ffffffffffffffffffffffffffffffffff
U dkf
Z 07fc246268498cca2f8d6db91bb12862