.
D 2000-10-26T01:03:15
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1486\sBug\nVersion:\s8.0.5\nSubmitDate:\s'1999-03-11'\nLastModified:\s'1999-04-09'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\ssurles\nOS:\sLinux-Red\sHat\nOSVersion:\s5.1\nMachine:\sOther\nFixedDate:\s'1999-04-09'\nFixedInVersion:\s8.1b3\nClosedDate:\s'2000-10-25'\n\n\nName:\nBart\sVeer\n\nExtensions:\nNone\n\nCustomShell:\nNone.\n\nReproducibleScript:\n\s\s\s\sThe\sman\spage\sfor\sTcl_DeleteAssocData()\sstates:\n\s\s\s\s\n\s\s\s\s"Tcl_DeleteAssocData\sdeletes\san\sassociation\swith\sa\sspecified\skey\sin\n\s\s\s\sthe\sgiven\sinterpreter.\s\sIt\sdoes\snot\scall\sthe\sdeletion\sprocedure."\n\s\s\s\s\n\s\s\s\sThe\simplementation\sin\sgeneric/tclBasic.c\scontains:\n\s\s\s\s\n\s\s\s\s\s\s\s\sdPtr\s=\s(AssocData\s*)\sTcl_GetHashValue(hPtr);\n\s\s\s\s\s\s\s\sif\s(dPtr->proc\s!=\sNULL)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s(dPtr->proc)\s(dPtr->clientData,\sinterp);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\n\s\s\s\s\n\n\n\nObservedBehavior:\n\s\s\s\sApplication\scode\sthat\sinvoked\sTcl_DeleteAssocData()\salso\sdeleted\sthe\n\s\s\s\sclientdata,\sas\sper\sthe\sdocumentation.\sThis\sresulted\sin\sa\sdouble-free\n\s\s\s\sattempt\sand\sheap\scorruption.\n\s\s\s\s\n\n\n\nDesiredBehavior:\n\s\s\s\sTcl_DeleteAssocData()\sprobably\sshould\sdelete\sthe\sclientdata,\sfor\n\s\s\s\sconsistency\swith\se.g.\sTcl_DeleteCommand().\sTherefore\sthe\scode\sis\n\s\s\s\scorrect,\sbut\sthe\srelevant\sline\sfrom\sthe\sdocumentation\sneeds\sto\sbe\n\s\s\s\sremoved.\sObviously\sthis\sapproach\shas\sthe\sadvantage\sof\snot\schanging\sthe\n\s\s\s\sbehaviour\sof\sany\sexisting\scode.\n\s\s\s\s\n\n\n\n\n\n\s\s\s\sThis\sproblem\sis\salso\spresent\sin\sTcl8.1b1\n---\n04/09/1999\s13:32\s-\ssurles\s-\sChanged\sthe\sman\spage\sto\ssay\sit\sDOES\scall\sthe\sdeletion\sproc.\n\n
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 46.\sTraces
J title Doc/implementation\smismatch\sfor\sAssocData
J type Bug
K 218621ffffffffffffffffffffffffffffffffff
U nobody
Z 0d52dc71362973d7eb23a93fcbe43cc8