Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6558b50ae1b80cc476e301dea2e2b04717748ea748debd1e6edd1745202d9a19
Ticket: a0377fd695504df2265e281234e92b32435c094c
Bug in trace add execution leave <non-existent-proc>
User & Date: anonymous on 2021-07-07 07:18:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    When I give a non-existent proc to trace, the tclsh locks up. This caused a difficult to debug issue in one of our Tcl-based tools.
    Thanks! --Myles
    
    % tclsh
    >trace add execution puts leave foo
    
    while executing
    "puts -nonewline [string range $txt 0 2047]"
    (procedure "TclReadLine::print" line 6)
    invoked from within
    "TclReadLine::print "$res\n""
    invoked from within
    "if {$code == 1} {
    TclReadLine::print "$::errorInfo\n"
    } else {
    TclReadLine::print ..."
    ("uplevel" body line 1)
    invoked from within
    "uplevel \#0 {
    
    # Handle aliases:
    set cmdline $TclReadLine::CMDLINE
    #
    ..."
    (procedure "TclReadLine::tclline" line 38)
    invoked from within
    "TclReadLine::tclline"
    <hangs here>
    ^C
    
  5. foundin changed to: "8.5"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9dcd5b8759d1fc3328967abe6c05033e91ec80a0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Bug in trace add execution leave <non-existent-proc>
    
  16. type changed to: "Bug"