Artifacts Associated With Ticket 784befb0ba
Ticket change [5f6430b473] (rid 214295) by apnadkarni on 2023-05-02 15:24:53:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
The following tailcall results in a crash with a null `objPtr` in `GetNamespaceFromObj`. ``` % proc tc args {puts [llength $args]} % proc p {} [list tailcall tc {*}[lrepeat 254 x]] % p -> crash ``` - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "tailcall crashes with NULL pointer access"
- type initialized to: "Bug"
Ticket change [ad005c868c] (rid 214298) by apnadkarni on 2023-05-02 15:26:50:
- assignee changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [94a02a48ab] (rid 214302) by apnadkarni on 2023-05-02 15:31:40:
- comment changed to:
The following tailcall results in a crash with a null `objPtr` in `GetNamespaceFromObj` in 9.0. ``` % proc tc args {puts [llength $args]} % proc p {} [list tailcall tc {*}[lrepeat 254 x]] % p -> crash ``` - icomment:
In 8.6, the call stack is different, `GetNamespaceFromObj` does not show up on stack: ``` > tcl86t.dll!TclNRTailcallEval(void * * data, Tcl_Interp * interp, int result) Line 8501 C tcl86t.dll!TclNRRunCallbacks(Tcl_Interp * interp, int result, NRE_callback * rootPtr) Line 4503 C tcl86t.dll!TclEvalObjEx(Tcl_Interp * interp, Tcl_Obj * objPtr, int flags, const CmdFrame * invoker, int word) Line 6069 C tcl86t.dll!Tcl_EvalObjEx(Tcl_Interp * interp, Tcl_Obj * objPtr, int flags) Line 6050 C tcl86t.dll!Tcl_RecordAndEvalObj(Tcl_Interp * interp, Tcl_Obj * cmdPtr, int flags) Line 190 C tcl86t.dll!Tcl_MainExW(int argc, wchar_t * * argv, int(*)(Tcl_Interp *) appInitProc, Tcl_Interp * interp) Line 520 C ```
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- comment changed to:
Ticket change [4357308401] (rid 214351) by apnadkarni on 2023-05-02 18:00:37:
- closedate changed to: "2460067.2504317"
- closer changed to: "apnadkarni"
- icomment: "Fixed for 8.6, 8.7 and 9.0."
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"