Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 294339331a8b1322464297f881461b0326d8ca91103306f5c8d3fa04500260fb
Ticket: 0de6c1d79cfba2ea1b21a6732cd9a6e1e1201563
[child invokehidden info frame] dereferences NULL
User & Date: andy on 2024-03-19 02:56:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The following crashes Tcl:
    
        interp create child
        child hide info
        child invokehidden info frame
    
    This dies in tclCmdIL.c line 1163 because `*cmdFramePtrPtr` is NULL, since `iPtr->cmdFramePtr` is NULL.
    
    Replacing "`info frame`" with "`info level`" returns 0, no crash.
    
    Backtrace:
    
    ```
    #0  InfoFrameCmd (dummy=0x0, interp=0xc5a640, objc=1, objv=0xc6f720)
        at /root/tclkit-dbg/tcl/build/unix/tclCmdIL.c:1163
    #1  0x00000000005ca355 in Dispatch (data=0xc43498, interp=0xc5a640, result=0)
        at /root/tclkit-dbg/tcl/build/unix/tclBasic.c:4467
    #2  0x00000000005ca3db in TclNRRunCallbacks (interp=0xc5a640, result=0,
        rootPtr=0x0) at /root/tclkit-dbg/tcl/build/unix/tclBasic.c:4503
    #3  0x00000000006c7095 in NRPostInvokeHidden (data=0xcad058, interp=0xae4f40,
        result=0) at /root/tclkit-dbg/tcl/build/unix/tclInterp.c:3091
    #4  0x00000000005ca3db in TclNRRunCallbacks (interp=0xae4f40, result=0,
        rootPtr=0x0) at /root/tclkit-dbg/tcl/build/unix/tclBasic.c:4503
    #5  0x00000000005ccda9 in TclEvalObjEx (interp=0xae4f40, objPtr=0xca0500,
        flags=131072, invoker=0x0, word=0)
        at /root/tclkit-dbg/tcl/build/unix/tclBasic.c:6068
    #6  0x00000000005ccd3d in Tcl_EvalObjEx (interp=0xae4f40, objPtr=0xca0500,
        flags=131072) at /root/tclkit-dbg/tcl/build/unix/tclBasic.c:6049
    #7  0x00000000006c0131 in Tcl_RecordAndEvalObj (interp=0xae4f40,
        cmdPtr=0xca0500, flags=131072)
        at /root/tclkit-dbg/tcl/build/unix/tclHistory.c:190
    #8  0x00000000006f0bfa in Tcl_MainEx (argc=-1, argv=0x7fffffffdb20,
        appInitProc=0x429e16 <TclKit_AppInit>, interp=0xae4f40)
        at /root/tclkit-dbg/tcl/build/unix/tclMain.c:520
    #9  0x0000000000429ffe in main (argc=1, argv=0x7fffffffdb18) at main.c:7
    ```
    
  5. foundin changed to: "8.6.13"
  6. is_private changed to: "0"
  7. login: "andy"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "662c23482b0bf6a505f39e48fb7ad43af8dee4d3"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "andy"
  14. subsystem changed to: "17. Commands I-L"
  15. title changed to: "[child invokehidden info frame] dereferences NULL"
  16. type changed to: "Bug"