Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2002 14:56:52 +0100
From:      Bernd Walter <ticso@cicely8.cicely.de>
To:        Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: alpha/33841: ifconfig causes unaligned accesses on Alpha
Message-ID:  <20020122145652.G71841@cicely8.cicely.de>
In-Reply-To: <20020122141403.A11773@i2.informatik.rwth-aachen.de>
References:  <20020122141403.A11773@i2.informatik.rwth-aachen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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