Skip to content
Tcl Source Code History Of Ticket 3610404
Login

History Of Ticket 3610404

Artifacts Associated With Ticket 3610404

  1. Ticket change [f46067525d] (rid 129901) by dgp on 2013-04-09 18:57:23:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Here's the real bug I've been striving to demonstrate,
      recording mismatches with exec tracing capability
      along the way.
      
      oo::object create foo
      oo::objdefine foo {
          method target {} {puts Hit!}
          forward bar my target
          method bump {} {
              set ns [info object namespace ::foo]
              rename ${ns}::my ${ns}::
              rename ${ns}:: ${ns}::my
          }
      }
      proc harness {} {
          foo target
          foo bar
      }
      proc handle {cmd args} {
          foo bump
      }
      trace add execution harness enterstep handle
      proc my {method} {
          puts Missed!
      }
      harness
      
      Output:
      
      Hit!
      Missed!
      
      The re-resolution of "my" happens in the wrong
      context.
      
      Comparing with the machinery in [tailcall], I think
      this one has a simple fix.
      
    4. foundin initialized to: "current: 8.6.0"
    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: "dgp"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "re-resolution gets wrong target"
    12. type initialized to: "Bug"
  2. Ticket change [426ae9f395] (rid 116377) by dgp on 2013-04-10 02:04:26:

    1. icomment:
      Branch bug-3610404 has the one-liner fix.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [8ed9716c0b] (rid 120185) by dkf on 2013-04-10 03:02:49:

    1. icomment:
      Flushing that cache in that way shouldn't cause that. Ick.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "dkf"
  4. Ticket change [b743d812fd] (rid 125555) by dkf on 2013-04-10 03:09:09:

    1. icomment:
      And the new tests cause a panic under 8.5!
      
        Tcl_ListObjAppendElement called with shared object
      
      That bumps it right to highest priority.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dkf"
  5. Ticket change [0b36c82f84] (rid 113944) by dkf on 2013-04-10 16:05:41:

    1. icomment:
      And that appears to be a bug in Tcl 8.5.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [cdd36f545a] (rid 95956) by dkf on 2013-04-10 19:20:37:

    1. icomment:
      The 8.5 crash seems to be an "impossible" case. Memory corruption suspected.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [ddf2bec2be] (rid 114769) by dkf on 2013-04-10 19:25:41:

    1. icomment:
      And I can't see where it is happening at all. :-(
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  8. Ticket change [437e7201d0] (rid 116562) by dkf on 2013-04-10 19:28:02:

    1. icomment:
      (There's a list inside AppendPrintfToObjVA that should only have a single reference to it and which should — in this case — end up with four elements in it, and which is never passed externally, but it is ending up with two references and 5 elements, at which point Tcl_ListObjAppendElement gets rightfully upset. Real WTF moment.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  9. Ticket change [ea96ef4ae5] (rid 103403) by dgp on 2013-04-17 03:07:44:

    1. icomment:
      Looks like the problem is refCount management
      of the commandPtr in the TclEvalObjvInternal() routine.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "dgp"
  10. Ticket change [7b77a058ad] (rid 90518) by dgp on 2013-04-17 03:12:30:

    1. icomment:
      Here's the patch:
      
      Index: generic/tclBasic.c
      ==================================================================
      --- generic/tclBasic.c
      +++ generic/tclBasic.c
      @@ -3650,10 +3650,11 @@
      
              if (cmdEpoch != newEpoch) {
                  checkTraces = 0;
                  if (commandPtr) {
                      Tcl_DecrRefCount(commandPtr);
      +               commandPtr = NULL;
                  }
                  goto reparseBecauseOfTraces;
              }
           }
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [0bb750c92d] (rid 114042) by dgp on 2013-04-17 03:19:14:

    1. icomment:
      committed to core-8-5-branch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [9d1403c61e] (rid 133350) by dgp on 2013-08-14 19:02:42:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456519.29354567"
    3. closer changed to: "dgp"
    4. comment changed to:
      Here's the real bug I've been striving to demonstrate,
      recording mismatches with exec tracing capability
      along the way.
      
      oo::object create foo
      oo::objdefine foo {
          method target {} {puts Hit!}
          forward bar my target
          method bump {} {
              set ns [info object namespace ::foo]
              rename ${ns}::my ${ns}::
              rename ${ns}:: ${ns}::my
          }
      }
      proc harness {} {
          foo target
          foo bar
      }
      proc handle {cmd args} {
          foo bump
      }
      trace add execution harness enterstep handle
      proc my {method} {
          puts Missed!
      }
      harness
      
      Output:
      
      Hit!
      Missed!
      
      The re-resolution of "my" happens in the wrong
      context.
      
      Comparing with the machinery in [tailcall], I think
      this one has a simple fix.
      
    5. icomment: "Finally getting back to closing this..."
    6. login: "dgp"
    7. mimetype: "text/plain"
    8. resolution changed to: "Fixed"
    9. severity changed to: "Minor"
    10. status changed to: "Closed"