Problems with valgrind and dl_cleanup

Richard Braun rbraun at sceen.net
Thu Jun 30 08:41:01 UTC 2011


Hello,

When debugging the memory leaks of an application which dlopen()s some
shared objects with valgrind, the backtraces show some unresolved
symbols at exit time, located in those plugins. This is very likely
because dl_cleanup() is registered as a destructor. It would make more
sense to me if this behaviour was optional. Is there any particular
reason (other than "noone did it") why this isn't so ?

-- 
Richard Braun


More information about the uClibc mailing list