[PATCH] Fix resource leak in resolver (bug 19257)
Florian Weimer
fweimer@redhat.com
Tue Feb 9 13:10:00 GMT 2016
On 02/09/2016 02:00 PM, Andreas Schwab wrote:
> Florian Weimer <fweimer@redhat.com> writes:
>
>> On 02/09/2016 12:40 PM, Andreas Schwab wrote:
>>> The number of currently defined nameservers is stored in ->nscount,
>>> whereas ->_u._ext.nscount is set by __libc_res_nsend only after local
>>> initializations.
>>
>> Is it possible to test this without a chroot?
>
> I don't know how. You need at least one IPv6 nameserver in
> /etc/resolv.conf to trigger the leak.
I tried static linking to override _IO_new_fopen, but I get this:
/home/fweimer/src/gnu/glibc/build/libc.a(iofopen.o): In function
`_IO_new_fopen':
/home/fweimer/src/gnu/glibc/git/libio/iofopen.c:97: multiple definition
of `_IO_new_fopen'
t.o:/tmp/t.c:14: first defined here
Any other ideas?
Thanks,
Florian
More information about the Libc-alpha
mailing list