Bug in trace add execution leave <non-existent-proc>
Opena0377fd695504df2265e281234e92b32435c094cCreated 5 years agoUpdated 5 years ago
Descriptionplain2021-07-07 07:18:52
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
Log in (anonymous is fine) to add a comment.