Hi,
Beat Bolli:
Package: ntp-server Version: 1:4.2.0a+stable-4 Followup-For: Bug #299572
Thanks. Please test whether -6 fixes this problem.
People: If you're stracing a server, use "strace -f -s 300 -o FILE PROGRAM", then send FILE as a (possibly gzipped) attachment unless you're very sure that your mail client doesn't word-wrap.
Otherwise (a) the fork() call will make your trace useless, (b) any syslog strings or other important information the server writes will be truncated, and/or (c) program output will be interspersed with strace output, which makes analysis harder than necessary.
On my PowerBook it looks fine now!
I tried on one of the servers that has problems, and there, I still have segfaults, while the mentioned cvs version works fine. I attach an strace.
Thinking again of this, I want to point out two things. First, this might be a different story, namely the mentioned bug #272511. Second, this server runs sarge with the last dist-upgrade probably several months back, because it is difficult to take it down. So I am not sure of how much use this is to you, because perhaps a dist-upgrade would fix the ntpd segfault.
Anyway, thanks a lot! Harald Staub
2138 execve("/usr/sbin/ntpd", ["/usr/sbin/ntpd", "-n"], [/* 28 vars */]) = 0 2138 uname({sys="Linux", node="ezmp1", ...}) = 0 2138 brk(0) = 0x8b3f000 2138 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x20040000 2138 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 2138 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 2138 open("/etc/ld.so.cache", O_RDONLY) = 3 2138 fstat64(3, {st_mode=S_IFREG|0644, st_size=25318, ...}) = 0 2138 old_mmap(NULL, 25318, PROT_READ, MAP_PRIVATE, 3, 0) = 0x20039000 2138 close(3) = 0 2138 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 2138 open("/lib/libm.so.6", O_RDONLY) = 3 2138 read(3, "[EMAIL PROTECTED] \0\7\0(\0\35\0\34\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\340\0\0\0\340\0\0\0\5\0\0\0\4\0\0\0\3\0\0\0\30\5\2\0\30\5\2\0\30\5\2\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0+\5\2\0+\5\2\0\5\0\0\0\0\20\0\0\1\0\0\0000\5\2\0000\25\2\0000\25\2\0|\1\0\0\300\1\0\0\6\0\0\0\0\20\0\0\2\0\0\0`\5\2\0`\25\2\0`\25\2\0\340\0\0\0\340\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0\24\1\0\0\24\1\0\0\24\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0\20\0\0"..., 512) = 512 2138 fstat64(3, {st_mode=S_IFREG|0644, st_size=134464, ...}) = 0 2138 old_mmap(NULL, 136944, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xdc1000 2138 old_mmap(0xde2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0xde2000 2138 close(3) = 0 2138 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 2138 open("/usr/lib/i686/cmov/libcrypto.so.0.9.7", O_RDONLY) = 3 2138 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\300\2\0004\0\0\0\220\262\17\0\0\0\0\0004\0 \0\5\0(\0\27\0\26\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\231\16\0\f\231\16\0\5\0\0\0\0\20\0\0\1\0\0\0\0\240\16\0\0\240\16\0\0\240\16\0\340\21\1\0\230L\1\0\6\0\0\0\0\20\0\0\2\0\0\0\30\254\17\0\30\254\17\0\30\254\17\0\330\0\0\0\330\0\0\0\6\0\0\0\4\0\0\0P\345td\360\230\16\0\360\230\16\0\360\230\16\0\34\0\0\0\34\0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\4\0\0\0\5\10\0\0\346\n\0\0\0\0\0\0\253\n\0\0\0\0\0\0;\7\0\0\0\0\0\0\0\0\0\0E\7\0\0\221\n\0\0\0\0\0\0\0\0\0\0\363\6"..., 512) = 512 2138 fstat64(3, {st_mode=S_IFREG|0644, st_size=1029672, ...}) = 0 2138 old_mmap(NULL, 1043608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x111000 2138 old_mmap(0x1fb000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xea000) = 0x1fb000 2138 old_mmap(0x20d000, 11416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20d000 2138 close(3) = 0 2138 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 2138 open("/lib/libcap.so.1", O_RDONLY) = 3 2138 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\r\0\0004\0\0\0\240\'\0\0\0\0\0\0004\0 \0\4\0(\0\26\0\25\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17%\0\0\17%\0\0\5\0\0\0\0\20\0\0\1\0\0\0 %\0\0 5\0\0 5\0\0\334\1\0\0004\4\0\0\6\0\0\0\0\20\0\0\2\0\0\0\270%\0\0\2705\0\0\2705\0\0\310\0\0\0\310\0\0\0\6\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0C\0\0\0F\0\0\0\0\0\0\0B\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0E\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0#\0\0\0<\0\0\0\0\0\0\0\0\0\0\0006\0\0\0007\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0=\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0001\0\0\0009\0\0\0>\0\0\000"..., 512) = 512 2138 fstat64(3, {st_mode=S_IFREG|0644, st_size=11024, ...}) = 0 2138 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x20038000 2138 old_mmap(NULL, 14676, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x55b000 2138 old_mmap(0x55e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x55e000 2138 close(3) = 0 2138 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 2138 open("/lib/libc.so.6", O_RDONLY) = 3 2138 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1\0004\0\0\0\330\362\22\0\0\0\0\0004\0 \0\10\0(\0007\0006\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0\310`\22\0\310`\22\0\310`\22\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10s\22\0\10s\22\0\5\0\0\0\0\20\0\0\1\0\0\0 s\22\0 \203\22\0 \203\22\0\250u\0\0\4\240\0\0\6\0\0\0\0\20\0\0\2\0\0\0\360\344\22\0\360\364\22\0\360\364\22\0\330\0\0\0\330\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0004\1\0\0004\1\0\0004\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0P\345td\334`\22\0\334`\22\0\334`\22\0,\22\0\0,\22\0\0"..., 512) = 512 2138 fstat64(3, {st_mode=S_IFREG|0644, st_size=1244016, ...}) = 0 2138 old_mmap(NULL, 1254180, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x210000 2138 old_mmap(0x338000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x338000 2138 old_mmap(0x340000, 8996, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x340000 2138 close(3) = 0 2138 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 2138 open("/lib/libdl.so.2", O_RDONLY) = 3 2138 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\34\0\0004\0\0\0\200\"\0\0\0\0\0\0004\0 \0\7\0(\0\32\0\31\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\340\0\0\0\340\0\0\0\5\0\0\0\4\0\0\0\3\0\0\0\235\36\0\0\235\36\0\0\235\36\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\260\36\0\0\260\36\0\0\5\0\0\0\0\20\0\0\1\0\0\0\0 \0\0\0 \0\0\0 \0\0\230\1\0\0\270\1\0\0\6\0\0\0\0\20\0\0\2\0\0\0\f \0\0\f \0\0\f \0\0\340\0\0\0\340\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0\24\1\0\0\24\1\0\0\24\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0"..., 512) = 512 2138 fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0 2138 old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x9ff000 2138 old_mmap(0xa01000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0xa01000 2138 close(3) = 0 2138 munmap(0x20039000, 25318) = 0 2138 umask(0) = 022 2138 umask(022) = 0 2138 getuid32() = 0 2138 gettimeofday({1110988362, 657394}, NULL) = 0 2138 socket(PF_FILE, SOCK_DGRAM, 0) = 3 2138 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 2138 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0 2138 brk(0) = 0x8b3f000 2138 brk(0x8b60000) = 0x8b60000 2138 brk(0) = 0x8b60000 2138 time([1110988362]) = 1110988362 2138 open("/etc/localtime", O_RDONLY) = 4 2138 fstat64(4, {st_mode=S_IFREG|0644, st_size=685, ...}) = 0 2138 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2003f000 2138 read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0\0\0\0x\0\0\0\4\0\0\0\t\311$\307\360\311r\202`\312\26&\220\312\341\3`\313\366\10\220\314\300\345`\25#\353\220\26\23\334\220\27\3\315\220\27\363\276\220\30\343\257\220\31\323\240\220\32\303\221\220\33\274\275\20\34\254\256\20\35\234\237\20\36\214\220\20\37|\201\20 lr\20!\\c\20\"LT\20#<E\20$,6\20%\34\'\20&\f\30\20\'\5C\220\'\3654\220(\345%\220)\325\26\220*\305\7\220+\264\370\220,\244\351\220-\224\332\220.\204\313\220/t\274\2200d\255\2201]\331\0202r\264\0203=\273\0204R\226\0205\35\235\02062x\0206\375\177\0208\33\224\2208\335a\020"..., 4096) = 685 2138 close(4) = 0 2138 munmap(0x2003f000, 4096) = 0 2138 getpid() = 2138 2138 rt_sigaction(SIGPIPE, {0x2e3fd0, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 send(3, "<29>Mar 16 16:52:42 ntpd[2138]: ntpd [EMAIL PROTECTED]:4.2.0a+stable-6-r Wed Mar 16 00:42:28 CET 2005 (1)", 96, 0) = 96 2138 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0 2138 getrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 2138 setrlimit(RLIMIT_STACK, {rlim_cur=200*1024, rlim_max=RLIM_INFINITY}) = 0 2138 mlockall(MCL_CURRENT|MCL_FUTURE) = 0 2138 rt_sigaction(SIGHUP, {0x8052010, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGINT, {0x8052010, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGQUIT, {0x8052010, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGTERM, {0x8052010, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGBUS, {0x8052010, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGUSR1, {0x8052060, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGUSR2, {0x8052060, [], SA_RESTORER, 0x239678}, {SIG_DFL}, 8) = 0 2138 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 2138 --- SIGSEGV (Segmentation fault) @ 0 (0) --- 2138 +++ killed by SIGSEGV +++