Artifacts Associated With Ticket 3185009fffffffff
Ticket change [586544ada1] (rid 117796) by danckaert on 2011-02-17 16:52:44:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
There is a problem when configuring object variables using objdefine->variable, and unsetting such a variable: oo::object create p oo::objdefine p variable x oo::objdefine p method set {v} {set x $v} oo::objdefine p method unset {} {unset x} oo::objdefine p method exists {} {info exists x} oo::objdefine p method get {} {return $x} p exists ; # returns 0 (ok) p set 7 p exists ; # returns 1 (ok) p get ; # returns 7 (ok) p unset p exists ; # returns 1 (wrong) p get ; # Segmentation fault The above is when running interactively. In non-interactive mode, it already aborts on the second "info exists", with: malformed bucket chain in Tcl_DeleteHashEntry Abort - foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "danckaert"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "TclOO variable unset problem"
- type initialized to: "Bug"
Ticket change [847f617689] (rid 117559) by dkf on 2011-02-18 06:00:30:
- icomment:
Reproduced. It seems to be something to do with the unset and cleaning up a stack frame. Maybe also with the variable resolver. :-(
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dkf"
- icomment:
Ticket change [a2eef80c1e] (rid 109975) by dkf on 2011-03-05 08:32:29:
- icomment:
Fixed on HEAD. Needed to maintain a reference to a namespace variable from the TclOO resolver record, and not just a pointer. Keeping open for port to TclOO-as-package.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [fa014911a9] (rid 91796) by dkf on 2011-03-11 18:48:36:
- icomment:
Fixed in TclOO, but not yet pushed to a public fossil repo. (Need one set up on core.tcl.tk...)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [304b61db0b] (rid 93221) by dkf on 2011-09-22 17:48:51:
- closedate changed to: "2011-09-22T10:48:51"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Confirming that all the fixes are where they need to be; just forgot to close this issue.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"