Maybe off topic?

Sam Lantinga slouken@devolution.com
Thu Mar 25 21:10:00 GMT 1999


Is there any way to generate a stack trace from within a running program?
i.e. save a backtrace in memory and periodically flush it to disk?
(On ix86 Linux)

I'm tracking down memory leaks, and they are very sporadic.  It would
help to build a few frame stack trace into the debug malloc tool, and
then print that stack trace along with the unfreed memory info.

If there's somewhere else I should take this, please let me know. :)

Thanks!
	-Sam Lantinga				(slouken@devolution.com)

Lead Programmer, Loki Entertainment Software
--
Author of Simple DirectMedia Layer -
	http://www.devolution.com/~slouken/SDL/
--


More information about the Gcc mailing list