Subject: Re: Big Problem with the new changes to libc
To: Bernd Ernesti <netbsd@arresum.inka.de>
From: Frank van der Linden <frank@fwi.uva.nl>
List: current-users
Date: 02/27/1995 00:58:46
Quoting Bernd Ernesti,

> Hello,

> 3. I installed this new libc in /usr/lib and next time I boot I get some core
> dumps from: update, syslogd and sendmail.

I had the same problems (tcsh, amongst others, dumping core). There appears to
be a typo in /usr/src/lib/libc/net/gethostnamadr.c:

*** gethostnamadr.c.orig	Sun Feb 26 10:26:28 1995
--- gethostnamadr.c	Sun Feb 26 23:43:30 1995
***************
*** 441,447 ****
  	/* THIS STUFF IS INTERNET SPECIFIC */
  	h_addr_ptrs[0] = (char *)&host_addr;
  	h_addr_ptrs[1] = NULL;
! 	*((u_int32_t *)host_addr.s_addr) = inet_addr(p);
  	host.h_addr_list = h_addr_ptrs;
  	host.h_length = sizeof(u_int32_t);
  	host.h_addrtype = AF_INET;
--- 441,447 ----
  	/* THIS STUFF IS INTERNET SPECIFIC */
  	h_addr_ptrs[0] = (char *)&host_addr;
  	h_addr_ptrs[1] = NULL;
! 	*((u_int32_t *)&host_addr.s_addr) = inet_addr(p);
  	host.h_addr_list = h_addr_ptrs;
  	host.h_length = sizeof(u_int32_t);
  	host.h_addrtype = AF_INET;

After fixing that, I had no more problems.

- Frank