<i>Tcl crashes after "emptying" a list object with Tcl_SetListO</i>.
by
.
D 2000-10-26T00:46:01
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3322\sBug\nVersion:\s8.2.1\nSubmitDate:\s'1999-11-05'\nLastModified:\s'1999-11-08'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s3323\nOS:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-11-08'\n\n\nName:\nGeorge\sPetasis\n\nObservedBehavior:\nThis\scode\scause\san\sillegal\sinstruction\son\sboth\swindows\s98\sSE\sand\sNT\s4.0\sSP5\nwhere\sit\swas\stested.\sIf\sthe\sapplication\sis\sbuilt\sas\sa\sconsole\sapplication,\sfrom\nthe\sprintf\sstatement\swe\sget\sthat\sit\scrashes\sat\sj=2.\sIt\sseems\sthat\sTcl_SetListObj\ncannot\shandle\sproperly\slist\sobjects,\ssome\selements\sof\swhich\sare\sshared.\nThis\sproblem\sis\snot\sreproducable\sunder\sunix\sthough,\swhich\sis\squite\sstrange.\nBut\sit\smight\sbe\srelated\swith\sthe\sother\sbug\sreport\sthat\sI\shave\ssubmitted\swith\stitle\n"[Bug\sTcl\s8.2.1]\sPossible\sBug\sin\sinternal\smemory\smanagement\sof\sthe\sTcl_Obj\s*\sstructure".\n(also\sthere\swas\sa\ssmall\smistake\sin\sthat\sreport.\sIn\sorder\sfor\sthe\sbug\sto\shappen,\s\none\smust\suse\sthe\sfollowing\sscript:\n\nfor\s{set\si\s0}\s{$i\s<\s10}\s{incr\si}\s{\n\s\s\sforeach\scmd\s[info\scommands]\s{\n\s\s\s\s\slappend\slist\s$cmd\n\s\s}\n}\nBug\s$list\n)\n\n\n\n
J foundin obsolete:\s8.2.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Tcl\scrashes\safter\s"emptying"\sa\slist\sobject\swith\sTcl_SetListO
J type Bug
K 217922ffffffffffffffffffffffffffffffffff
U nobody
Z b3140fa64175eb2af13115683c8907d5