Trouble with gethostbyname()
I use Debian woody, and after updating last weekend my mess started.
on some reasons the box startet allocating memory as much as it could get.
ie. sometimes syslog caused this.
by compiling the newest Kernel I noticed that the dnsdomainname also caused
a crash. Running it in gdb the backtrace showed that it was somewhere
beyound gethostbyname() in the libc.
At the moment I have libc2.2.3 and Kernel 2.4.8, it also happens with
2.4.7, I doubt it's the libc that does something bad...
I Just updated to 2.4.9 and nothing changed.
The package-Version of libc is :
2.2.3-9
I am using pcmcia-tools *.25 for the network-Connection,
it happened also with the *28'er Version.
it doesn't happen realy predictable, sometimes everything works fine.
i'll now type you a copy of a backtrace of syslogd having alocatet
already 186MB Ram of my 256MB's...
#0 * in memchr () from /lib/libc.so.6
#1 * in ?? ()
#2 * in _IO_getline () *libc*
#3 * in fgets_unlocked () *libc*
#4 * in _nss_files_endhostent () from lib/libnss_files.so.2
#5 * in _nss_files_gethostbyname_r () *nss*
#6 * in gethostbyname_r () *libc*
#7 * in gethostbyname () *libc*
#8 * in strcpy ()
#9 0x0 in ?? ()
Willi
Reply to: