This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/434] Probable bug: pd->res being left uninitialised
- From: "thiago dot macieira at kdemail dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 11 Oct 2004 18:44:35 -0000
- Subject: [Bug nptl/434] Probable bug: pd->res being left uninitialised
- References: <20041008235135.434.thiago.macieira@kdemail.net>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From thiago dot macieira at kdemail dot net 2004-10-11 18:44 -------
More investigation revealed that mmap(2) isn't at fault here. The problem lies
in the fact that NPTL caches freed stacks for later usage, but does not
reinitialise the structure in get_cached_stack (nptl/allocatestack.c).
Therefore, pd->res isn't cleared out, making res_maybe_init believe it has
already been initialised -- when that isn't the case.
Another solution would be to have res_thread_freeres (resolver/res_init.c)
clear the struct as well.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=434
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.