Skip to content
Tcl Source Code History Of Ticket 9b352768e6
Login

History Of Ticket 9b352768e6

Artifacts Associated With Ticket 9b352768e6

  1. Ticket change [63e57950f3] (rid 138653) by dgp on 2014-07-11 13:25:14:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      ==21764== 58 (48 direct, 10 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 7
      ==21764==    at 0x4A0610C: malloc (vg_replace_malloc.c:195)
      ==21764==    by 0x5D142A: TclpAlloc (tclAlloc.c:699)
      ==21764==    by 0x43D1AE: Tcl_Alloc (tclCkalloc.c:1059)
      ==21764==    by 0x548506: TclCreateLiteral (tclLiteral.c:236)
      ==21764==    by 0x54890F: TclRegisterLiteral (tclLiteral.c:434)
      ==21764==    by 0x4667ED: TclCompileDictMergeCmd (tclCompCmds.c:1272)
      ==21764==    by 0x4F99E2: TclAttemptCompileProc (tclEnsemble.c:3081)
      ==21764==    by 0x4F977F: TclCompileEnsemble (tclEnsemble.c:3004)
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "47. Bytecode Compiler"
    14. title initialized to: "memleak in dict-20.16"
    15. type initialized to: "Bug"
  2. Ticket change [1c54641d96] (rid 138654) by dgp on 2014-07-11 14:29:43:

    1. icomment:
      % proc demo {} {dict merge {a b c d} {e f g h i}}
      % tcl::unsupported::disassemble proc demo
      ByteCode 0x0x15c2cc10, refCt 1, epoch 15, interp 0x0x15bda5d0 (epoch 15)
        Source "dict merge {a b c d} {e f g h i}"
        Cmds 1, src 32, inst 79, litObjs 2, aux 0, stkDepth 3, code/src 0.00
        Proc 0x0x15c27a70, refCt 1, args 0, compiled locals 4
            slot 0, scalar, temp
            slot 1, scalar, temp
            slot 2, scalar, temp
            slot 3, scalar, temp
        Exception ranges 1, depth 1:
            0: level 0, catch, pc 12-50, catch 62
        Commands 1:
            1: pc 0-77, src 0-31
        Command 1: "dict merge {a b c d} {e f g h i}"
          (0) push1 0 	# "a b c d"
          (2) dup 
          (3) verifyDict 
          (4) storeScalar1 %v2 	# temp var 2
          (6) pop 
          (7) beginCatch4 0 
          (12) push1 1 	# "e f g h i"
          (14) dictFirst %v3 	# temp var 3
          (19) jumpTrue1 +24 	# pc 43
          (21) reverse 2 
          (26) dictSet 1 %v2 	# temp var 2
          (35) pop 
          (36) dictNext %v3 	# temp var 3
          (41) jumpFalse1 -20 	# pc 21
          (43) pop 
          (44) pop 
          (45) unsetScalar 0 %v3 	# temp var 3
          (51) endCatch 
          (52) loadScalar1 %v2 	# temp var 2
          (54) unsetScalar 0 %v2 	# temp var 2
          (60) jump1 +18 	# pc 78
          (62) pushReturnOpts 
          (63) pushResult 
          (64) endCatch 
          (65) unsetScalar 0 %v2 	# temp var 2
          (71) unsetScalar 0 %v3 	# temp var 3
          (77) returnStk 
          (78) done
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [f1bc7c106c] (rid 138655) by dgp on 2014-07-11 14:31:20:

    1. icomment:
      I see 
      
          (7) beginCatch4 0 
      ...
          (51) endCatch 
      ...
          (64) endCatch 
      
      which looks like something's out of balance to me.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [4be4f1d39d] (rid 138656) by dgp on 2014-07-11 14:32:36:

    1. icomment:
      I see 
      
          (7) beginCatch4 0 
      ...
          (51) endCatch 
      ...
          (64) endCatch 
      
      which looks like something's out of balance to me.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [6a1ecf7acc] (rid 138657) by dgp on 2014-07-11 15:31:07:

    1. icomment:
      No, that's not it.  Trouble is some missing
      refcount management in the INST_DICT_FIRST
      instruction.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [79c8e1aaee] (rid 138660) by dgp on 2014-07-11 15:45:40:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456850.15671603"
    3. closer changed to: "dgp"
    4. icomment: "Fixed on trunk."
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"