Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 618fecbaab43a9634897bea75c933d746d9b8d81
Ticket: 1903325fffffffffffffffffffffffffffffffff
puts causes bytecode crash after dict operation
User & Date: melbardis on 2008-03-07 22:19:14
Changes

  1. icomment:
    Logged In: YES 
    user_id=788816
    Originator: YES
    
    here it is: right before  the scripts invokes xx ...
    
    ByteCode 0x008D4048, refCt 1, epoch 3, interp 0x008987C8 (epoch 3)
      Source "\n    dict for {id subdict} $idict {\n    }\n    puts \"key"
      Cmds 2, src 68, inst 89, litObjs 5, aux 0, stkDepth 3, code/src 4.24
      Code 288 = header 104+inst 89+litObj 20+exc 56+aux 0+cmdMap 8
      Proc 0x008D8BE0, refCt 1, args 3, compiled locals 6
          slot 0, scalar, arg, "idict"
          slot 1, scalar, arg, "key"
          slot 2, scalar, arg, "args"
          slot 3, scalar, "id"
          slot 4, scalar, "subdict"
          slot 5, scalar, temp
      Exception ranges 2, depth 2:
          0: level 0, catch, pc 17-31, catch 55
          1: level 1, loop, pc 29-31, continue 32, break 44
      Commands 2:
          1: pc 0-73, src 5-40      2: pc 74-87, src 46-66
      Command 1: "dict for {id subdict} $idict {\n    }"
        (0) loadScalar1 %v0 # var "idict"
        (2) dictFirst %v5 # temp var 5
        (7) jumpTrue4 +57 # pc 64
        (12) beginCatch4 0 
        (17) storeScalar4 %v3 # var "id"
        (22) pop 
        (23) storeScalar4 %v4 # var "subdict"
        (28) pop 
        (29) push1 0 # ""
        (31) pop 
        (32) dictNext %v5 # temp var 5
        (37) jumpFalse4 -20 # pc 17
        (42) pop 
        (43) pop 
        (44) dictDone %v5 # temp var 5
        (49) endCatch 
        (50) jump4 +21 # pc 71
        (55) pushReturnOpts 
        (56) pushResult 
        (57) dictDone %v5 # temp var 5
        (62) endCatch 
        (63) returnStk 
        (64) pop 
        (65) pop 
        (66) dictDone %v5 # temp var 5
        (71) push1 1 # ""
        (73) pop 
      Command 2: "puts \"key=$key $args\""
        (74) push1 2 # "puts"
        (76) push1 3 # "key="
        (78) loadScalar1 %v1 # var "key"
        (80) push1 4 # " "
        (82) loadScalar1 %v2 # var "args"
        (84) concat1 4 
        (86) invokeStk1 2 
        (88) done 
    
    
    
    
  2. login: "melbardis"
  3. mimetype: "text/plain"
  4. username: "melbardis"