Skip to content
Tcl Source Code Artifact [84b7ee018d]
Login

Artifact [84b7ee018d]

Artifact 84b7ee018d33b94f01f0ac1160f1ea5419d36ffd:

Ticket change [84b7ee018d] - New ticket [1331475fffffffff|1331475fff] <i>[dict append] causes Tcl to crash</i>. by aric_b on 2005-10-19 11:32:47.
D 2005-10-19T11:32:47
J assignee dkf
J cmimetype text/plain
J comment [dict\sappend],\scalled\sas\spart\sof\sa\sparticular\ssequence,\ncauses\sTcl\sto\scrash.\s\sThe\sfollowing\scode\sconsistently\nproduces\sthe\serror\sfor\sme\sin\sActiveState\stclsh\s8.5a4\son\nWindows\sXP\sSP2:\n\n\s\s\s\sproc\sproblem\s{list_of_lists}\s{\n\n\s\s\s\s\s\s\s\sset\sone\s1\n\s\s\s\s\s\s\s\sset\stwo\s2\n\n\s\s\s\s\s\s\s\sforeach\slist\s$list_of_lists\s{\n\s\s\s\s\s\s\s\s\s\s\s\sif\s{[llength\s$list]\s>\s1}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sdict\sappend\sa\sb\sc\n\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s}\n\s\s\s\s}\n\n\s\s\s\sset\slist_of_lists\s[list\s[list\sa\sb]]\n\n\s\s\s\sproblem\s$list_of_lists\n\nI\snoticed\sthe\sfollowing:\n\n*\sThe\serror\soccurs\swhether\sor\snot\sthe\sdictionary\sand/or\nkey\sin\squestion\sexist\sbefore\sthe\scall\sto\s[dict\sappend].\n\n*\sAll\sof\sthe\scode\sin\sthe\sproc\sseems\sto\sbe\snecessary\sto\nproduce\sthe\serror;\sfor\sexample,\sif\seither\s[set\sone\s1]\nor\s[set\stwo\s2]\sis\sabsent,\sthe\serror\sdoesn't\soccur.\n\n*\sThe\serror\sdoesn't\sseem\sto\soccur\sif\sthere's\sa\scommand\non\sthe\sline\simmediately\sbelow\sthe\scall\sto\s[dict\nappend],\sfor\sexample:\n\n\s\s\s\s\s\s\s\s...\n\s\s\s\s\s\s\s\s\s\s\s\sif\s{[llength\s$list]\s>\s1}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sdict\sappend\sa\sb\sc\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sexpr\s5\n\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s...\n
J foundin obsolete:\s8.5a4
J priority 5\sMedium
J resolution None
J status Open
J submitter aric_b
J subsystem 15.\sDict\sObject
J title [dict\sappend]\scauses\sTcl\sto\scrash
J type Bug
K 1331475fffffffffffffffffffffffffffffffff
U aric_b
Z fd6475b721fd9d9389f64f5f4d700b2c