From owner-freebsd-alpha Tue Jan 22 6: 0:42 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 15B2637B41A for ; Tue, 22 Jan 2002 06:00:25 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g0MDx1U12467; Tue, 22 Jan 2002 14:59:01 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g0MDurZ9073099; Tue, 22 Jan 2002 14:56:53 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id g0MDurW16646; Tue, 22 Jan 2002 14:56:53 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.6/8.11.6) id g0MDuqo73941; Tue, 22 Jan 2002 14:56:52 +0100 (CET) (envelope-from ticso) Date: Tue, 22 Jan 2002 14:56:52 +0100 From: Bernd Walter To: Volker Stolz Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: alpha/33841: ifconfig causes unaligned accesses on Alpha Message-ID: <20020122145652.G71841@cicely8.cicely.de> References: <20020122141403.A11773@i2.informatik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020122141403.A11773@i2.informatik.rwth-aachen.de> User-Agent: Mutt/1.3.23i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jan 22, 2002 at 02:14:03PM +0100, Volker Stolz wrote: > Fenrir wrote: > >sysctl -w machdep.unaligned_print=0 > >machdep.unaligned_print: 1 -> 0 > > >This has fixed the problem with the unaligned access. (But my snmpd still > >dies at the same spot.. seems it was unrelated.. ohwell!) > > This just disables the messages, but doesn't fix the problem. > I guess that snmpd is suffering indeed at the same spot because it > walks the list of network devices as ifconfig does. On my machine, this > fails only for ppp0, but I really cannot understand why a struct can be > unaligned in the middle of it. All necessary padding/whatever should have > been automagically done by the compiler. It's more than one struct concatenated via sysctl. One of them is not n * 8 in length. But the unaligned access gets fixed so it's only a big performance problem. If your snmpd dies you should have a core dump and at least a stacktrace to show. I will setup a testbox at the end of this week and will fix the ifconfig issue unless someone else did. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message