Re: Memory leak in TORCS?

Bernhard Wymann <[email protected]>
Newsgroups gmane.games.torcs.devel
Organization wytec
Message-ID <[email protected]>
Hi Daniele

>> I know Valgrind and already used it for debugging some of my personal
>> projects.
>> I would be glad to help in debugging the game.
>> I did some run with valgrind but I  was not able to resolve symbols... I
>> suppose this is due to dynamic modules.
> 
> If you compile torcs with the --enable-debug configure option, then the 
> symbols should be available.
> 
>> Do you know how to solve this problems (or there is any documentation
>> about that...).

To be able to gather info about the modules I just commented out dlclose, look 
at linuxspec.cpp, search for "valgrind". Of course you cannot sport this way 
problems which happen on unloading the modules, but you can track their 
behaviour. Maybe this is not necessary anymore (with newer valgind versions), I 
do not know.

Hope this helps.

Bernhard



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.