Skip to content
Tcl Source Code Artifact [21663c3814]
Login

Artifact [21663c3814]

Artifact 21663c3814c54568cc3384f9538524565f040d2a:

Ticket change [21663c3814] - Ticket [494348ffffffffff|494348ffff] <i>foreach crashes in recursion</i> status still Open with 4 other changes by dkf on 2001-12-19 23:04:26.
D 2001-12-19T23:04:26
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nI'd\sstill\slove\sto\ssee\sa\sway\sto\sreproduce\sthis\sin\sa\sstandard\sshell\s(I\s*can't*\scause\sit\sto\scrash\swith\sthe\sabove\scode,\seven\sif\sI\s\nforce\sit\sto\suse\sthe\scode\sin\stclCmdAH.c\sinstead\sof\sthe\sbytecodes)\sif\sfor\sno\sother\sreason\sthan\sto\sform\sthe\sbasis\sof\sa\stest\sso\s\nwe\scan\smake\ssure\sthat\sthis\sfault\scan't\srecur.\s\sStill,\sa\sminimal\sattempt\sat\sfixing\sit\swould\sinvolve\sdoing\sTcl_IncrRefCount()\son\s\nall\sthe\sarguments\sto\sforeach\sbefore\sthe\siteration,\sand\sTcl_DecrRefCount()\son\sthem\sall\sprior\sto\sexit\sfrom\sthe\sfunction.\s\sThe\s\nprimary\salternative\sis\sa\sheavyweight\scopy,\sand\sthat\swould\smake\sthe\sperformance\ssuck\sfor\swhat\sis,\syou\smust\sadmit,\sa\svery\s\nrare\sfault\s(if\sit\swas\scommon,\sI'd\sbe\sable\sto\sdup\sit\swithout\sproblems...\s\s:^)\n\nKey\squestions\sfor\syou,\sYevgen:\n\s1)\sDoes\sthe\sabove\scode\scause\sa\sfailure\sfor\syou\sin\sTcl\s8.3.4\swithout\sany\sextensions?\s(It\smight\shave\sbeen\sdue\sto\sa\sbug\sfixed\s\nbetween\s8.3.0\sand\s8.3.4,\sif\smy\sunderstanding\sof\swhat\syou're\susing\sis\scorrect.)\n\s2)\sDoes\sthe\sabove\scode\scause\sa\sfailure\sfor\syou\sin\sTcl\s8.4a4\s(CVS)\swithout\sany\sextensions?\s(This\sis\soptional,\sbut\shelpful\s\nsince\sthis\sis\sthe\sversion\sI've\snormally\sgot\sbuilt\swith\sdebugging.\s:^)\n\s3)\sThe\sshell\syou\sare\susing;\sdoes\sit\sinclude\sany\sextensions\sat\sall?\n\s4)\sCan\syou\stry\sit\sout\swith\sPurify?\s(Purify\sis\swonderful,\sor\smaybe\seven\sbetter\sthan\sthat,\sbut\smy\sdepartment\slet\sour\slicense\s\nexpire.\s\sSilly\speople!)\n\s5)\sBear\sin\smind\sthat\swhen\syou've\sgot\smemory\scorruption\sor\soverzealous\sreleasing\sof\sobject\sreferences,\sthe\sway\sit\scan\s\nshow\sup\sin\sa\srunning\sTcl\sprogram\scan\sbe\s*extremely*\sodd.\s\s(I\sshould\sknow...\s:^)\n
J login dkf
J mimetype text/plain
J username dkf
K 494348ffffffffffffffffffffffffffffffffff
U dkf
Z 2366fb998434a262eee115d58d08db77