Skip to content
Tcl Source Code Artifact [e7b642b5ac]
Login

Artifact [e7b642b5ac]

Artifact e7b642b5ac337ac90f4ff29e9fa5fb49b3c65279:

Ticket change [e7b642b5ac] - New ticket [218079ffffffffff|218079ffff] <i>Return value set by Tcl_SetResult affects all following proc</i>. by nobody on 2000-10-26 00:52:56.
D 2000-10-26T00:52:56
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1660\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1999-03-29'\nLastModified:\s'1999-09-13'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s6.5\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-09-13'\n\n\nName:\nJim\sA.\sGalbraith\n\nReproducibleScript:\n\s\s\s\sI\shave\swritten\sa\s'C'\sprocedure\sthat\scalls\sTcl_SetResult():\n\s\s\s\s\n\s\s\s\sTcl_SetResult(interp,\s"0",\sTCL_VOLATILE);\n\s\s\s\s\n\n\n\nObservedBehavior:\n\s\s\s\sAfter\scalling\sthis\sprocedure,\sall\sprocedure\scalls\sappear\sto\shave\smy\s0\n\s\s\s\sprepended\n\s\s\s\sto\sthe\sreal\sreturn\sstring.\s\sFor\sexample,\sif\sI\scall\sopen\safter\scalling\smy\n\s\s\s\sprocedure,\sthe\sfile\shandle\s=\s"0file4"\s(no\sspace\sbetween\s0\s&\sfile4.\s\sIf\sI\n\s\s\s\scall\sexec,\sthe\sPID\sreturned\s=\s"0\s1234"\s(space\sbetween\sthe\s0\sand\s1234).\n\s\s\s\s\n\n\n\nDesiredBehavior:\n\s\s\s\sI\sread\sthat\sthe\sreturn\sstring\sis\ssupposed\sto\sbe\sreset\sprior\sto\scalling\n\s\s\s\seach\sprocedure.\s\sIt\sappears\sthat\sthis\sis\snot\shappening.\n\s\s\s\s\n\n\n\n\nThis\slooks\slikely\sto\sbe\sa\sprogramming\serror\s(very\slikely\swith\sthe\nmentioned\suse\sof\sthe\sfunc).\s\sWe\swould\sneed\sto\ssee\smore\scode\sto\nclassify\sthis\sas\sanything\selse.\s\n--\s09/13/1999\shobbs
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Return\svalue\sset\sby\sTcl_SetResult\saffects\sall\sfollowing\sproc
J type Bug
K 218079ffffffffffffffffffffffffffffffffff
U nobody
Z 153abd3c92cce84c5135db2c6ef3d3f9