|
From: Harlan S. <st...@ww...> - 2004-10-20 08:31:42
|
Thanks for the response, Dimitri. >> 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? Stand-alone, ntpd starts and runs for a while. When I send it a particular query it drops core. Under valgrind, ntpd does not start. It says that /etc/ntp.drift is corrupt (which is not true) and that it cannot find /.rnd (but that file is there). Neither of these problems happen when ntpd is started stand-alone. I run each of these cases as root. >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 Yes, I am expecting this, and it works stand-alone, but not under valgrind. >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. No, I run as root, and have tried: # /usr/local/bin/ntpd -gNd runs until I trigger the bug # valgrind -tool=memcheck /usr/local/bin/ntpd -gNd stops real soon after complaining about /etc/ntp.drift and /.rnd >See also: > http://www.eecis.udel.edu/~mills/ntp/html/build/hints/winnt.html This is under linux - what should I be looking for there? > http://www.google.com/search?q=%2F.rnd+OpenSSL+NTP > http://monkey.org/openbsd/archive/ports/0112/msg00169.html I checked there too, but didn't see anything relevant. What am I missing? H |