|
2003-12-17
| ||
| 16:15 | • Closed ticket [839519ffff]: last cwd objPtr not released plus 6 other change... artifact: 42e676f88f user: vasiljevic | |
|
2003-11-15
| ||
| 21:59 | • Ticket [839519ffff]: 4 changes artifact: 82e86ef6cf user: vasiljevic | |
|
2003-11-10
| ||
| 21:09 | • New ticket [839519ffff]. artifact: 99fdea8434 user: hobbs | |
last cwd objPtr not released
Closed839519ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-11-10 21:09:08
Get valgrind (it's free) and do the above, like so: [on linux] configure --disable-shared --enable-symbols make CFLAGS_WARNING=-DPURIFY ; # add -DPURIFY valgrind ./tclsh ; # may neeed TCL_LIBRARY set cd .. exit You should find that the TclFSNormalizeAbsolutePath (IIRC) is listed as a leaker (you may find many, but that's one). It always happens when the function that calls it next goes into FsUpdateCwd.
vasiljevicplain2003-11-15 21:59:38
Logged In: YES user_id=95086 Well, I do have Purify and when I compile tclsh w/o thread support and run Purify against it, it barks at the cwdPathPtr. If I, however, compile with TCL_MEM_DEBUG it barks no more and all is clean on app exit ( = no mem leaks). What I suppose is that mem debuggers get somehow confused with some constructs and produce invalid reports. I have stepped thru the related code with the debugger and was not able to see any problems in hanling the cwdPathPtr so far.
vasiljevicplain2003-12-17 16:15:16
Logged In: YES user_id=95086 GOTCHA! There was a leak! I have fixed it in the cvs head and in the 8.4 branch.
Log in (anonymous is fine) to add a comment.