Artifacts Associated With Ticket 7b32d8d13b
Ticket change [3b852f9325] (rid 133929) by dgp on 2013-09-16 21:17:37:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
namespace path tcl::unsupported append asm {push 0; label test; jumpTrue end; push 1; jump test;} [string repeat {nop;} 130] {label end} proc demo {} [list assemble $asm] puts working.... puts [disassemble proc demo] puts done. - foundin initialized to: "15cf5b6ebb"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "assembler brought low by long jump"
- type initialized to: "Bug"
Ticket change [c99af03d94] (rid 133930) by dgp on 2013-09-16 21:46:16:
- icomment:
Well, I assumed it was the long jump, but the evidence says otherwise. Change the "130" value to "10" and it still segfaults.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [1d03e20e6a] (rid 133931) by dgp on 2013-09-16 22:01:20:
- icomment:
setting the repeat count to 0, gets me: working.... ByteCode 0x0x10087a910, refCt 1, epoch 15, interp 0x0x100849c10 (epoch 15) Source "assemble {push 0; label test; jumpTrue end; push 1; jum" Cmds 1, src 72, inst 11, litObjs 3, aux 0, stkDepth 1, code/src 0.00 Proc 0x0x1008b1f10, refCt 1, args 0, compiled locals 0 Commands 1: 1: pc 0-9, src 0-71 Command 1: "assemble {push 0; label test; jumpTrue end; push 1; jum" (0) push1 0 # "0" (2) jumpTrue1 +6 # pc 8 (4) push1 1 # "1" (6) jump1 -4 # pc 2 (8) push1 2 # "" (10) done done. Setting the count to just 1 (sticking in one "nop;") brings it down. - login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [d35c91138a] (rid 133932) by dgp on 2013-09-16 22:11:35:
- icomment:
paring away, I get a segfault from this: tcl::unsupported::disassemble script {tcl::unsupported::assemble { jump end; nop; label end }} - login: "dgp"
- mimetype: "text/plain"
- title changed to: "assembler brought low by jumps, labels, and nops"
- icomment:
Ticket change [0b1ceedcb8] (rid 133933) by dgp on 2013-09-16 22:43:12:
- icomment:
Trouble is in BuildExceptionRanges() where a very very large value for maxCatchDepth is calculated.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [6068f7c1a6] (rid 133934) by dgp on 2013-09-16 22:51:04:
- icomment:
...because bbPtr->catchDepth is not always properly initialized, it seems.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [53fea59e5c] (rid 133935) by dgp on 2013-09-16 23:19:01:
- icomment: "missing initialization committed to trunk."
- login: "dgp"
- mimetype: "text/plain"
Ticket change [2a9dd6c9cd] (rid 133940) by dgp on 2013-09-16 23:25:34:
- assignee changed to: "dgp"
- closedate changed to: "2456552.47609167"
- closer changed to: "dgp"
- icomment: "...and that fixed it all. Yay!"
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"