Skip to content
Tcl Source Code History Of Ticket 784befb0ba
Login

History Of Ticket 784befb0ba

Artifacts Associated With Ticket 784befb0ba

  1. Ticket change [5f6430b473] (rid 214295) by apnadkarni on 2023-05-02 15:24:53:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. 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
      ```
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "tailcall crashes with NULL pointer access"
    16. type initialized to: "Bug"
  2. Ticket change [ad005c868c] (rid 214298) by apnadkarni on 2023-05-02 15:26:50:

    1. assignee changed to: "apnadkarni"
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  3. Ticket change [94a02a48ab] (rid 214302) by apnadkarni on 2023-05-02 15:31:40:

    1. 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
      ```
      
    2. 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
      
      ```
      
    3. login: "apnadkarni"
    4. mimetype: "text/x-markdown"
  4. Ticket change [4357308401] (rid 214351) by apnadkarni on 2023-05-02 18:00:37:

    1. closedate changed to: "2460067.2504317"
    2. closer changed to: "apnadkarni"
    3. icomment: "Fixed for 8.6, 8.7 and 9.0."
    4. login: "apnadkarni"
    5. mimetype: "text/x-fossil-plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"