Artifacts Associated With Ticket 1710825fffffffff
Ticket change [97aca1b73d] (rid 110480) by kennykb on 2007-05-01 21:18:02:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kennykb"
- subsystem initialized to: "25. Channel System"
- title initialized to:
"Still reachable" memory leaks in Tcl I/O subsystem
- type initialized to: "Bug"
Add attachment "ioleak.patch" [5457b9292e] (rid 93932) by kennykb on 2007-05-02 04:18:02.
Ticket change [19f6366cac] (rid 122891) by kennykb on 2007-05-02 04:18:02:
- icomment:
File Added - 227417: ioleak.patch
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [df2ebd39a7] (rid 114974) by kennykb on 2007-05-02 11:44:37:
- closedate changed to: "2007-05-02T04:44:37"
- closer changed to: "kennykb"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [8271b8b901] (rid 117239) by dgp on 2007-05-11 01:47:01:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [25aa3ddd3b] (rid 88210) by ferrieux on 2011-09-24 05:19:18:
- icomment:
Is that still valid after recent leak hunts ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [b52b2e85db] (rid 257767) by serhiy.storchaka on 2026-10-12 17:12:56:
- 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].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment: