Skip to content
Tcl Source Code Artifact [3e91f08799]
Login

Artifact [3e91f08799]

Artifact 3e91f08799665c958f9f909fe51a1f989cace382:

Ticket change [3e91f08799] - New ticket [2438181fffffffff|2438181fff] <i>Incorrect error reporting in traces</i>. by nobody on 2008-12-17 06:53:16.
D 2008-12-17T06:53:16
J assignee dgp
J cmimetype text/plain
J comment This\sscript:\n#-----------\nset\spbody\s"set\scomms\s\\[list\s[info\scommands]\\]"\nappend\spbody\s{\n\s\s\s\sset\spname\s[lindex\s$pstr\s1]\n\s\s\s\sif\s{[lsearch\s-exact\s$comms\s$pname]!=-1}\s{\n\s\s\s\s\s\s\s\sputs\s"$pname\salready\sexists"\n\s\s\s\s\s\s\s\sreturn\n\s\s\s\s\s\s\s\s}\n\s\s\s\sputs\s"Setting\strace\son:\s$pname"\n\s\s\s\strace\sadd\sexecution\s$pname\senter\smy_report2\n\s\s\s\sputs\s"Trace\sset"\n\s\s\s\s}\n\n#This\sis\san\serror\sI\smade:\nproc\smy_report\s{pstr\sop}\s$pbody\s\n\n#This\swas\sintended,\sbtw...:\n#proc\smy_report\s{pstr\sargs}\s$pbody\n\nproc\smy_report2\s{commstr\sargs}\s{\nset\spname\s[lindex\s$commstr\s0]\nputs\s"<DEBUG>\s$pname"\n}\n\ntrace\sadd\sexecution\sproc\sleave\smy_report\n\n#Testing:\n\nrename\sgets\s_gets\nproc\sgets\s{a\sb}\s{\n\s\s\s\sputs\s"A\snew\sgets"\n}\n\nproc\sexp\s{a\sb}\s{\nputs\s$a\nputs\s$b\n}\n\nexp\s1\s2\ngets\s5\s6\n#-----------\n\nCorrectly\sreports\sin\stclkit8.4.19:\n-----\nwrong\s#\sargs:\sshould\sbe\s"my_report\spstr\sop"\n\s\s\s\swhile\sexecuting\n"proc\sgets\s{a\sb}\s{\n\s\s\s\sputs\s"A\snew\sgets"\n}"\n\s\s\s\s(file\s"bug.tcl"\sline\s29)\n-----\n\nBut\sboth\stcl\s8.5.2\sand\s8.6a3\sreport:\n-----\n\n\s\s\s\swhile\sexecuting\n"proc\sgets\s{a\sb}\s{\n\s\s\s\sputs\s"A\snew\sgets"\n}"\n\s\s\s\s(file\s"bug.tcl"\sline\s29)\n-----\nAs\syou\ssee,\serror\sdescription\sis\smissing.\n\n\n\n\n
J foundin obsolete:\s8.5.5
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 46.\sTraces
J title Incorrect\serror\sreporting\sin\straces
J type Bug
K 2438181fffffffffffffffffffffffffffffffff
U nobody
Z 1856e9bf8560b22f9bd9297f42bdd981