Skip to content
Tcl Source Code History Of Ticket 3c32a3f8bd054837
Login

History Of Ticket 3c32a3f8bd054837

Artifacts Associated With Ticket 3c32a3f8bd054837

  1. Ticket change [37b03fcd24] (rid 157631) by pooryorick on 2017-11-01 20:48:42:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The following script causes a segmentation fault
      
      <code><verbatim>
      proc dying {_ args} {
      	puts [list $_ is dying]
      }
      
      oo::define oo::class {export createWithNamespace}
      oo::class createWithNamespace obj1 obj1
      ::oo::define obj1 {self mixin [self]}
      
      ::oo::copy obj1 obj2
      ::oo::objdefine obj2 {mixin [self]}
      
      ::oo::copy obj2 obj3
      trace add command obj3 delete [list obj3 dying]
      rename obj2 {}
      </verbatim></code>
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "e476148cded301ffff84bcdc432536dc0c949e88"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to: "TclOO - mixing an object"
    16. type initialized to: "Bug"
  2. Ticket change [d69854ed4b] (rid 157632) by pooryorick on 2017-11-01 20:57:39:

    1. icomment:
      The problem lies in TclOO.c/ReleaseClassContents(), in a section that seems to
      be about removing a class that has been mixed into one of its instances (an
      unusual use case, to say the least):
      
      <code><verbatim>
      for(j=0 ; j<instancePtr->mixins.num ; j++) {
          Class *mixin = instancePtr->mixins.list[j];
          if (mixin == clsPtr) {
              instancePtr->mixins.list[j] = NULL;
          }
      }
      </verbatim></code>
      
      Leaving a <code>NULL<code> in the list breaks expectations.  Instead, that
      particular item should be unstitched from the list.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [43d1bf64af] (rid 158620) by pooryorick on 2017-11-17 23:06:36:

    1. closedate changed to: "2458075.46292816"
    2. closer changed to: "pooryorick"
    3. icomment: "Fixed in commit [5f178e7f03]."
    4. login: "pooryorick"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"
  4. Ticket change [dd1f4e80ca] (rid 158624) by pooryorick on 2017-11-18 00:14:37:

    1. closedate changed to: "2458075.51015454"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"