Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-08-20
20:40 • Closed ticket [2043634fff]: 8.5.4rc0 mem leaks plus 7 other changes artifact: fd7138f712 user: dgp
2008-08-12
21:57 • Ticket [2043634fff]: 1 change artifact: 9ef576b108 user: dgp
21:55 • Ticket [2043634fff]: 4 changes artifact: 5efadc69eb user: dgp
03:42 • Ticket [2043634fff]: 6 changes artifact: 1d3bbba911 user: andreas_kupries
2008-08-10
06:05 • Ticket [2043634fff]: 6 changes artifact: d27d696d58 user: msofer
2008-08-09
07:18 • Ticket [2043634fff]: 4 changes artifact: cc39b4dc33 user: pointsman
07:18 • Add attachment valgrind.out to ticket [2043634fff] artifact: e09ea9e257 user: pointsman
00:18 • New ticket [2043634fff] 8.5.4rc0 mem leaks. artifact: aa0f4d8b5e user: pointsman

8.5.4rc0 mem leaks

Closed2043634fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-08-09 00:18:16
With 8.5.4rc0, --enable-symbols --disable-threads, -DPURIFY added. If I run the test suite under valgrind (with proc exit args {} at the end) there's a lot of noise. 

It's clear to me, that this valgrind output isn't maximal
helpful. There are probably only a few spots, if ever, which may be used to write 'real' leaking scripts. Though, I can't show such a script atm. Anyway, memory hygiene of 8.5.4rc0 isn't as bright as it was in earlier versions.
pointsmanplain2008-08-09 07:18:17
File Added - 287786: valgrind.out
msoferplain2008-08-10 06:05:26
Logged In: YES 
user_id=148712
Originator: NO

The script
while {1} {
catch {
proc p x {
set y [string tolower $x]
return "$x:$y"
}
procbodytest::proc t x p
} result
incr i
}

leaks a CmdFrame when sourced (but not when run from the command line), both in 8.5 and 8.6. The
stack trace is at http://paste.tclers.tk/1130, the growth can easily be seen in top.
andreas_kupriesplain2008-08-12 03:42:05
Logged In: YES 
user_id=75003
Originator: NO


Ok, a fix was committed to the 8.5 branch.
Porting to 8.4 and 8.6 now.
Same test triggers.
Same fix works.
Committed.

It is unclear to me if I can close the bug now, or if there are other problems to handle, just by someone else?
Lowering prio. Unassigning.
dgpplain2008-08-12 21:55:32
Logged In: YES 
user_id=80530
Originator: NO


RC1 now available for testing.
dgp Ticket [2043634fff]: 1 change [History diff]2008-08-12 21:57:04
dgpplain2008-08-20 20:40:34
Logged In: YES 
user_id=80530
Originator: NO


time for testing RCs is past.

If there's still memleaks in
the 8.5.4 release, open a new
ticket.
Log in (anonymous is fine) to add a comment.

Attachments: