This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/6694] auto_free seems to trigger *** glibc detected *** stap: double free or corruption (fasttop)


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]