From owner-freebsd-stable Tue Dec 25 10:56:45 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tara.freenix.org (keltia.freenix.org [62.4.20.87]) by hub.freebsd.org (Postfix) with ESMTP id 86E5737B405 for ; Tue, 25 Dec 2001 10:56:42 -0800 (PST) Received: by tara.freenix.org (Postfix/TLS, from userid 101) id 1E9F92AAF; Tue, 25 Dec 2001 19:56:42 +0100 (CET) Date: Tue, 25 Dec 2001 19:56:42 +0100 From: Ollivier Robert To: James Housley Cc: stable@freebsd.org Subject: Re: NTPD dumps core in 4.5-PRERELEASE Message-ID: <20011225195642.B711@tara.freenix.org> References: <3C269EE2.7820ACBC@Thehousleys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C269EE2.7820ACBC@Thehousleys.net>; from jim@thehousleys.net on Sun, Dec 23, 2001 at 10:20:02PM -0500 X-Operating-System: FreeBSD 5.0-CURRENT K6-3D/266 & 2x PIII/800 SMP Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG According to James Housley: > 12/22 5am EST. 1 CVSup 12/23 5am EST. The laptop is dumps core on > startup only with 12/22 & 12/23. I don't believe this was doing this > before 4.1.0. If I re-run with the exact same parameters after the boot > is finished all is well. Attached is the dmesg.boot and some debug > information from the core file. This is reproduceable with every reboot > on this one machine. When you boot this machine, do you have access to the IP addresses of all your ntp.conf servers/peers ? > 1553 if (!peer->reach || (peer->stratum > 1 && > 1554 peer->refid == > (gdb) > 1555 peer->dstadr->sin.sin_addr.s_addr) || > 1556 peer->stratum >= STRATUM_UNSPEC || > 1557 (root_distance(peer) >= MAXDISTANCE + 2 * > 1558 clock_phi * ULOGTOD(sys_poll))) ... > (gdb) p peer > $1 = (struct peer *) 0x80829a8 > (gdb) p (struct peer *) peer > $2 = (struct peer *) 0x80829a8 > (gdb) p *(struct peer *) peer > $3 = {next = 0x0, ass_next = 0x0, srcadr = {sin_len = 0 '\000', > sin_family = 2 '\002', sin_port = 31488, sin_addr = {s_addr = 98175}, > sin_zero = "\000\000\000\000\000\000\000"}, dstadr = 0x0, associd = 59212, It is pretty obvious that your problem is that dstadr is NULL so peer->dstadr->whatever will segfault. I have a laptop very similar (Z600TEK). Although it is running current, I'll try to reproduce this. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 5.0-CURRENT #80: Sun Jun 4 22:44:19 CEST 2000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message