Skip to content
Tcl Source Code Artifact [fb16299754]
Login

Artifact [fb16299754]

Artifact fb162997546e6e99ec5fcf072dcb94a119ff7f25:

Ticket change [fb16299754] - New ticket [218676ffffffffff|218676ffff] <i>String rep freed before internal rep</i>. by nobody on 2000-10-26 01:04:01.
D 2000-10-26T01:04:01
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1710\sBug\nVersion:\s8.0.5\nSubmitDate:\s'1999-04-05'\nLastModified:\s'1999-09-20'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1999-09-20'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nName:\s\sPaul\sDuffin\nemail:\s\[email protected]\nSupport:\s\sNone\nSeverity:\s\s1\nSynopsis:\s\sString\srep\sfreed\sbefore\sinternal\srep.\n\nObservedBehavior:\n\s\s\s\sWhen\sfor\swhatever\sreason\sboth\sthe\sinternal\srepresentation\sand\sthe\sstring\n\s\s\s\srepresentation\sof\san\sobject\sare\sfreed,\se.g.\sinside\sTcl_SetStringObj,\sor\n\s\s\s\sTcl_SetListObj,\sor\swhen\san\sobject\sitself\sis\sfreed,\sthe\sstring\srep\sis\n\s\s\s\sbeing\sfreed\n\s\s\s\sbefore\sthe\sinternal\srep.\sThis\sbreaks\smy\scode\sbecause\sI\stry\sand\saccess\n\s\s\s\sthe\sstring\n\s\s\s\srepresentation\sin\sthe\sfreeIntRepProc.\n\s\s\s\s\n\s\s\s\sThe\score\sis\sinconsistent,\ssometimes\sit\sfrees\sthe\sstring\srep\sfirst,\sother\n\s\s\s\stimes\s\n\s\s\s\sit\sfrees\sit\slast,\sand\sthe\sbehaviour\shas\schanged\sfrom\s8.0.4\sto\s8.1b2,\n\s\s\s\salthough\sit\n\s\s\s\saffects\sall\s8.*\sreleases.\n\s\s\s\s\n\nDesiredBehavior:\n\s\s\s\sI\sexpect\sthe\sstring\srepresentation\sto\sbe\sfreed\safter\sthe\sinternal\n\s\s\s\srepresentation\n\s\s\s\sso\sthat\sI\scan\suse\sit\sin\smy\sfreeIntRepProc.\sThis\saffects\sall\s8.*\sreleases\n\s\s\s\sso\s\n\s\s\s\sshould\sbe\sfixed\sin\sTcl8.1b2\sand\sTcl8.0.5.\n\n\nThis\sis\snot\sdocumented\sbehavior,\sbut\sit's\san\seasy\sfix\sso\swe\smight\sas\swell\smake\sit.\s\sI\scan't\ssee\sany\sreason\swhy\sthe\sinternal\srep\sshould\snot\sbe\sfreed\sbefore\sthe\sstring\srep\sin\sall\scases,\sso\swe\smay\swant\sto\sdocument\sthis\sas\sthe\sexpected\ssequence,\sand\spossibly\sadd\sa\snew\sinterface\sto\sencapsulate\sthis.\s\s\n04/27/1999\s10:00\s-\sstanton\s-\nThis\sfix\shas\sbeen\sapplied\ssometime\sbefore\s8.2.0\s(internal\sfree\srep\nproc\sis\scalled\sbefore\sInvalidateStringRep).\s\n--\s09/20/1999\shobbs\n\n
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title String\srep\sfreed\sbefore\sinternal\srep
J type RFE
K 218676ffffffffffffffffffffffffffffffffff
U nobody
Z 26c9b26262046ba6159d59651a9e2352