Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2004 15:26:51 -0800 (PST)
From:      Sten Spans <sten@blinkenlights.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   alpha/62321: ntpd gives unaligned access errors on alpha
Message-ID:  <200402032326.i13NQpYb017725@www.freebsd.org>
Resent-Message-ID: <200402032330.i13NU15f077882@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62321
>Category:       alpha
>Synopsis:       ntpd gives unaligned access errors on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-alpha
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 03 15:30:01 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sten Spans
>Release:        5.2-CURRENT
>Organization:
>Environment:
FreeBSD deepthought.blinkenlights.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Tue Feb  3 14:43:41 CET 2004     root@deepthought.blinkenlights.nl:/usr/obj/usr/src/sys/DEEPTHOUGHT  alpha

>Description:
running ntpd -n ( nofork ) produces unaligned access errors on alpha.
The problem is present in ntpd/ntp_io.c line 449. where nasty things
are being done. This problem is fixed in ntp 4.2.0 ( from ports ).

I found that netbsd had this problem as well and has a oneliner which fixes the problem.
>How-To-Repeat:
run ntpd -n on an alpha,
ntpd -d -d -d -d -n will give nice debugging info.
>Fix:
http://mail-index.netbsd.org/netbsd-bugs/2002/01/02/0001.html

--- /usr/src/dist/ntp/ntpd/ntp_io.c.orig	Wed Jan  2 17:13:12 2002
+++ /usr/src/dist/ntp/ntpd/ntp_io.c	Wed Jan  2 17:13:55 2002
@@ -447,5 +447,5 @@
 		}
 # endif /* SYS_WINNT */
-		ifreq = *ifr;
+		bcopy(ifr, &ifreq, sizeof(ifreq));
 		inter_list[i].flags = 0;
 		/* is it broadcast capable? */
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402032326.i13NQpYb017725>