[pkg-ntp-maintainers] Bug#802768: ntpd crashes at start up with "Out of Memory" emergency syslog message

Aleksi Suhonen debian-reportbug-2015 at ssd.axu.tm
Fri Oct 23 11:34:28 UTC 2015


Package: ntp
Version: 1:4.2.8p4+dfsg-1
Severity: important

Dear Maintainer,

    * What led up to the situation?

Upgraded package from 1:4.2.8p3+dfsg-1 to 1:4.2.8p4+dfsg-1 on
a couple of machines.  Now the daemon won't start. Syslog shows this:

Oct 22 14:43:24 humma ntpd[903]: proto: precision = 0.628 usec (-21)
Oct 22 14:43:24 humma ntpd[903]: Listen and drop on 0 v6wildcard [::]:123
Oct 22 14:43:24 humma ntpd[903]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Oct 22 14:43:24 humma ntpd[903]: Listen normally on 2 lo 127.0.0.1:123
Oct 22 14:43:24 humma ntpd[903]: Listen normally on 3 lo [::1]:123
Oct 22 14:43:24 humma ntpd[903]: Listening on routing socket on fd #20 
for interface updates
Oct 22 14:43:24 humma ntpd[903]: Unable to listen for broadcasts, no 
broadcast interfaces available

Kern.log shows this:

Oct 22 14:43:24 humma t of memory [903]

And all interactive terminals show the full "Out of memory [<pid>]" message.

-- System Information:
Debian Release: stretch/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ntp depends on:
ii  adduser      3.113+nmu3
ii  dpkg         1.18.3
ii  libc6        2.19-22
ii  libcap2      1:2.24-12
ii  libedit2     3.1-20150325-1
ii  libopts25    1:5.18.6~pre3-3
ii  libssl1.0.0  1.0.2d-1
ii  lsb-base     9.20150917
ii  netbase      5.3

Versions of packages ntp recommends:
ii  perl  5.20.2-6

Versions of packages ntp suggests:
pn  ntp-doc  <none>

-- Configuration Files:
/etc/init.d/ntp changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions
DAEMON=/usr/sbin/ntpd
PIDFILE=/var/run/ntpd.pid
test -x $DAEMON || exit 5
if [ -r /etc/default/ntp ]; then
	. /etc/default/ntp
fi
if [ -e /var/lib/ntp/ntp.conf.dhcp ]; then
	NTPD_OPTS="$NTPD_OPTS -c /var/lib/ntp/ntp.conf.dhcp"
fi
LOCKFILE=/var/lock/ntpdate
lock_ntpdate() {
	if [ -x /usr/bin/lockfile-create ]; then
		lockfile-create $LOCKFILE
		lockfile-touch $LOCKFILE &
		LOCKTOUCHPID="$!"
	fi
}
unlock_ntpdate() {
	if [ -x /usr/bin/lockfile-create ] ; then
		kill $LOCKTOUCHPID
		lockfile-remove $LOCKFILE
	fi
}
RUNASUSER=ntp
UGID=$(getent passwd $RUNASUSER | cut -f 3,4 -d:) || true
if test "$(uname -s)" = "Linux"; then
         NTPD_OPTS="$NTPD_OPTS -u $UGID"
fi
case $1 in
	start)
		log_daemon_msg "Starting NTP server" "ntpd"
		if [ -z "$UGID" ]; then
			log_failure_msg "user \"$RUNASUSER\" does not exist"
			exit 1
		fi
		lock_ntpdate
   		taskset 1 start-stop-daemon --start --quiet --oknodo --pidfile 
$PIDFILE --startas $DAEMON -- -p $PIDFILE $NTPD_OPTS
		status=$?
		unlock_ntpdate
		log_end_msg $status
   		;;
	stop)
		log_daemon_msg "Stopping NTP server" "ntpd"
   		start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
		log_end_msg $?
		rm -f $PIDFILE
   		;;
	restart|force-reload)
		$0 stop && sleep 2 && $0 start
   		;;
	try-restart)
		if $0 status >/dev/null; then
			$0 restart
		else
			exit 0
		fi
		;;
	reload)
		exit 3
		;;
	status)
		status_of_proc $DAEMON "NTP server"
		;;
	*)
		echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
		exit 2
		;;
esac

/etc/ntp.conf changed:
rlimit memlock 0
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server ntp1.axu.tm
server ntp2.axu.tm
server ntp3.axu.tm
server ntp5.axu.tm
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
restrict 127.0.0.1
restrict ::1
disable auth
broadcastclient


-- no debconf information

-- 
	Aleksi Suhonen

	() ascii ribbon campaign
	/\ support plain text e-mail



More information about the pkg-ntp-maintainers mailing list