On Sat, Jul 11, 2009 at 07:10:50PM +1000, John Marshall wrote: > On Fri, 10 Jul 2009, 16:24 +0300, Kostik Belousov wrote: > > > > Thank you, I see what is going on. Please, try the following patch. > > Thank you Kostik, > > I applied your patch to vm_map.c and rebuilt the kernel. Now the > process crashes instead - but I think it is getting beyond the point > where it was hanging. > > (gdb) core ntpd.core > Core was generated by `ntpd'. > Program terminated with signal 11, Segmentation fault. > Loaded symbols for /lib/libm.so.5 > Loaded symbols for /lib/libcrypto.so.5 > Loaded symbols for /lib/libkvm.so.4 > Loaded symbols for /usr/lib/libelf.so.1 > Loaded symbols for /usr/lib/librt.so.1 > Loaded symbols for /lib/libmd.so.4 > Loaded symbols for /lib/libc.so.7 > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x28091f3f in _rtld_thread_init () from /libexec/ld-elf.so.1 > (gdb) bt > #0 0x28091f3f in _rtld_thread_init () from /libexec/ld-elf.so.1 > #1 0x2808360b in dlsym () from /libexec/ld-elf.so.1 > #2 0x28083fd6 in dlopen () from /libexec/ld-elf.so.1 > #3 0x2831b3a8 in _nsdbtaddsrc () from /lib/libc.so.7 > #4 0x28315546 in __ns_samedomain () from /lib/libc.so.7 > #5 0x283159f8 in _nsyyparse () from /lib/libc.so.7 > #6 0x2831ac8a in nsdispatch () from /lib/libc.so.7 > #7 0x2830d2c9 in getservbyname_r () from /lib/libc.so.7 > #8 0x2830d31b in getservbyname_r () from /lib/libc.so.7 > #9 0x2830cc84 in gethostname () from /lib/libc.so.7 > #10 0x2830cd87 in getservbyname () from /lib/libc.so.7 > #11 0x28309cf3 in freeaddrinfo () from /lib/libc.so.7 > #12 0x28309d38 in freeaddrinfo () from /lib/libc.so.7 > #13 0x2830b7c6 in getaddrinfo () from /lib/libc.so.7 > #14 0x0804bf53 in getnetnum () > #15 0x0804c5dc in getconfig () > #16 0x08052565 in ntpdmain () > #17 0x08052750 in main () > (gdb) > > I rebuilt ntpd on the patched kernel and it still produces this crash. This is obviously different issue. Besiddes, backtrace does not make much sense. You need to rebuild and install lib/libc, lib/libthr and libexec/rtld-elf with debugging symbols. Easiest way to do this is to enter into each listed src/ subdirectory and do make obj make clean make depend make all install DEBUG_FLAGS=-g and then start ntpd again and get the backtrace, might by "bt full" will be more informative. BTW, do you use NIS ?
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC