🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Memory leak detecting

Started by
2 comments, last by Lord Chaos 23 years ago
I''m writing a multiplayer matchmaking/chat/game server for Linux, and have run into some problems. What memory leak detecting tools/libs do you guys use? My server runs in multiple processes AND threads, and uses MySQL. I''ve tried memprof, but it crashes in the call to mysql_init() as far as I can tell, and ccmalloc and dmalloc reports very strange leaks in pthread and mysql calls. Is the solution to compile my own mysql/pthread libs with debugging symbols and use these? (since I guess the distributed binaries are stripped).
-------------------------------------------------------------LGPL 3D engine - http://www.sourceforge.net/projects/realityengine
Advertisement
I use ElectricFence, and am really, really happy with it. It has its shortcomings, but in general, it''s great. It catches most of the tough array overwrite bugs in my game. The rest, well, that''s what testing''s for.

-ben.c
Where can I get this?
Visit:http://www.evildawncrew.comAll things which are worth beeing done, are worth beeing donw well.
ftp://ftp.perens.com/pub/ElectricFence/

ben.c

This topic is closed to new replies.

Advertisement