Skip to content
Tcl Source Code History Of Ticket 551061651d07944a
Login

History Of Ticket 551061651d07944a

Artifacts Associated With Ticket 551061651d07944a

  1. Ticket change [4dad7af251] (rid 153192) by bigfaceworm on 2017-04-14 18:56:12:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      This has been reproduced with ActiveState releases 8.6.5 and 8.6.6
      
      The following script causes a segmentation fault (core dump).
      
      Unsure of the category (don't know if it's OO or uplevel), please assign the category appropriately.
      
      # ---------------begin script-------------------
      package require Itcl
      
      proc ::try_uplevel {} {
        return [uplevel 1 [list ::info vars _u_defer_var]]
      }
      
      itcl::class ::test_class {
        constructor {} {}
      
        public proc test_via_proc {} {
          ::try_uplevel
        }
      }
      
      ::test_class::test_via_proc
      # ---------------end script-------------------
      
      The problem is that the Tcl core code is getting a null pointer and dereferencing it in tclVar.c, AppendLocals(....)
      
        if (iPtr->varFramePtr->isProcCallFrame & FRAME_IS_METHOD) {
      	CallContext *contextPtr = iPtr->varFramePtr->clientData;
      	Method *mPtr = contextPtr->callPtr->chain[contextPtr->index].mPtr;
      
      the contextPtr is null.
      
    5. foundin initialized to: "8.6.6"
    6. is_private initialized to: "0"
    7. login: "bigfaceworm"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "5cf9569cda9cff4e20f184ff96974aff0f932dfb"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "bigfaceworm"
    14. subsystem initialized to: "None"
    15. title initialized to:
      Crash evaluating [uplevel 1 {info vars _u_defer_var}] from inside a itcl class proc
      
    16. type initialized to: "Bug"
  2. Ticket change [de416aa8f5] (rid 153205) by dgp on 2017-04-17 15:52:24:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457861.16139788"
    3. closer changed to: "dgp"
    4. icomment:
      
      The problem is in Itcl.  Simplified demo entered
      into Itcl's ticket system.
      
      https://core.tcl.tk/itcl/tktview/a03f579f7db89cabe7528c30a44d7fc1c95f427e
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. subsystem changed to: "81. Bundled Packages"