alpha/62321: ntpd gives unaligned access errors on alpha
Sten Spans
sten at blinkenlights.nl
Tue Feb 3 15:30:04 PST 2004
>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 at 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:
More information about the freebsd-alpha
mailing list