[uClibc] gethostbyname_r not properly creating hostent result when using dns ?
vapier at gentoo.org
Mon Aug 2 12:44:23 UTC 2004
while playing with an uclibc chroot, i noticed that a basic portage operation
was resulting in a segfault ... i narrowed it down to a simple python
python -c 'import socket; print socket.gethostbyname_ex("wh0rd.org");'
the gethostbyname_r() call itself is not segfaulting, but the memory returned
in the h_aliases array seems to be wrong ...
i wrote a simple .c program to replicate the error (find attached) ... the
program runs just fine in a glibc environment, and if i stick 'wh0rd.org'
into my /etc/hosts file, everything works in uclibc too ...
i also verified that dns works just fine in the uclibc env with the domain by
running `dig wh0rd.org` and getting the correct results
any insight would be great :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 996 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20040802/e7e3ac2a/attachment.c
More information about the uClibc