From: SourceForge.net <no...@so...> - 2009-09-07 20:02:50
|
Bugs item #2850901, was opened at 2009-09-04 00:48 Message generated for change (Comment added) made by dgp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2850901&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 47. Bytecode Compiler Group: development: 8.6b1.1 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Don Porter (dgp) >Assigned to: Don Porter (dgp) Summary: bad line count from [info frame] Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2009-09-07 16:02 Message: fix committed to HEAD ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2009-09-04 16:29 Message: 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 ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2009-09-04 15:57 Message: Thanks for the #280 work. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2009-09-04 13:34 Message: Patch 2314561 included the fix for the TclCompileScript flaw. Ticket still open for the other path to be fixed up. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2009-09-04 09:12 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2850901&group_id=10894 |