Skip to content
Tcl Source Code Artifact [4965e7034f]
Login

Artifact [4965e7034f]

Artifact 4965e7034f7b720cd3f41089eb6214ab3212f81300b4f64d28f49fcc2e4ea10e:

Ticket change [4965e7034f] - Pending ticket [135804138e33ff05|135804138e]: <i>TclOO segmentation fault: direct call to a method called by the object destructor, and that deletes the object via [rename] before calling [next]</i> plus 4 other changes by sebres on 2019-11-14 17:22:34.
D 2019-11-14T17:22:34.466
J icomment Fixed\snow\sin\sbranch\s[/timeline?r=bug-135804138e|bug-135804138e]...\r\n\r\nI\shad\s2\svariants\sto\ssolve\sthat.\r\n\r\nIn\sthe\s1st\svariant\sthe\sresult\sof\stest-case\soo-7.10\swould\sbe\ssomething\slike:\r\n<code><pre\sstyle="padding-left:10pt">\r\n<b\sstyle="color:red">-\sdelete\sc2::destructor\sdelete\sno-self\sc1::m1\sunreachable\s/c2::destructor\sno-self\s1\s{no\snext\smethod\simplementation}</b>\r\n<b\sstyle="color:green">+\sdelete\sc2::destructor\sdelete\sno-self\sc1::m1\sunreachable\s/c2::destructor\sno-self\sc1::m1\sunreachable\s0\s{}</b>\r\n</pre></code>\r\nSo\sthe\s"next"\shad\ssuccessfully\scalled\s"c1::m1"\ssecond\stime,\sso\sit\shad\sassumed\sthat\sonly\scontext\sof\sobject\sis\sdeleted\s(not\sa\sclass\sin\sthe\scall\schain)\sand\sall\saccess\sto\smy/self\setc\swould\sbe\sprohibited\sanyway,\sbut\sjust\sbecause\s"c1::m1"\sbehaves\slike\sa\sproc\s(without\sobject\scontext\saccess)\sit\swere\spossible\swithout\sany\sissue\sto\scall\sit\ssecond\stime.\r\n\r\nThe\sinterim\sdecision\swas\sanother\svariant\s(as\sit\sis\scurrently\simplemented\sin\sbranch\s[/timeline?r=bug-135804138e|bug-135804138e])\sis\scalling\sof\s"next"\sis\simpossible\safter\sobject\sdeletion\s-\sso\sit\sthrows\san\serror\sthere.
J login sebres
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Pending
K 135804138e33ff05b89f06101008113c86156322
U sebres
Z 6574920e96b41b837991c95033607086