Skip to content
Tcl Source Code History Of Ticket 7b32d8d13b
Login

History Of Ticket 7b32d8d13b

Artifacts Associated With Ticket 7b32d8d13b

  1. Ticket change [3b852f9325] (rid 133929) by dgp on 2013-09-16 21:17:37:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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.
      
    5. foundin initialized to: "15cf5b6ebb"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "47. Bytecode Compiler"
    14. title initialized to: "assembler brought low by long jump"
    15. type initialized to: "Bug"
  2. Ticket change [c99af03d94] (rid 133930) by dgp on 2013-09-16 21:46:16:

    1. icomment:
      Well, I assumed it was the long jump, but the evidence
      says otherwise.  Change the "130" value to "10" and
      it still segfaults.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [1d03e20e6a] (rid 133931) by dgp on 2013-09-16 22:01:20:

    1. 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.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [d35c91138a] (rid 133932) by dgp on 2013-09-16 22:11:35:

    1. icomment:
      paring away, I get a segfault from this:
      
      tcl::unsupported::disassemble script {tcl::unsupported::assemble {
          jump end; nop; label end
      }}
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to: "assembler brought low by jumps, labels, and nops"
  5. Ticket change [0b1ceedcb8] (rid 133933) by dgp on 2013-09-16 22:43:12:

    1. icomment:
      Trouble is in BuildExceptionRanges()
      where a very very large value for 
      maxCatchDepth is calculated.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [6068f7c1a6] (rid 133934) by dgp on 2013-09-16 22:51:04:

    1. icomment:
      ...because bbPtr->catchDepth is not always
      properly initialized, it seems.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  7. Ticket change [53fea59e5c] (rid 133935) by dgp on 2013-09-16 23:19:01:

    1. icomment: "missing initialization committed to trunk."
    2. login: "dgp"
    3. mimetype: "text/plain"
  8. Ticket change [2a9dd6c9cd] (rid 133940) by dgp on 2013-09-16 23:25:34:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456552.47609167"
    3. closer changed to: "dgp"
    4. icomment: "...and that fixed it all. Yay!"
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"