Artifacts Associated With Ticket 551061651d07944a
Ticket change [4dad7af251] (rid 153192) by bigfaceworm on 2017-04-14 18:56:12:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "8.6.6"
- is_private initialized to: "0"
- login: "bigfaceworm"
- priority initialized to: "5 Medium"
- private_contact initialized to: "5cf9569cda9cff4e20f184ff96974aff0f932dfb"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "bigfaceworm"
- subsystem initialized to: "None"
- title initialized to:
Crash evaluating [uplevel 1 {info vars _u_defer_var}] from inside a itcl class proc - type initialized to: "Bug"
Ticket change [de416aa8f5] (rid 153205) by dgp on 2017-04-17 15:52:24:
- assignee changed to: "dgp"
- closedate changed to: "2457861.16139788"
- closer changed to: "dgp"
- icomment:
The problem is in Itcl. Simplified demo entered into Itcl's ticket system. https://core.tcl.tk/itcl/tktview/a03f579f7db89cabe7528c30a44d7fc1c95f427e
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- subsystem changed to: "81. Bundled Packages"