Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-04-14
23:26 • Closed ticket [1940433fff]: definitely lost mem with tcl8.4.19rc0 plus 8 oth... artifact: fef1a06eda user: dgp
23:21 • Ticket [1940433fff]: 4 changes artifact: c5e327e9b6 user: dgp
05:20 • Ticket [1940433fff]: 4 changes artifact: 8cf1ac16ce user: pointsman
03:54 • Ticket [1940433fff]: 1 change artifact: ba7238aad0 user: pointsman
03:52 • Ticket [1940433fff]: 4 changes artifact: 0cc3ff1a7c user: pointsman
2008-04-12
02:45 • Ticket [1940433fff]: 1 change artifact: 60bd1c8b98 user: pointsman
02:45 • Ticket [1940433fff]: 4 changes artifact: 9a0cbf5713 user: pointsman
02:45 • Add attachment valgrind.out to ticket [1940433fff] artifact: 50ee0ad533 user: pointsman
2008-04-11
19:45 • New ticket [1940433fff] definitely lost mem with tcl8.4.19rc0. artifact: c68efe531f user: pointsman

definitely lost mem with tcl8.4.19rc0

Closed / Fixed1940433fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-04-11 19:45:28
tcl8.4.19rc0, build with --enable-symbols, added -DPURIFY

In all.tcl:
tcltest::singleProcess 1 (because on linux)
(and before the return at the end of the file):
proc exit args {}

If I run:

valgrind --num-callers=60 --leak-check=full --show-reachable=yes ./tcltest ../tests/all.tcl -file compExpr-old.test -match 'compExpr-old-1.12'

valgrind returns:

(see attachement or http://paste.tclers.tk/871
pointsmanplain2008-04-12 02:45:28
File Added - 274200: valgrind.out
pointsman Ticket [1940433fff]: 1 change [History diff]2008-04-12 02:45:58
pointsmanplain2008-04-14 03:52:28
Logged In: YES 
user_id=13222
Originator: YES

Tcl head (as of 2009-04-13) doesn't has this leak.
pointsman Ticket [1940433fff]: 1 change [History diff]2008-04-14 03:54:02
pointsmanplain2008-04-14 05:20:25
Logged In: YES 
user_id=13222
Originator: YES

Tcl 8.4.18 doesn't has this leak, too. Looks new.
dgpplain2008-04-14 23:21:54
Logged In: YES 
user_id=80530
Originator: NO


Patch for 1899164 is to blame.

Patch was originally developed for 8.5,
where compilation errors no longer happen.

Backport to 8.4 neglected to cover the
exit from Tcl_ExprObj() on a compile error.
dgpplain2008-04-14 23:26:09
Logged In: YES 
user_id=80530
Originator: NO


fix committed.

will retag 8.4.19 and
cut new RC.
Log in (anonymous is fine) to add a comment.

Attachments: