Skip to content
Tcl Source Code History Of Ticket 1504500fffffffff
Login

History Of Ticket 1504500fffffffff

Artifacts Associated With Ticket 1504500fffffffff

  1. Ticket change [68a71204f6] (rid 103107) by eriklns on 2006-06-11 21:57:07:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When an arbitrary script is evaluated by a slave
      interpreter, memory leaks according to valgrind.
      
      Attached you find two files used to reproduce this leak:
      - memtest
        This executable shell script drives the test.
        It runs tclsh (under valgrind) with a scriptfile
      argument, redirecting stderr to valgrind.out
      - memtest.tcl
        The Tcl script evaluating an arbitrary script in a
      slave interp
      
      The file valgrind.out holds the findings of valgrind
      run on my computer, using Linux, Tcl8.4.13
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "eriklns"
    9. subsystem initialized to: "None"
    10. title initialized to: "slave interp evaluation leaks memory"
    11. type initialized to: "Bug"
  2. Add attachment "memtest" [71c7dfac73] (rid 100742) by eriklns on 2006-06-12 04:57:08.

  3. Ticket change [0c030ae695] (rid 114102) by eriklns on 2006-06-12 04:57:08:

    1. icomment:
      
      
      File Added - 181334: memtest
      
      
      
    2. login: "eriklns"
    3. mimetype: "text/plain"
    4. username: "eriklns"
  4. Add attachment "memtest.tcl" [fb52cb5288] (rid 92041) by eriklns on 2006-06-12 04:57:37.

  5. Ticket change [a5d4719495] (rid 110440) by eriklns on 2006-06-12 04:57:37:

    1. icomment:
      
      
      File Added - 181335: memtest.tcl
      
      
      
    2. login: "eriklns"
    3. mimetype: "text/plain"
    4. username: "eriklns"
  6. Ticket change [c2589afc56] (rid 111468) by eriklns on 2006-06-12 04:58:24:

    1. icomment:
      
      
      File Added - 181336: valgrind.out
      
      
      
    2. login: "eriklns"
    3. mimetype: "text/plain"
    4. username: "eriklns"
  7. Add attachment "valgrind.out" [d4d038a6d1] (rid 123506) by eriklns on 2006-06-12 04:58:24.

  8. Ticket change [51e94bb1eb] (rid 126213) by msofer on 2006-06-12 05:53:40:

    1. assignee changed to: "hobbs"
    2. closedate changed to: "2006-06-11T22:53:40"
    3. closer changed to: "msofer"
    4. icomment:
      Logged In: YES 
      user_id=148712
      
      I do not see any *real* leak there. Tcl does leave some
      memory to be cleaned by the os on exit, and that is what you
      are seeing. In this case, the main interp's execution
      environment and the stdout channel.
      
      In order to test real leaks in slave interps, you may try to
      run the following in a shell, checking the memory reqs with
      top in a different shell:
      
      while 1 {
         interp create slave
         slave eval {
             # whatever you want here; note that writing
             # to the console will increase the corresponding
             # memory reqs until the scrollback buffer is full
         }
         interp delete slave
      }
      
      If there is a leak, the memory should keep increasing. It
      doesn't here.
      
      Assigning to hobbs for a second opinion.
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Pending"
    9. subsystem changed to: "41. Memory Allocation"
    10. username: "msofer"
  9. Ticket change [506c48714c] (rid 125960) by nobody on 2006-06-12 16:39:56:

    1. icomment:
      Logged In: NO 
      
      I was only focused on the leak which was categorized as
      "definitely lost" in valgrinds output (you attributed that
      one to the stdout channel).
      
      I tested it again under valgrind with some 10 cycles (as you
      indicated), and you are right: valgrind reports the same
      leak with the same size as in the case of a single cycle. So
      indeed, this must be a one time memory leak.
      
      I understand that this leak is purposely left for the OS to
      clean up ... OK, no more questions for me.
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  10. Ticket change [1a2314c4bc] (rid 122920) by eriklns on 2006-06-12 16:47:35:

    1. icomment:
      Logged In: YES 
      user_id=113903
      
      Last comment was by Erik Leunissen not being logged in.
      
      
    2. login: "eriklns"
    3. mimetype: "text/plain"
    4. username: "eriklns"
  11. Ticket change [6c987017c7] (rid 128539) by eriklns on 2006-06-12 16:47:36:

    1. status changed to: "Open"
  12. Ticket change [4d7d1382f5] (rid 127058) by msofer on 2006-06-12 16:59:29:

    1. closedate changed to: "2006-06-12T09:59:29"
    2. closer changed to: "msofer"
    3. status changed to: "Pending"
  13. Ticket change [abb76f7758] (rid 101164) by sf-robot on 2006-06-27 09:20:29:

    1. closedate changed to: "2006-06-27T02:20:29"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      
      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"