Artifacts Associated With Ticket 1960724fffffffffffffffffffffffffffffffff
Ticket change [fa646db1e4] (rid 91864) by pertronic on 2008-05-09 04:25:08:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
# winXP, TclOO 0.2 Tcl 8.5.2 The following crashes on the "internal" call to copy. The crash is sensitive to the number of object properties, e.g. if "my variable np_name" is removed from the constructor there is no crash. package require TclOO namespace import oo::* class create A { constructor {name} { my variable np_name set np_name $name } # # make a deep copy # method copy {nm} { set cpy [[info object class [self]] new $nm] foreach var [info object vars [self]] { my variable $var set val [set $var] if {[string match o_* $var]} { set objs {} foreach ref $val { # call to "copy" crashes lappend objs [$ref copy {}] } $cpy prop $var $objs } else { $cpy prop $var $val } } return $cpy } method prop {name val} { my variable $name set $name $val } } set o1 [A new {}] set o2 [A new {}] $o1 prop o_object $o2 $o1 copy aa - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pertronic"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "crash calling a method"
- type initialized to: "Bug"
Ticket change [10ebad1d56] (rid 95045) by dkf on 2008-05-10 15:17:23:
- icomment:
Logged In: YES user_id=79902 Originator: NO Code works for me with 0.3a0, but changes made so far probably shouldn't have cleared this problem.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- username: "dkf"
- icomment:
Ticket change [643199ef79] (rid 92717) by dkf on 2008-05-11 23:48:42:
- icomment:
Logged In: YES user_id=79902 Originator: NO I suspect that this is really a duplicate of artf1905797
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [b7446258b5] (rid 125556) by dkf on 2008-05-12 19:55:07:
- closedate changed to: "2008-05-12T12:55:07"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Originator: NO Can't see anything wrong with HEAD even when using valgrind; hope it's fixed! (Let me know if the real code doesn't work... :-))
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "dkf"
Ticket change [06e235999b] (rid 89285) by pertronic on 2008-05-13 03:29:12:
- closedate changed to: "2008-05-12T20:29:12"
- closer changed to: "pertronic"
- icomment:
Logged In: YES user_id=1532831 Originator: YES I have retested with a build of TclOO 0.3a0 from CVS HEAD (2008-05-12) and code now works for me also. Thanks
- login: "pertronic"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "pertronic"