[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#230281: libc6: Various programs segfault in __ns_samename in libresolv.so.2



On Thu, Jan 29, 2004 at 08:05:35PM +0200, Jouni K Seppänen wrote:
> Package: libc6
> Version: 2.3.2.ds1-10
> Severity: normal
> 
> Various programs die with a segmentation fault in __ns_samename when
> given a nonexistent network address. For example, "ping qwerty", "finger
> @qwerty", and "wget http://qwerty/"; do this (when no host "qwerty"
> exists). They do manage to print out an error message from the failed
> query, and the segfault happens when they try to exit.
> 
> Here's a small program that segfaults:
> 
> ------------------------------
> #include <netdb.h>
> #include <stdlib.h>
> 
> int main() 
> {
>   gethostbyname("qwerty");
>   exit(1);
> }
> ------------------------------

Please tell us more about your system.  This does not happen on other
installations of current libc6, and I've never seen it before. 
Anything strange in nsswitch.conf?  Verify that the right copies of all
nss libraries are loaded?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: