upstream-bug 293 describes an issue where glibc would detect a double-free (and valgrind will find a segfault). Find the patch to the net-libs/ldns-1.6.3 ebuild and ldns-1.6.3 sources attached. Reproducible: Always
Created attachment 215330 [details, diff] patch to ebuild
Created attachment 215331 [details, diff] patch to sources
http://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=293
Fixed in cvs. thanks.