.
D 2010-11-07T05:34:29
J assignee mistachkin
J cmimetype text/plain
J comment I\sreally\sdon't\sknow\swhat\sto\smake\sof\sthis\sone.\s\sI'll\sjust\sgive\syou\sthe\sfacts\sand\slet\syou\sdecide\swhat\sthe\sheck\sis\sgoing\son.\s:^)\n\nEarlier\stoday\sI\supdated\sto\sthe\slatest\sCVS\sHEAD\s(ChangeLog\srevision\s1.5291),\scompiled,\sand\sinstalled.\s\sI\sconfirmed\sthat\sthe\sinfinite\sloop\son\s[append]ing\sto\sempty\sstring\sis\sfixed.\s\sBut\sI\sthen\sspotted\sa\snew\sproblem\swhile\sworking\son\sWibble.\s\sWhen\sthe\sclient\scloses\sits\sconnection,\sthis\striggers\sthe\s"finally"\scode\sat\sthe\send\sof\s[process].\s\sOn\sthe\s"catch\s{chan\sclose\s$socket}"\sline,\sI\sget\sa\sbgerror\spopup\sbox\ssaying:\s"Error:\scommand\sreturned\sbad\scode:\s2".\s\sThis\sdidn't\shappen\sbefore\sI\sdid\sthe\sCVS\supdate.\s\sI\sshould\smention\sthat\sI\s[source]d\swibble.tcl\sinto\stkcon;\salso,\sI\shave\snot\schanged\sversions\sof\stkcon.\s\sI\sused\sgdb\sto\sconfirm\sthat\sthis\serror\sis\sbeing\sgenerated\sby\sTclDefaultBgErrorHandlerObjCmd()\sin\stclEvent.c.\n\nI\sreplaced\sthe\s"finally"\scode\swith:\n\n\s\s\s\s\s\s\s\sputs\sa\n\s\s\s\s\s\s\s\sif\s{[llength\s[chan\snames\s$socket]]}\s{\n\s\s\s\s\s\s\s\s\s\s\s\sputs\sb\n\s\s\s\s\s\s\s\s\s\s\s\schan\sclose\s$socket\n\s\s\s\s\s\s\s\s\s\s\s\sputs\sc\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sputs\sd\n\nThis\scaused\s"a"\sand\s"d"\sto\sbe\sprinted,\sand\sthe\serror\sdetails\sare:\n\ncommand\sreturned\sbad\scode:\s2\ncouldn't\sopen\s"c:/msys/local/lib/tclIndex":\sno\ssuch\sfile\sor\sdirectory\n\s\s\s\swhile\sexecuting\n"open\s[file\sjoin\s$dir\stclIndex]"\n\nwhich\sis\scompletely\smystifying.\s\sThis\scode\sappears\sin\sneither\sWibble\snor\stkcon.\s\sIt's\sin\s[auto_load_index]\sin\slibrary/init.tcl,\s*inside*\sa\s[catch]\sblock!\n\nChanging\sthe\s"finally"\scode\sto:\n\nputs\sa\ncatch\s{chan\sclose\s$socket}\nputs\sb\n\ncauses\s"a",\s"b",\sand\s"d"\sto\sbe\sprinted,\sand\sI\sget\sthis\serror\sdetail:\n\ncommand\sreturned\sbad\scode:\s2\ncan\snot\sfind\schannel\snamed\s"sock252"\n\s\s\s\swhile\sexecuting\n"chan\sclose\s$socket"\n\nWhat\sis\sthat\scatch\sdoing,\sanyway?
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter andygoth
J subsystem 04.\sAsync\sEvents
J title "command\sreturned\sbad\scode:\s2"\sin\sbgerror
J type Bug
K 3104471fffffffffffffffffffffffffffffffff
U andygoth
Z 4d468ff9dbf2fd487ce25d16b518795d