Version: 3.3.1 (using KDE 3.5.9) Compiler: gcc 3.4.6 OS: Linux Installed from: Gentoo Packages I'm trying to track down where some sockets are being leaked and reported as: ==31143== Open pf-10 socket 192: ==31143== <inherited from parent> Which isn't that useful, unfortunately. Protocol family 10 is AF_INET6 - is there any chance support for providing information on AF_INET6 sockets could be added to coregrind/m_syswrap/syswrap-generic.c:getsockdetails() ?
Possibly hack up a patch yourself and send it? Personally I have no understanding of anything but the most basic networking stuff.
I had a look at it before and it looks reasonably straightforward. I'll give it a go.
Created attachment 29786 [details] Work-in-progress patch based on dietlibc code This patch "works for me", but I'm sure it needs tidying up. Let me know what needs to be done. The bulk of the additional code is taken from dietlibc/libcruft/inet_ntop.c The ipv6 address compression works, but isn't the best implementation. It'll compress the following (ipv6.google.com): 2001:4860:0000:1001:0000:0000:0000:0068 To this: 2001:4860::1001:0:0:0:68 Whereas ping6 compresses it to: 2001:4860:0:1001::68 I could work up a patch with the glibc equivalent if you'd like.
Note that Debian seems to have included this patch. The Debian bug report also contains a test case. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733119
Tided up and committed as r13836.