Skip to content
Tcl Source Code History Of Ticket 1811706
Login

History Of Ticket 1811706

Artifacts Associated With Ticket 1811706

  1. Ticket change [f27935763b] (rid 109542) by nobody on 2007-10-11 17:04:55:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hey,
      
      could you please take a look at the implementation of TCP_DeleteInterp?
      
      It causes a memory leak of 34 bytes here,
      if you wish i could post the valgrind leakcheck full!
      
      
      Kind Regards
      Daniel
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "41. Memory Allocation"
    11. title initialized to: "Memory Leak, caused in TCP_DeleteInterp"
    12. type initialized to: "Bug"
  2. Ticket change [57fd944bd3] (rid 117728) by nobody on 2007-10-12 00:06:28:

    1. icomment:
      Logged In: NO 
      
      sorry, i was talking about TCL_DeleteInterp of course, and the Version where the problem occurs is 8.5b1.
      
      Thank you!
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Ticket change [d78b140aee] (rid 124006) by msofer on 2007-10-12 00:15:58:

    1. assignee changed to: "msofer"
    2. closedate changed to: "2007-10-11T17:15:58"
    3. closer changed to: "msofer"
    4. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      We may need to interact on this one ... please open a new ticket after logging in (so that you get auto email when the ticket is updated, and so that you can attach files if needed).
      
      Please specify what script was being run, whether any C extensions are loaded in the interp, whether those are "definite" leaks or "still reachable", and the stack trace (10-deep is plenty) where the mem was allocated. Thank you.
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. status changed to: "Pending"
    8. username: "msofer"
  4. Ticket change [6977aa63c1] (rid 103259) by msofer on 2007-10-12 00:21:24:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Ahhh ... is it this?
      
      ==15810== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 1 of 4
      ==15810==    at 0x4021620: malloc (vg_replace_malloc.c:149)
      ==15810==    by 0x413D687: (within /lib/tls/i686/cmov/libc-2.5.so)
      ==15810==    by 0x413DED5: __nss_database_lookup (in /lib/tls/i686/cmov/libc-2.5.so)
      ==15810==    by 0x42E7EEB: ???
      ==15810==    by 0x42E905C: ???
      ==15810==    by 0x40EBE82: getpwuid_r (in /lib/tls/i686/cmov/libc-2.5.so)
      ==15810==    by 0x40EB867: getpwuid (in /lib/tls/i686/cmov/libc-2.5.so)
      ==15810==    by 0x81107AC: TclpGetPwUid (in /home/CVS/tcl_SF_clean/unix/tcltest)
      ==15810==    by 0x810FBBD: TclpSetVariables (in /home/CVS/tcl_SF_clean/unix/tcltest)
      ==15810==    by 0x8068DEA: Tcl_CreateInterp (in /home/CVS/tcl_SF_clean/unix/tcltest)
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [8b047a38bc] (rid 127494) by msofer on 2007-10-12 00:22:27:

    1. status changed to: "Open"
  6. Ticket change [f646ee7716] (rid 130272) by msofer on 2007-10-12 00:23:28:

    1. title changed to: "Memory Leak, caused in Tcl_DeleteInterp"
  7. Ticket change [4e54d2ca24] (rid 127209) by nobody on 2007-10-12 00:34:54:

    1. icomment:
      Logged In: NO 
      
      hey, i think so, that looks like it might be it.
      
      Should I reopen a ticket with a signed up account?
      
      If you want I can post my valgrind log as well!
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  8. Ticket change [8050f726f1] (rid 116850) by nobody on 2007-10-12 01:21:58:

    1. icomment:
      Logged In: NO 
      
      I've tried with several tools to monitor for a leak, and looked at the code too.  I think this is probably either a bug in libc/glibc, or Valgrind.
      
      I've tested this repeatedly and the process doesn't grow beyond a certain amount after a while.  I tested with single threaded, and --enable-threads builds of the Tcl HEAD from today.  I also can't duplicate the problem with the latest release of Valgrind.
      
      /lib/libc.so.6 reports
      GNU C Library stable release version 2.5
      
      while 1 {
       interp create slave
       interp delete slave
      }
      
      -GPS
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  9. Ticket change [5800265971] (rid 117729) by nobody on 2007-10-14 01:28:11:

    1. icomment:
      Logged In: NO 
      
      Well I dont think that its a problem with GCC or Valgrind.
      
      I have tried compiling the same thing on a windows machine, and checked for memory leaks with Boundschecker....Same result:
      
      See this screenshot:
      http://img99.imageshack.us/img99/3936/leaksw8.jpg
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  10. Ticket change [93a829aa46] (rid 105852) by nobody on 2007-10-14 01:33:11:

    1. icomment:
      Logged In: NO 
      
      ...but for some reason the memory leak is 9KB+ on a windows machine, and not just 36 bytes :(
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  11. Ticket change [332174b28e] (rid 106532) by nobody on 2007-10-14 23:18:15:

    1. icomment:
      Logged In: NO 
      
      i think I will have to fix them
      im pulling the current HEAD and then I will close the leaks.
      
      its very annoying and we really need to embed TCL in our application.
      
      
      Daniel
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  12. Ticket change [9f8d889c56] (rid 96660) by msofer on 2008-01-12 20:25:59:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Daniel: any news on this? Did you find out where the problem is, and how to fix it?
      
      The leak seems to be there at program exit, so it will be collected by the OS in the non-embedded case, as well as the case where the embedded interp dies at the end of the embedding program. It will be a problem if the embedding prog repeatedly initializes/terminates the embedded interp.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  13. Ticket change [2e076a797e] (rid 119153) by msofer on 2008-06-28 20:48:01:

    1. closedate changed to: "2008-06-28T13:48:01"
    2. closer changed to: "msofer"
    3. status changed to: "Pending"
  14. Ticket change [ce9d836804] (rid 96089) by sf-robot on 2008-07-13 09:20:22:

    1. closedate changed to: "2008-07-13T02:20:22"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"