|
From: <st...@ma...> - 2004-10-20 01:15:16
|
Hi, I've got a problem where the latest ntpd drops core on a Fedora Core 1 linux box. The problem looks like a stack overflow. This problem has not appeared on any other machine/OS. I fired up the latest ntpd under valgrind-2.1.2 and noticed the program behaved differently than it did when it run stand-alone (it exits saying it can't find /.rnd while doing some openssl init stuff - it runs fine stand-alone). I upgraded openssl to 0.9.7d. I upgraded valgrind to 2.2.0. The problem remains the same. Suggestions on how I can proceed would be welcome. I'm not currently on the mailing list - please keep me on the Cc: line. Thanks... H |
|
From: Dimitri Papadopoulos-O. <pap...@sh...> - 2004-10-20 08:13:01
|
Hi, > I've got a problem where the latest ntpd drops core on a Fedora Core 1 > linux box. The problem looks like a stack overflow. > > This problem has not appeared on any other machine/OS. > > I fired up the latest ntpd under valgrind-2.1.2 and noticed the program > behaved differently than it did when it run stand-alone (it exits saying > it can't find /.rnd while doing some openssl init stuff - it runs fine > stand-alone). I'm not sure I understand. Does the latest ntpd drop core or run fine stand-alone? When you write "runs fine", do you mean that initialization proceeds normally, but that a stack overflow may occur later on? It seems OpenSSL may occasionally try to read a $HOME/.rnd or .rnd file. See for example: http://www.openssl.org/docs/apps/rand.html Maybe ntpd is started by a different user with valgrind as opposed to without valgrind, or some commands that need to be run prior to ntpd are not run, or maybe the environment variables are different. See also: http://www.eecis.udel.edu/~mills/ntp/html/build/hints/winnt.html http://www.google.com/search?q=%2F.rnd+OpenSSL+NTP http://monkey.org/openbsd/archive/ports/0112/msg00169.html Dimitri |