|
2009-09-08
| ||
| 03:02 | • Closed ticket [2850901fff]: bad line count from info frame plus 8 other ch... artifact: 94634b4cbf user: dgp | |
|
2009-09-05
| ||
| 03:29 | • Ticket [2850901fff]: 4 changes artifact: a72e52570e user: andreas_kupries | |
| 02:57 | • Ticket [2850901fff]: 4 changes artifact: f8f9c4b8c0 user: andreas_kupries | |
| 00:34 | • Ticket [2850901fff]: 4 changes artifact: 37517b5ee8 user: dgp | |
|
2009-09-04
| ||
| 20:12 | • Ticket [2850901fff]: 4 changes artifact: 348e3b9900 user: dgp | |
| 04:48 | • New ticket [2850901fff]. artifact: 38e4dfdcec user: dgp | |
bad line count from [info frame]
Closed / Fixed2850901fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-09-04 04:48:09
I think this is due to a flaw in TclCompileScript:
$ cat lines.tcl
puts [format %s {}
][info frame 0]
$ make shell SCRIPT=lines.tcl
...
type source line 1 file /home/dgp/cvs/tcl-only/unix/lines.tcl cmd {info frame 0} level 0
Ought to report line 2 instead of line 1.
dgpplain2009-09-04 20:12:40
Actually that original demo shows the same problem in TclSubstTokens. To see it in TclCompileScript, do this: $ make shell ... % source lines.tcl I have a fix for TclCompileScript in my sandbox.
dgpplain2009-09-05 00:34:38
Patch 2314561 included the fix for the TclCompileScript flaw. Ticket still open for the other path to be fixed up.
andreas_kupriesplain2009-09-05 02:57:07
Thanks for the #280 work.
andreas_kupriesplain2009-09-05 03:29:00
Uh. Crash.
info.test
---- info-30.30 start
++++ info-30.30 PASSED
---- info-30.31 start
Test file error:
Bad stack top 5 at pc 59 in TclExecuteByteCode (min 0, max 4)
executing info frame 0
TclExecuteByteCode execution failure: bad stack top
dgpplain2009-09-08 03:02:50
allow_comments - 1 fix committed to HEAD
Log in (anonymous is fine) to add a comment.