weeeeeeird libc/ntpdate behaviour?
`ntpdate' is actually working, but only when I give it a DQ IP address.
Any time I give it an hostname it seems to get stuck in
:0xe0144c40 in __pthread_compare_and_swap () from /lib/libpthread.so.0
according to gdb.
ntpdate with debugging symbols:
--->
Program received signal SIGINT, Interrupt.
0xe0144c40 in __pthread_compare_and_swap () from /lib/libpthread.so.0
(gdb) backtrace
#0 0xe0144c40 in __pthread_compare_and_swap () from /lib/libpthread.so.0
#1 0xe0144afc in __pthread_lock () from /lib/libpthread.so.0
#2 0xe0142aa0 in pthread_mutex_lock () from /lib/libpthread.so.0
#3 0xe00f7c1c in gethostbyname () from /lib/libc.so.6
#4 0x133ac in getnetnum (host=0xefffeea1 "playdough", num=0xefffebe4) at
ntpdate.c:1873
#5 0x12b9c in addserver (serv=0xefffeea1 "playdough") at ntpdate.c:1294
#6 0x116ac in ntpdatemain (argc=3, argv=0xefffedb4) at ntpdate.c:484
#7 0x11254 in main (argc=3, argv=0xefffedb4) at ntpdate.c:295
<---
I also tried compiling libc on my box. First problem: didn't have enough
swap, so I made and activated a 64MB swap file.
Second problem:
--->
gcc nsswitch.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings
-fstrict-aliasing -g -fPIC -I../include -I.
-I/usr/local/packages/glibc-2.1.2/sparc-linux/obj/nss -I.. -I../libio
-I/usr/local/packages/glibc-2.1.2/sparc-linux/obj
-I../sysdeps/sparc/sparc32/elf -I../crypt/sysdeps/unix
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/sparc/sparc32
-I../linuxthreads/sysdeps/sparc -I../sysdeps/unix/sysv/linux/sparc/sparc32
-I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32
-I../sysdeps/wordsize-32 -I../sysdeps/sparc/fpu -I../sysdeps/sparc
-I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc-lib/sparc-linux/2.95.2/include -isystem
/usr/src/linux-2.2.13//include -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DPIC -o
/usr/local/packages/glibc-2.1.2/sparc-linux/obj/nss/nsswitch.os
gcc: Internal compiler error: program cc1 got fatal signal 10
make[3]: ***
[/usr/local/packages/glibc-2.1.2/sparc-linux/obj/nss/nsswitch.os] Error 1
make[3]: Leaving directory
`/usr/local/packages/glibc-2.1.2/glibc-2.1.2/nss'
make[2]: *** [nss/subdir_lib] Error 2
make[2]: Leaving directory `/usr/local/packages/glibc-2.1.2/glibc-2.1.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/usr/local/packages/glibc-2.1.2/sparc-linux/obj'
<---
signal 10==SIGBUS
What would have caused that?
Oh, same version of ntpdate compiled on i386 runs without any problem.
-- Ferret no baka
Reply to: