Created attachment 4226 [details] /etc/hosts file for uClibc test I have found second bug in gethostbyname implementation... and theese bugs are serious guys, I don't know why they are still in uClibc ... Buildroot with uClibc 0.9.33, i386/i586, optimized by size, gcc 4.4.6 How to reproduce: 1) use /etc/hosts from attachment (what is special - it has no new line in last string) 2) compile and run this test: -------------------------------------- #include <sys/socket.h> #include <netinet/in.h> #include <unistd.h> #include <netdb.h> int main(void) { int i; struct hostent *h; for(i=1;i<100;i++) { printf("i=%i\n",i); h = gethostbyname( "aaaaaaaaaaaaaaaaaaaaa.com"); } } -------------------------------------- 3) Usually it fails with: i=1 i=2 Segmentation fault
I cannot reproduce this. First, try gcc-4.6 or later. If that does not help, try DODEBUG=y and let us know if you still experience the problem.
Sorry, I mistaken, this bug was in dietlibc, not in uClibc. Ticket closed.