From owner-freebsd-alpha Tue Jan 22 7:40:39 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from where.org (under.where.org [198.163.215.5]) by hub.freebsd.org (Postfix) with SMTP id C56BE37B400 for ; Tue, 22 Jan 2002 07:40:34 -0800 (PST) Received: (qmail 23777 invoked from network); 22 Jan 2002 15:40:29 -0000 Received: from blh617oey308c.ab.hsia.telus.net (HELO ICSLAP38) (142.59.43.190) by under.where.org with SMTP; 22 Jan 2002 15:40:29 -0000 Message-ID: <01d001c1a35b$18e189b0$877ba8c0@ICSLAP38> From: "Fenrir" To: References: <20020122141403.A11773@i2.informatik.rwth-aachen.de> <20020122145652.G71841@cicely8.cicely.de> Subject: Re: alpha/33841: ifconfig causes unaligned accesses on Alpha Date: Tue, 22 Jan 2002 08:40:18 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 I may have communicated this wrong.. My snmpd doesn't crash (dump core) but the connection dies.. It looks something like this: enterprises.ucdavis.memory.memIndex.0 = 0 enterprises.ucdavis.memory.memErrorName.0 = swap enterprises.ucdavis.memory.memTotalSwap.0 = 1572608 enterprises.ucdavis.memory.memAvailSwap.0 = 1572608 enterprises.ucdavis.memory.memTotalReal.0 = 682136 enterprises.ucdavis.memory.memAvailReal.0 = 293272 enterprises.ucdavis.memory.memTotalFree.0 = 293656 Timeout: No Response from xxx.xxx.xxx.xxx This happens when doing an snmpwalk both locally and from remote. I ran snmpd in debug but the output is huge.. Would this output help anyone? I can see if I can sort through the log file and trim it to only the point of the error if someone would like. I am normally running snmpd with the option "-p 162@xxx.xxx.xxx.xxx" I'm not much of a programmer, so I dont know how much I can help, but if anyone wants me to test something (that doesn't result in the machine crashing) I will help out as much as I can. Rob ----- Original Message ----- From: "Bernd Walter" To: "Volker Stolz" Cc: Sent: Tuesday, January 22, 2002 6:56 AM Subject: Re: alpha/33841: ifconfig causes unaligned accesses on Alpha > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message