Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 97515b46b4bd3a6a5ebf97fc7e48c4f08e09c611
Ticket: cf74deb33c88d391fe9028b58cdfe264b9b300d4
OO leaks
User & Date: msofer on 2016-01-31 05:55:10
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Valgrind found two leaks triggered by oo.test and ooNext.test. Stack traces are:
    
    mig@X13:~/DEVEL/tcl-core/trunk/unix$ cat ERR.leaks 
    Leak #1
      0:  malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      1:  TclpAlloc (tclAlloc.c:699)
      2:  Tcl_Alloc (tclCkalloc.c:1059)
      3:  AllocClass (tclOO.c:1539)
      4:  TclNRNewObjectInstance (tclOO.c:1790)
      5:  TclOO_Class_Create (tclOOBasic.c:198)
      6:  TclOOInvokeContext (tclOOCall.c:309)
      7:  TclOOObjectCmdCore (tclOO.c:2635)
      8:  PublicNRObjectCmd (tclOO.c:2451)
      9:  Dispatch (tclBasic.c:4353)
    -- oo.test: ==26247== 832 (528 direct, 304 indirect) bytes in 2 blocks are definitely lost in loss record 3 of 4
    
    Leak #2
      0:  malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      1:  TclpAlloc (tclAlloc.c:699)
      2:  Tcl_Alloc (tclCkalloc.c:1059)
      3:  AllocObject (tclOO.c:568)
      4:  TclNRNewObjectInstance (tclOO.c:1773)
      5:  TclOO_Class_Create (tclOOBasic.c:198)
      6:  TclOOInvokeContext (tclOOCall.c:309)
      7:  TclOOObjectCmdCore (tclOO.c:2635)
      8:  PublicNRObjectCmd (tclOO.c:2451)
      9:  Dispatch (tclBasic.c:4353)
    -- ooNext2.test: ==26246== 832 (304 direct, 528 indirect) bytes in 2 blocks are definitely lost in loss record 2 of 2
    -- oo.test: ==26247== 1,248 (456 direct, 792 indirect) bytes in 3 blocks are definitely lost in loss record 4 of 4
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "msofer"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "214bb5765a5d2d4513fe393de9e8c8431e3e869a"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "msofer"
  14. subsystem changed to: "35. TclOO Package"
  15. title changed to: "OO leaks"
  16. type changed to: "Bug"