This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/434] Probable bug: pd->res being left uninitialised


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]