[Bug translator/6694] auto_free seems to trigger *** glibc detected *** stap: double free or corruption (fasttop)
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Jun 25 20:04:00 GMT 2008
------- Additional Comments From fche at redhat dot com 2008-06-25 12:45 -------
As a matter of policy, systemtap core has allowed itself to keep its own
allocated C/C++ heap memory objects alive, without explicit free()s. This
is because the (programming) effort required to properly garbage-collect
everything far exceeds the benefit of saving a few megabytes of
user-space memory. I advise that auto_free{} and similar efforts be taken
out, and that explicit free()s only be done if known to be absolutely safe.
(Elfutils-allocated memory *is* freed, since it is large and fairly
easy to clean up.)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6694
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list