Skip to content
Tcl Source Code History Of Ticket 1960724fffffffff
Login

History Of Ticket 1960724fffffffff

Artifacts Associated With Ticket 1960724fffffffff

  1. Ticket change [fa646db1e4] (rid 91864) by pertronic on 2008-05-09 04:25:08:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "pertronic"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "crash calling a method"
    12. type initialized to: "Bug"
  2. Ticket change [10ebad1d56] (rid 95045) by dkf on 2008-05-10 15:17:23:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. resolution changed to: "Works For Me"
    5. username: "dkf"
  3. Ticket change [643199ef79] (rid 92717) by dkf on 2008-05-11 23:48:42:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      I suspect that this is really a duplicate of artf1905797
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [b7446258b5] (rid 125556) by dkf on 2008-05-12 19:55:07:

    1. closedate changed to: "2008-05-12T12:55:07"
    2. closer changed to: "dkf"
    3. 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... :-))
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "dkf"
  5. Ticket change [06e235999b] (rid 89285) by pertronic on 2008-05-13 03:29:12:

    1. closedate changed to: "2008-05-12T20:29:12"
    2. closer changed to: "pertronic"
    3. 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
      
      
    4. login: "pertronic"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "pertronic"