From owner-freebsd-alpha@FreeBSD.ORG Tue Feb 3 15:30:04 2004 Return-Path: Delivered-To: freebsd-alpha@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BE4A16A4CE for ; Tue, 3 Feb 2004 15:30:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1506843D3F for ; Tue, 3 Feb 2004 15:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i13NU1FR077885 for ; Tue, 3 Feb 2004 15:30:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i13NU15f077882; Tue, 3 Feb 2004 15:30:01 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 3 Feb 2004 15:30:01 -0800 (PST) Resent-Message-Id: <200402032330.i13NU15f077882@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-alpha@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sten Spans Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65EAB16A56B for ; Tue, 3 Feb 2004 15:26:53 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD1BD43D41 for ; Tue, 3 Feb 2004 15:26:51 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i13NQpdL017726 for ; Tue, 3 Feb 2004 15:26:51 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i13NQpYb017725; Tue, 3 Feb 2004 15:26:51 -0800 (PST) (envelope-from nobody) Message-Id: <200402032326.i13NQpYb017725@www.freebsd.org> Date: Tue, 3 Feb 2004 15:26:51 -0800 (PST) From: Sten Spans To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: alpha/62321: ntpd gives unaligned access errors on alpha X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 23:30:04 -0000 >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: