Artifacts Associated With Ticket 845412ffffffffff
Ticket change [feb2365345] (rid 108632) by vincentdarley on 2003-11-19 21:21:34:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The new {expand} code crashes when attempting to compile commands with > 255 arguments (or something like that). The offending code is this: if ((delta == 255) && (tokenPtr->type != TCL_TOKEN_EXPAND_WORD)) { /* /* * Push an empty list for expansion so our delta * between expanded words doesn't overflow a byte */ objIndex = TclRegisterNewLiteral(envPtr, "", 0); TclEmitPush(objIndex, envPtr); Tcl_DStringAppend(&deltaList, (CONST char *)&delta, 1); delta = 1; where 'deltaList' is never initialized in this code path. A brief look at the code shows (to me at least!) that there's no way that DString is ever going to be initialized in the non-TCL_TOKEN_EXPAND_WORD case, so the code appears to be obviously incorrect. If necessary I can try to create a test case, but right now just a big application always crashes at that line. - foundin initialized to: "obsolete: 8.5a0"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "None"
- title initialized to: "tclCompile.c crash"
- type initialized to: "Bug"
Ticket change [b79fc0f1e6] (rid 125635) by dkf on 2003-11-20 04:47:19:
- icomment:
Logged In: YES user_id=79902 I get consistent hard failures with the following code: catch {if 1 [string repeat {x } 260]} msg It should, of course, complain about being unable to locate the "x" command. - login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- subsystem changed to: "47. Bytecode Compiler"
- username: "dkf"
- icomment:
Ticket change [3cd0cdbb5c] (rid 120972) by dkf on 2003-11-20 04:49:09:
- icomment:
Logged In: YES user_id=79902 Fix is to do: if (expand && (delta == 255) since delta's only meaningful when generating code for command invocations with expanding arguments anyway.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [593fb83a51] (rid 117944) by dgp on 2003-11-20 05:01:50:
- icomment:
Logged In: YES user_id=80530 will commit a fix once I get a test in place that crashes before and doesn't after the fix is applied.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- resolution changed to: "Fixed"
- username: "dgp"
- icomment:
Ticket change [231565daa6] (rid 130856) by dkf on 2003-11-20 05:04:46:
- assignee changed to: "dkf"
- closedate changed to: "2003-11-19T22:04:46"
- closer changed to: "dkf"
- priority changed to: "9 Immediate"
- status changed to: "Closed"