From: SourceForge.net <no...@so...> - 2007-01-18 11:46:49
|
Bugs item #1638414, was opened at 2007-01-18 10:06 Message generated for change (Settings changed) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1638414&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: 46. Bytecode Compiler Group: development: 8.5a6 Status: Closed Resolution: Fixed >Priority: 9 Private: No Submitted By: Mark Janssen (mpc_janssen) Assigned to: Donal K. Fellows (dkf) Summary: {*} crashes interpreter on string that is not a valid list. Initial Comment: When replaying the following interactive session, the interpreter will crash on the second {*} % set a "{foo bar" % {*}$a unmatched open brace in list % {*}"{foo bar" H:\> Notice that {*} only crashes the interpreter when the string is put after {*} literally. When using uplevel to do the same, the correct error is again shown, this might suggest it is TEBC related. % uplevel 0 {{*}"\{foo bar"} unmatched open brace in list Tcl version info: () 3 % info patchlevel 8.5a6 () 4 % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(machine) = intel tcl_platform(os) = Windows NT tcl_platform(osVersion) = 5.1 tcl_platform(platform) = windows tcl_platform(pointerSize) = 4 tcl_platform(threaded) = 1 tcl_platform(user) = nlv18296 tcl_platform(wordSize) = 4 ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2007-01-18 11:46 Message: Logged In: YES user_id=79902 Originator: NO This only crashes if all expansions in the command invokation were string literals that were bad scripts, the immediate cause of the crash being a missing INST_EXPAND_START from the bytecode stream. The real problem was a bad assumption in TclCompileScript, which was that TclMarkList would always succeed (obviously not a true assumption!) All fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1638414&group_id=10894 |