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

History Of Ticket 1710825fffffffff

Artifacts Associated With Ticket 1710825fffffffff

  1. Ticket change [97aca1b73d] (rid 110480) by kennykb on 2007-05-01 21:18:02:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I'm tracking down places where Tcl leaves memory "still reachable" on exit.  For reference, I'm adding
      
      proc exit args {}
      
      at the end of tests/all.tcl, so that the main interp will be properly destroyed.
      
      I find two major sources of leakage:
      
      (1) In a non-threaded build, TSD blocks are never
          freed.  This problem happens simply because the
          #ifdef's in TclFinalizeSynchronization are
          misplaced.
      (2) TclFinalizeIOSubsystem never gets past closing the
          first still-open channel, because by the time
          control returns from Tcl_Close, the
          'nextCSPtr' field in the channel state has
          been cleared.
      
      The attach patch, for your review, appears to close
      both leaks and introduces no new failures in 'make test'.
      Sorry that it's so hard to read; the indentation changes
      get in the way a bit.
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "7 High"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "kennykb"
    10. subsystem initialized to: "25. Channel System"
    11. title initialized to:
      "Still reachable" memory leaks in Tcl I/O subsystem
      
    12. type initialized to: "Bug"
  2. Add attachment "ioleak.patch" [5457b9292e] (rid 93932) by kennykb on 2007-05-02 04:18:02.

  3. Ticket change [19f6366cac] (rid 122891) by kennykb on 2007-05-02 04:18:02:

    1. icomment:
      
      
      File Added - 227417: ioleak.patch
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  4. Ticket change [df2ebd39a7] (rid 114974) by kennykb on 2007-05-02 11:44:37:

    1. closedate changed to: "2007-05-02T04:44:37"
    2. closer changed to: "kennykb"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  5. Ticket change [8271b8b901] (rid 117239) by dgp on 2007-05-11 01:47:01:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Re-open;  Request a review to
      see if any part of this needs
      backporting for 8.4.15.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dgp"
  6. Ticket change [25aa3ddd3b] (rid 88210) by ferrieux on 2011-09-24 05:19:18:

    1. icomment:
      Is that still valid after recent leak hunts ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [b52b2e85db] (rid 257767) by serhiy.storchaka on 2026-10-12 17:12:56:

    1. icomment:
      Both issues were fixed in [41c23d142b] (8.5a6). With 9.1, valgrind shows no
      leaks from channels left open at exit; what remains is due to
      <code><nowiki>[exit]</nowiki></code> not unwinding the stack, see [3400944].
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"