Skip to content
Tcl Source Code View Ticket
Login

View Ticket

memory leak in tclIO.c

Closed / Fixed217988ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:47:11
OriginalBugID: 6248 Bug
Version: 8.3.2
SubmitDate: '2000-09-11'
LastModified: '2000-09-11'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: ericm
RelatedBugIDs: 6246
OS: Solaris
FixedDate: '2000-09-11'
ClosedDate: '2000-10-25'


Name:
rob mayoff

ReproducibleScript:
Run this in tclsh:

while 1 { close [open /dev/null r] }

In another window, you can use ps or top to watch tclsh's memory grow without bound.

ObservedBehavior:
When a channel is closed, the ChannelState struct is never freed.  Every time you close a channel, you leak 120 bytes.

DesiredBehavior:
Bounded memory consumption.
welch Closed ticket [217988ffff]. [History diff]2000-10-26 08:12:10
dgp Ticket [217988ffff]: 3 changes [History diff]2001-04-14 03:22:21
Log in (anonymous is fine) to add a comment.