From owner-freebsd-alpha@FreeBSD.ORG Sun Nov 14 21:26:41 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2463F16A4CE for ; Sun, 14 Nov 2004 21:26:41 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6358643D2F for ; Sun, 14 Nov 2004 21:26:40 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [192.168.1.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id AEA863E437 for ; Sun, 14 Nov 2004 22:26:38 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id 43D8F27D; Sun, 14 Nov 2004 22:26:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id 36557139 for ; Sun, 14 Nov 2004 22:26:38 +0100 (CET) Date: Sun, 14 Nov 2004 22:26:38 +0100 (CET) From: Sten Spans To: freebsd-alpha@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: alpha and em mtu 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: Sun, 14 Nov 2004 21:26:41 -0000 I upgraded my ds10 with an intel gigabit card, and encountered the following issue (RELENG_5): deepthought# ifconfig em0 mtu 1501 deepthought# fatal kernel trap: trap entry = 0x4 (unaligned access fault) faulting va = 0xfffffc001847a02e opcode = 0x28 register = 0x1 pc = 0xfffffc00004cd0f8 ra = 0xfffffc00004cce24 sp = 0xfffffe00187a9af0 curthread = 0xfffffc001f3a70e0 pid = 14, comm = swi1: net [thread 100006] Stopped at tcp_input+0x368: srl t0,#0x2,t0 db> trace tcp_input() at tcp_input+0x368 ip_input() at ip_input+0x9fc netisr_processqueue() at netisr_processqueue+0xac swi_net() at swi_net+0xf0 ithread_loop() at ithread_loop+0x1d4 fork_exit() at fork_exit+0x100 exception_return() at exception_return --- root of call graph --- deepthought# ifconfig em0 mtu 9014 deepthought# fatal kernel trap: trap entry = 0x4 (unaligned access fault) faulting va = 0xfffffc0018c5202e opcode = 0x28 register = 0x1 pc = 0xfffffc00004cd0f8 ra = 0xfffffc00004cce24 sp = 0xfffffe00187a9af0 curthread = 0xfffffc001f3a70e0 pid = 14, comm = swi1: net [thread 100006] Stopped at tcp_input+0x368: srl t0,#0x2,t0 db> trace tcp_input() at tcp_input+0x368 ip_input() at ip_input+0x9fc netisr_processqueue() at netisr_processqueue+0xac swi_net() at swi_net+0x148 ithread_loop() at ithread_loop+0x1d4 fork_exit() at fork_exit+0x100 exception_return() at exception_return --- root of call graph --- The box crashes on the first incoming tcp packet, icmp is fine. mpsafenet=0 and net.inet.tcp.sack.enable=0 did not seem to help. I have an intel box (fbsd5) with the same batch em0 which supports large mtu's just fine. tcpdump: 22:20:29.219776 IP 192.168.1.4.35993 > 192.168.1.3.23: S 2509718255:2509718255(0) win 17948 0x0000: 0003 477a 3ef6 000d 5616 e035 0800 4510 ..Gz>...V..5..E. 0x0010: 003c f426 4000 4006 c32d c0a8 0104 c0a8 .<.&@.@..-...... 0x0020: 0103 8c99 0017 9597 42ef 0000 0000 a002 ........B....... 0x0030: 461c 3ba9 0000 0204 230e 0402 080a 098d F.;.....#....... 0x0040: b6c9 0000 0000 0103 0302 .......... 22:20:29.220148 IP 192.168.1.3.23 > 192.168.1.4.35993: R 0:0(0) ack 2509718256 win 0 0x0000: 000d 5616 e035 0003 477a 3ef6 0800 4510 ..V..5..Gz>...E. 0x0010: 0028 00d8 4000 4006 b690 c0a8 0103 c0a8 .(..@.@......... 0x0020: 0104 0017 8c99 0000 0000 9597 42f0 5014 ............B.P. 0x0030: 0000 c740 0000 0000 0000 0000 ...@........ 22:20:44.098530 IP 192.168.1.4.35994 > 192.168.1.3.23: S 2521517724:2521517724(0) win 17948 0x0000: 0003 477a 3ef6 000d 5616 e035 0800 4510 ..Gz>...V..5..E. 0x0010: 003c be76 4000 4006 f8dd c0a8 0104 c0a8 .<.v@.@......... 0x0020: 0103 8c9a 0017 964b 4e9c 0000 0000 a002 .......KN....... 0x0030: 461c f525 0000 0204 230e 0402 080a 098d F..%....#....... 0x0040: f0ea 0000 0000 0103 0302 .......... 22:20:47.097687 IP 192.168.1.4.35994 > 192.168.1.3.23: S 2521517724:2521517724(0) win 17948 0x0000: 0003 477a 3ef6 000d 5616 e035 0800 4510 ..Gz>...V..5..E. 0x0010: 003c be78 4000 4006 f8db c0a8 0104 c0a8 .<.x@.@......... 0x0020: 0103 8c9a 0017 964b 4e9c 0000 0000 a002 .......KN....... 0x0030: 461c e96d 0000 0204 230e 0402 080a 098d F..m....#....... 0x0040: fca2 0000 0000 0103 0302 .......... 22:20:49.097336 arp who-has 192.168.1.3 tell 192.168.1.4 0x0000: 0003 477a 3ef6 000d 5616 e035 0806 0001 ..Gz>...V..5.... 0x0010: 0800 0604 0001 000d 5616 e035 c0a8 0104 ........V..5.... 0x0020: 0000 0000 0000 c0a8 0103 .......... Any clues ? -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 08:17:01 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6565C16A4CE for ; Mon, 15 Nov 2004 08:17:01 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87F3F43D48 for ; Mon, 15 Nov 2004 08:17:00 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAF8Gx7P073019 for ; Mon, 15 Nov 2004 10:16:59 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 57481-04 for ; Mon, 15 Nov 2004 10:16:58 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAF8Gwji073016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 15 Nov 2004 10:16:58 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iAF8GxAH030826 for alpha@FreeBSD.org; Mon, 15 Nov 2004 10:16:59 +0200 (EET) (envelope-from ru) Date: Mon, 15 Nov 2004 10:16:59 +0200 From: Ruslan Ermilov To: alpha@FreeBSD.org Message-ID: <20041115081659.GA30262@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua Subject: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 08:17:01 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi there, I needed the unused PCI VGA card for testing another machine, so I pulled it out from my AlphaPC 164SX, and that gave me an instant panic on boot: : Timecounter "i8254" frequency 1193182 Hz quality 0 : Timecounter "alpha" frequency 533183689 Hz quality 800 : Timecounters tick every 0.976 msec : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.c:431 : cpuid =3D 0 : KDB: enter: panic : [thread 100004] : Stopped at kdb_enter+0x48: or zero,zero,zero : db>=20 Putting it back in results in normal behavior (no panic). Any hints? : FreeBSD 6.0-CURRENT #0: Mon Oct 4 22:12:33 EEST 2004 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmGX7qRfpzJluFF4RAgVUAJwI3Ws2UY82LHPF1WmJFDaZx68E9gCfXviq loBMgQu0QUX+Hf6xcuCKKYk= =gJVA -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7-- From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 11:02:07 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94EA016A4CE for ; Mon, 15 Nov 2004 11:02:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69CB943D2D for ; Mon, 15 Nov 2004 11:02:07 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id iAFB27Ai074562 for ; Mon, 15 Nov 2004 11:02:07 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iAFB26eQ074556 for freebsd-alpha@freebsd.org; Mon, 15 Nov 2004 11:02:06 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 15 Nov 2004 11:02:06 GMT Message-Id: <200411151102.iAFB26eQ074556@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-alpha@FreeBSD.org Subject: Current problem reports assigned to you 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: Mon, 15 Nov 2004 11:02:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/10] alpha/30486 alpha AlphaServer DS10 floppy access is broken o [2001/09/10] alpha/30487 alpha Floppy access on AlphaServer DS20 solid l o [2003/02/05] alpha/47952 alpha DEFPA causes machine check with V5.0-rele o [2003/11/10] alpha/59116 alpha [ntfs] mount_ntfs of a Windows 2000-forma o [2004/01/26] alpha/61940 alpha Can't disklabel new disk from FreeBSD/alp o [2004/01/27] alpha/61973 alpha Machine Check on boot-up of AlphaServer 2 f [2004/06/06] alpha/67626 alpha X crashes an alpha machine, resulting reb 7 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/01/27] alpha/24663 alpha Console output gets scribbled into /var/l o [2001/02/22] alpha/25284 alpha PC164 won't reboot with graphics console o [2001/06/07] alpha/27930 alpha NE2000 not supported on FreeBSD Alpha 4.x o [2001/06/07] alpha/27933 alpha Time jitter under load on FreeBSD 4.3 alp f [2001/07/29] alpha/29299 alpha FreeBSD 4.3 Alpha + Tekram SCSI adapter p o [2001/10/01] alpha/30970 alpha Ensoniq 1371 (Creative chipset) does not o [2002/01/24] alpha/34232 alpha rpc.statd throws alignment errors o [2002/05/13] alpha/38031 alpha osf1.ko not loaded during boot-time of li p [2002/11/12] alpha/45240 alpha pstat -f column headings misaligned on Al o [2003/02/25] alpha/48676 alpha Changing the baud rate of serial consoles o [2003/04/12] alpha/50868 alpha fd0 floppy device is not mapped into /dev o [2004/05/10] alpha/66478 alpha unexpected machine check: panic for 4.9, o [2004/06/13] alpha/67903 alpha hw.chipset.memory: 1099511627776 - thats o [2004/09/23] alpha/72024 alpha LONG_MIN / 1 sends a "Floating exception" 14 problems total. From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 18:52:36 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA9FC16A4CE for ; Mon, 15 Nov 2004 18:52:36 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45B6743D2F for ; Mon, 15 Nov 2004 18:52:36 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30667 invoked from network); 15 Nov 2004 18:52:35 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Nov 2004 18:52:33 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAFIqEld075648; Mon, 15 Nov 2004 13:52:22 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-alpha@FreeBSD.org Date: Mon, 15 Nov 2004 11:11:11 -0500 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411151111.11950.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Robert Watson Subject: Re: alpha and em mtu 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: Mon, 15 Nov 2004 18:52:36 -0000 On Sunday 14 November 2004 04:26 pm, Sten Spans wrote: > I upgraded my ds10 with an intel gigabit card, > and encountered the following issue (RELENG_5): > > deepthought# ifconfig em0 mtu 1501 > deepthought# > fatal kernel trap: > > trap entry = 0x4 (unaligned access fault) > faulting va = 0xfffffc001847a02e > opcode = 0x28 > register = 0x1 > pc = 0xfffffc00004cd0f8 > ra = 0xfffffc00004cce24 > sp = 0xfffffe00187a9af0 > curthread = 0xfffffc001f3a70e0 > pid = 14, comm = swi1: net > > [thread 100006] > Stopped at tcp_input+0x368: srl t0,#0x2,t0 > db> trace > tcp_input() at tcp_input+0x368 Can you do 'gdb kernel.debug' in your kernel build directory and then do 'l *tcp_input+0x368' to determine which source line it is panic'ing at? This might help us figure out what the unaligned access is so it can be fixed. If you don't have a debug kernel, please build one and reproduce the panic to get the updated 'tcp_input+0xblah' line and then do the gdb command with the updated 'tcp_input+0xblah' bit. Thanks. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 18:52:38 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B61A916A4CE for ; Mon, 15 Nov 2004 18:52:38 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6998643D2D for ; Mon, 15 Nov 2004 18:52:38 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18043 invoked from network); 15 Nov 2004 18:52:38 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Nov 2004 18:52:37 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAFIqEle075648; Mon, 15 Nov 2004 13:52:28 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-alpha@FreeBSD.org Date: Mon, 15 Nov 2004 11:12:49 -0500 User-Agent: KMail/1.6.2 References: <20041115081659.GA30262@ip.net.ua> In-Reply-To: <20041115081659.GA30262@ip.net.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411151112.49535.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: alpha@FreeBSD.org cc: Ruslan Ermilov Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 18:52:38 -0000 On Monday 15 November 2004 03:16 am, Ruslan Ermilov wrote: > Hi there, > > I needed the unused PCI VGA card for testing another machine, > so I pulled it out from my AlphaPC 164SX, and that gave me an > > instant panic on boot: > : Timecounter "i8254" frequency 1193182 Hz quality 0 > : Timecounter "alpha" frequency 533183689 Hz quality 800 > : Timecounters tick every 0.976 msec > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.c:431 > : cpuid = 0 > : KDB: enter: panic > : [thread 100004] > : Stopped at kdb_enter+0x48: or zero,zero,zero > : db> > > Putting it back in results in normal behavior (no panic). > Any hints? Sounds like something is messing with free'd memory through a stale pointer and happens to be trashing that spin mutex as a result. Not sure on how to track it down however. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 18:52:39 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B96A16A4D6 for ; Mon, 15 Nov 2004 18:52:38 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB1743D31 for ; Mon, 15 Nov 2004 18:52:38 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18043 invoked from network); 15 Nov 2004 18:52:38 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Nov 2004 18:52:37 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAFIqEle075648; Mon, 15 Nov 2004 13:52:28 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-alpha@FreeBSD.org Date: Mon, 15 Nov 2004 11:12:49 -0500 User-Agent: KMail/1.6.2 References: <20041115081659.GA30262@ip.net.ua> In-Reply-To: <20041115081659.GA30262@ip.net.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411151112.49535.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: alpha@FreeBSD.org cc: Ruslan Ermilov Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 18:52:39 -0000 On Monday 15 November 2004 03:16 am, Ruslan Ermilov wrote: > Hi there, > > I needed the unused PCI VGA card for testing another machine, > so I pulled it out from my AlphaPC 164SX, and that gave me an > > instant panic on boot: > : Timecounter "i8254" frequency 1193182 Hz quality 0 > : Timecounter "alpha" frequency 533183689 Hz quality 800 > : Timecounters tick every 0.976 msec > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.c:431 > : cpuid = 0 > : KDB: enter: panic > : [thread 100004] > : Stopped at kdb_enter+0x48: or zero,zero,zero > : db> > > Putting it back in results in normal behavior (no panic). > Any hints? Sounds like something is messing with free'd memory through a stale pointer and happens to be trashing that spin mutex as a result. Not sure on how to track it down however. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 18:55:16 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB97316A4CE; Mon, 15 Nov 2004 18:55:16 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCBB143D31; Mon, 15 Nov 2004 18:55:15 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAFItEZF035039; Mon, 15 Nov 2004 20:55:14 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 31427-19; Mon, 15 Nov 2004 20:55:14 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAFItCvR034935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Nov 2004 20:55:14 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iAFItEOf070702; Mon, 15 Nov 2004 20:55:14 +0200 (EET) (envelope-from ru) Date: Mon, 15 Nov 2004 20:55:14 +0200 From: Ruslan Ermilov To: John Baldwin Message-ID: <20041115185514.GA65300@ip.net.ua> References: <20041115081659.GA30262@ip.net.ua> <200411151112.49535.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <200411151112.49535.jhb@FreeBSD.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: alpha@freebsd.org Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 18:55:16 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 15, 2004 at 11:12:49AM -0500, John Baldwin wrote: > On Monday 15 November 2004 03:16 am, Ruslan Ermilov wrote: > > Hi there, > > > > I needed the unused PCI VGA card for testing another machine, > > so I pulled it out from my AlphaPC 164SX, and that gave me an > > > > instant panic on boot: > > : Timecounter "i8254" frequency 1193182 Hz quality 0 > > : Timecounter "alpha" frequency 533183689 Hz quality 800 > > : Timecounters tick every 0.976 msec > > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.c:= 431 > > : cpuid =3D 0 > > : KDB: enter: panic > > : [thread 100004] > > : Stopped at kdb_enter+0x48: or zero,zero,zero > > : db> > > > > Putting it back in results in normal behavior (no panic). > > Any hints? >=20 > Sounds like something is messing with free'd memory through a stale point= er=20 > and happens to be trashing that spin mutex as a result. Not sure on how = to=20 > track it down however. >=20 The funny thing is that it happens in exactly this same place, and only when I pull the VGA card out. ;) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmPuSqRfpzJluFF4RAnyMAJ9BepQfSMed1B5qCY8X2LP8Wf/s0QCfZxYi isNA+JEIl7Qvwhlu9JY0LGA= =69Dr -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk-- From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 19:10:57 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5633916A4CE; Mon, 15 Nov 2004 19:10:57 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C91C543D1D; Mon, 15 Nov 2004 19:10:56 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (localhost [127.0.0.1]) by ns1.xcllnt.net (8.13.1/8.13.1) with ESMTP id iAFJAu3x082740; Mon, 15 Nov 2004 11:10:56 -0800 (PST) (envelope-from marcel@ns1.xcllnt.net) Received: (from marcel@localhost) by ns1.xcllnt.net (8.13.1/8.13.1/Submit) id iAFJAuUF082739; Mon, 15 Nov 2004 11:10:56 -0800 (PST) (envelope-from marcel) Date: Mon, 15 Nov 2004 11:10:56 -0800 From: Marcel Moolenaar To: Ruslan Ermilov Message-ID: <20041115191056.GA82702@ns1.xcllnt.net> References: <20041115081659.GA30262@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041115081659.GA30262@ip.net.ua> User-Agent: Mutt/1.4.2.1i cc: alpha@freebsd.org Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 19:10:57 -0000 On Mon, Nov 15, 2004 at 10:16:59AM +0200, Ruslan Ermilov wrote: > Hi there, > > I needed the unused PCI VGA card for testing another machine, > so I pulled it out from my AlphaPC 164SX, and that gave me an > instant panic on boot: > > : Timecounter "i8254" frequency 1193182 Hz quality 0 > : Timecounter "alpha" frequency 533183689 Hz quality 800 > : Timecounters tick every 0.976 msec > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.c:431 > : cpuid = 0 > : KDB: enter: panic > : [thread 100004] > : Stopped at kdb_enter+0x48: or zero,zero,zero > : db> > > Putting it back in results in normal behavior (no panic). > Any hints? Typically only syscons cares about having a VGA adapter. I don't see if you have syscons configured or not, but assume you have. I also don't see it mentioned wether you normally use a serial console or a graphical console. So, it's hard to come up with any good hints. My first guess would be: remove syscons (or remove the hint from /boot/device.hints. Make sure you have a suitable alternative for the console. I forgot if promcons could survive multi-user mode, so you may want to have sio(4) or uart(4) lined up as the console. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 19:34:52 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEDA516A4CE; Mon, 15 Nov 2004 19:34:52 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40FF243D31; Mon, 15 Nov 2004 19:34:50 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [IPv6:2001:960:301:3:a00:20ff:fe85:fa39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id CC0C63E433; Mon, 15 Nov 2004 20:34:48 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id 46AB027D; Mon, 15 Nov 2004 20:34:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id 2E1A1139; Mon, 15 Nov 2004 20:34:48 +0100 (CET) Date: Mon, 15 Nov 2004 20:34:48 +0100 (CET) From: Sten Spans To: John Baldwin In-Reply-To: <200411151111.11950.jhb@FreeBSD.org> Message-ID: References: <200411151111.11950.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Robert Watson cc: freebsd-alpha@FreeBSD.org Subject: Re: alpha and em mtu 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: Mon, 15 Nov 2004 19:34:53 -0000 On Mon, 15 Nov 2004, John Baldwin wrote: > On Sunday 14 November 2004 04:26 pm, Sten Spans wrote: >> I upgraded my ds10 with an intel gigabit card, >> and encountered the following issue (RELENG_5): >> >> deepthought# ifconfig em0 mtu 1501 >> deepthought# >> fatal kernel trap: >> >> trap entry = 0x4 (unaligned access fault) >> faulting va = 0xfffffc001847a02e >> opcode = 0x28 >> register = 0x1 >> pc = 0xfffffc00004cd0f8 >> ra = 0xfffffc00004cce24 >> sp = 0xfffffe00187a9af0 >> curthread = 0xfffffc001f3a70e0 >> pid = 14, comm = swi1: net >> >> [thread 100006] >> Stopped at tcp_input+0x368: srl t0,#0x2,t0 >> db> trace >> tcp_input() at tcp_input+0x368 > > Can you do 'gdb kernel.debug' in your kernel build directory and then do 'l > *tcp_input+0x368' to determine which source line it is panic'ing at? This > might help us figure out what the unaligned access is so it can be fixed. If > you don't have a debug kernel, please build one and reproduce the panic to > get the updated 'tcp_input+0xblah' line and then do the gdb command with the > updated 'tcp_input+0xblah' bit. Thanks. Sure, I anticipated this, but couldn't quite recall how to do the gdb magics :). (gdb) l *tcp_input+0x368 0xfffffc00004cd0f8 is in tcp_input (/usr/src/sys/netinet/tcp_input.c:552). 547 548 /* 549 * Check that TCP offset makes sense, 550 * pull out TCP options and adjust length. XXX 551 */ 552 off = th->th_off << 2; 553 if (off < sizeof (struct tcphdr) || off > tlen) { 554 tcpstat.tcps_rcvbadoff++; 555 goto drop; 556 } The box that talks to the alpha has mtu 9014, this might help to expose the bug. -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 20:21:10 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68D7D16A4CE for ; Mon, 15 Nov 2004 20:21:10 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 327E243D1F for ; Mon, 15 Nov 2004 20:21:10 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 17221 invoked from network); 15 Nov 2004 20:21:08 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Nov 2004 20:21:07 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAFKL4ML076280; Mon, 15 Nov 2004 15:21:05 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Sten Spans Date: Mon, 15 Nov 2004 15:10:07 -0500 User-Agent: KMail/1.6.2 References: <200411151111.11950.jhb@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411151510.07790.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Robert Watson cc: freebsd-alpha@FreeBSD.org Subject: Re: alpha and em mtu 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: Mon, 15 Nov 2004 20:21:10 -0000 On Monday 15 November 2004 02:34 pm, Sten Spans wrote: > On Mon, 15 Nov 2004, John Baldwin wrote: > > On Sunday 14 November 2004 04:26 pm, Sten Spans wrote: > >> I upgraded my ds10 with an intel gigabit card, > >> and encountered the following issue (RELENG_5): > >> > >> deepthought# ifconfig em0 mtu 1501 > >> deepthought# > >> fatal kernel trap: > >> > >> trap entry = 0x4 (unaligned access fault) > >> faulting va = 0xfffffc001847a02e > >> opcode = 0x28 > >> register = 0x1 > >> pc = 0xfffffc00004cd0f8 > >> ra = 0xfffffc00004cce24 > >> sp = 0xfffffe00187a9af0 > >> curthread = 0xfffffc001f3a70e0 > >> pid = 14, comm = swi1: net > >> > >> [thread 100006] > >> Stopped at tcp_input+0x368: srl t0,#0x2,t0 > >> db> trace > >> tcp_input() at tcp_input+0x368 > > > > Can you do 'gdb kernel.debug' in your kernel build directory and then do > > 'l *tcp_input+0x368' to determine which source line it is panic'ing at? > > This might help us figure out what the unaligned access is so it can be > > fixed. If you don't have a debug kernel, please build one and reproduce > > the panic to get the updated 'tcp_input+0xblah' line and then do the gdb > > command with the updated 'tcp_input+0xblah' bit. Thanks. > > Sure, I anticipated this, but couldn't quite > recall how to do the gdb magics :). > > (gdb) l *tcp_input+0x368 > 0xfffffc00004cd0f8 is in tcp_input (/usr/src/sys/netinet/tcp_input.c:552). > 547 > 548 /* > 549 * Check that TCP offset makes sense, > 550 * pull out TCP options and adjust length. XXX > 551 */ > 552 off = th->th_off << 2; > 553 if (off < sizeof (struct tcphdr) || off > tlen) { > 554 tcpstat.tcps_rcvbadoff++; > 555 goto drop; > 556 } > > > The box that talks to the alpha has mtu 9014, this might > help to expose the bug. It may be that the off0 argument is less than the size of an IP header but is not a multiple of 4. Can you try this to see if it prints anything out before crashing: Index: netinet/tcp_input.c =================================================================== RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v retrieving revision 1.255 diff -u -r1.255 tcp_input.c --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 +++ netinet/tcp_input.c 15 Nov 2004 20:09:27 -0000 @@ -497,6 +497,8 @@ ip_stripoptions(m, (struct mbuf *)0); off0 = sizeof(struct ip); } + if (off0 & 0x3 != 0) + printf("%s: off0 %d is misaligned\n", __func__, off0); if (m->m_len < sizeof (struct tcpiphdr)) { if ((m = m_pullup(m, sizeof (struct tcpiphdr))) == 0) { tcpstat.tcps_rcvshort++; -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 20:29:53 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AC5016A4CE; Mon, 15 Nov 2004 20:29:53 +0000 (GMT) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB06343D1D; Mon, 15 Nov 2004 20:29:52 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr2.xs4all.nl (8.12.11/8.12.11) with ESMTP id iAFKTpNe002869; Mon, 15 Nov 2004 21:29:51 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.1/8.12.9) with ESMTP id iAFKToFk059908; Mon, 15 Nov 2004 21:29:51 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.1/8.13.1/Submit) id iAFKTo8R059907; Mon, 15 Nov 2004 21:29:50 +0100 (CET) (envelope-from wb) Date: Mon, 15 Nov 2004 21:29:50 +0100 From: Wilko Bulte To: Ruslan Ermilov Message-ID: <20041115202950.GB59855@freebie.xs4all.nl> References: <20041115081659.GA30262@ip.net.ua> <200411151112.49535.jhb@FreeBSD.org> <20041115185514.GA65300@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20041115185514.GA65300@ip.net.ua> X-OS: FreeBSD 4.10-STABLE X-PGP: finger wilko@freebsd.org User-Agent: Mutt/1.5.6i X-Virus-Scanned: by XS4ALL Virus Scanner cc: alpha@freebsd.org Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 20:29:53 -0000 On Mon, Nov 15, 2004 at 08:55:14PM +0200, Ruslan Ermilov wrote.. > On Mon, Nov 15, 2004 at 11:12:49AM -0500, John Baldwin wrote: > > On Monday 15 November 2004 03:16 am, Ruslan Ermilov wrote: > > > Hi there, > > > > > > I needed the unused PCI VGA card for testing another machine, > > > so I pulled it out from my AlphaPC 164SX, and that gave me an > > > > > > instant panic on boot: > > > : Timecounter "i8254" frequency 1193182 Hz quality 0 > > > : Timecounter "alpha" frequency 533183689 Hz quality 800 > > > : Timecounters tick every 0.976 msec > > > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.= c:431 > > > : cpuid =3D 0 > > > : KDB: enter: panic > > > : [thread 100004] > > > : Stopped at kdb_enter+0x48: or zero,zero,zero > > > : db> > > > > > > Putting it back in results in normal behavior (no panic). > > > Any hints? > >=20 > > Sounds like something is messing with free'd memory through a stale poi= nter=20 > > and happens to be trashing that spin mutex as a result. Not sure on ho= w to=20 > > track it down however. > >=20 > The funny thing is that it happens in exactly this same place, > and only when I pull the VGA card out. ;) 5.3- didn't do that to me for my DS10 when I took the VGA card out. SRM setting CONSOLE=3Dserial right? (should be but heh...) --=20 Wilko Bulte wilko@FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 20:36:18 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 259C916A4CE; Mon, 15 Nov 2004 20:36:18 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ADA143D1D; Mon, 15 Nov 2004 20:36:17 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAFKaDgk042402; Mon, 15 Nov 2004 22:36:13 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 41460-05; Mon, 15 Nov 2004 22:36:13 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAFKaCVD042399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Nov 2004 22:36:12 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iAFKaDgZ035468; Mon, 15 Nov 2004 22:36:13 +0200 (EET) (envelope-from ru) Date: Mon, 15 Nov 2004 22:36:13 +0200 From: Ruslan Ermilov To: Wilko Bulte Message-ID: <20041115203613.GB71810@ip.net.ua> References: <20041115081659.GA30262@ip.net.ua> <200411151112.49535.jhb@FreeBSD.org> <20041115185514.GA65300@ip.net.ua> <20041115202950.GB59855@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <20041115202950.GB59855@freebie.xs4all.nl> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: alpha@freebsd.org Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 20:36:18 -0000 --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 15, 2004 at 09:29:50PM +0100, Wilko Bulte wrote: > On Mon, Nov 15, 2004 at 08:55:14PM +0200, Ruslan Ermilov wrote.. > > On Mon, Nov 15, 2004 at 11:12:49AM -0500, John Baldwin wrote: > > > On Monday 15 November 2004 03:16 am, Ruslan Ermilov wrote: > > > > Hi there, > > > > > > > > I needed the unused PCI VGA card for testing another machine, > > > > so I pulled it out from my AlphaPC 164SX, and that gave me an > > > > > > > > instant panic on boot: > > > > : Timecounter "i8254" frequency 1193182 Hz quality 0 > > > > : Timecounter "alpha" frequency 533183689 Hz quality 800 > > > > : Timecounters tick every 0.976 msec > > > > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igm= p.c:431 > > > > : cpuid =3D 0 > > > > : KDB: enter: panic > > > > : [thread 100004] > > > > : Stopped at kdb_enter+0x48: or zero,zero,zero > > > > : db> > > > > > > > > Putting it back in results in normal behavior (no panic). > > > > Any hints? > > >=20 > > > Sounds like something is messing with free'd memory through a stale p= ointer=20 > > > and happens to be trashing that spin mutex as a result. Not sure on = how to=20 > > > track it down however. > > >=20 > > The funny thing is that it happens in exactly this same place, > > and only when I pull the VGA card out. ;) >=20 > 5.3- didn't do that to me for my DS10 when I took the VGA card > out. >=20 > SRM setting CONSOLE=3Dserial right? (should be but heh...) >=20 No. The console is set to "graphics" in SRM. I'll play with this more tomorrow when I have physical access to hardware. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmRM9qRfpzJluFF4RArxLAJ9ymvGzxnZ+8UaNdyOIosmw//tpMwCdE+Zj 6QiHO/ZkjQCXgnceQSzXm+M= =U/Au -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv-- From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 20:38:12 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CCDC16A4EF for ; Mon, 15 Nov 2004 20:38:11 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 501F543D2F for ; Mon, 15 Nov 2004 20:38:10 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAFKc9LS042451; Mon, 15 Nov 2004 22:38:09 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 41116-18; Mon, 15 Nov 2004 22:38:08 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAFKc8RL042447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Nov 2004 22:38:08 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iAFKc9PZ042791; Mon, 15 Nov 2004 22:38:09 +0200 (EET) (envelope-from ru) Date: Mon, 15 Nov 2004 22:38:09 +0200 From: Ruslan Ermilov To: Marcel Moolenaar Message-ID: <20041115203809.GC71810@ip.net.ua> References: <20041115081659.GA30262@ip.net.ua> <20041115191056.GA82702@ns1.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4ZLFUWh1odzi/v6L" Content-Disposition: inline In-Reply-To: <20041115191056.GA82702@ns1.xcllnt.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: alpha@FreeBSD.org Subject: Re: Removing VGA card panics the box on boot 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: Mon, 15 Nov 2004 20:38:13 -0000 --4ZLFUWh1odzi/v6L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 15, 2004 at 11:10:56AM -0800, Marcel Moolenaar wrote: > On Mon, Nov 15, 2004 at 10:16:59AM +0200, Ruslan Ermilov wrote: > > Hi there, > >=20 > > I needed the unused PCI VGA card for testing another machine, > > so I pulled it out from my AlphaPC 164SX, and that gave me an > > instant panic on boot: > >=20 > > : Timecounter "i8254" frequency 1193182 Hz quality 0 > > : Timecounter "alpha" frequency 533183689 Hz quality 800 > > : Timecounters tick every 0.976 msec > > : panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/netinet/igmp.c:= 431 > > : cpuid =3D 0 > > : KDB: enter: panic > > : [thread 100004] > > : Stopped at kdb_enter+0x48: or zero,zero,zero > > : db>=20 > >=20 > > Putting it back in results in normal behavior (no panic). > > Any hints? >=20 > Typically only syscons cares about having a VGA adapter. I don't see > if you have syscons configured or not, but assume you have. I also > don't see it mentioned wether you normally use a serial console or a > graphical console. So, it's hard to come up with any good hints. >=20 > My first guess would be: remove syscons (or remove the hint from > /boot/device.hints. Make sure you have a suitable alternative for > the console. I forgot if promcons could survive multi-user mode, > so you may want to have sio(4) or uart(4) lined up as the console. >=20 Yeah, I tried removing a hint (sc.0.at), but that didn't help. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --4ZLFUWh1odzi/v6L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmROxqRfpzJluFF4RAtOXAJ9MkuAXkcuUvlAB+YRMFYRmdDhivgCcCGjW uqiibjVuC9ewKn1ojQjKM3o= =L9nB -----END PGP SIGNATURE----- --4ZLFUWh1odzi/v6L-- From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 21:07:40 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0222416A4CE; Mon, 15 Nov 2004 21:07:40 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DA6F43D3F; Mon, 15 Nov 2004 21:07:39 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [192.168.1.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id 0D20E3E437; Mon, 15 Nov 2004 22:07:38 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id 9096627D; Mon, 15 Nov 2004 22:07:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id 8B89E139; Mon, 15 Nov 2004 22:07:37 +0100 (CET) Date: Mon, 15 Nov 2004 22:07:37 +0100 (CET) From: Sten Spans To: John Baldwin In-Reply-To: <200411151510.07790.jhb@FreeBSD.org> Message-ID: References: <200411151510.07790.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Robert Watson cc: freebsd-alpha@FreeBSD.org Subject: Re: alpha and em mtu 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: Mon, 15 Nov 2004 21:07:40 -0000 On Mon, 15 Nov 2004, John Baldwin wrote: > On Monday 15 November 2004 02:34 pm, Sten Spans wrote: >> On Mon, 15 Nov 2004, John Baldwin wrote: >>> >> 548 /* >> 549 * Check that TCP offset makes sense, >> 550 * pull out TCP options and adjust length. XXX >> 551 */ >> 552 off = th->th_off << 2; >> 553 if (off < sizeof (struct tcphdr) || off > tlen) { >> 554 tcpstat.tcps_rcvbadoff++; >> 555 goto drop; >> 556 } >> >> >> The box that talks to the alpha has mtu 9014, this might >> help to expose the bug. > > It may be that the off0 argument is less than the size of an IP header but is > not a multiple of 4. Can you try this to see if it prints anything out > before crashing: > > Index: netinet/tcp_input.c > =================================================================== > RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v > retrieving revision 1.255 > diff -u -r1.255 tcp_input.c > --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 > +++ netinet/tcp_input.c 15 Nov 2004 20:09:27 -0000 > @@ -497,6 +497,8 @@ > ip_stripoptions(m, (struct mbuf *)0); > off0 = sizeof(struct ip); > } > + if (off0 & 0x3 != 0) > + printf("%s: off0 %d is misaligned\n", __func__, off0); > if (m->m_len < sizeof (struct tcpiphdr)) { > if ((m = m_pullup(m, sizeof (struct tcpiphdr))) == 0) { > tcpstat.tcps_rcvshort++; > changed to ((off0 & 0x3) != 0), didn't seem to print anything. -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 21:20:45 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48E4E16A4CE for ; Mon, 15 Nov 2004 21:20:45 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0475E43D2D for ; Mon, 15 Nov 2004 21:20:45 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 11393 invoked from network); 15 Nov 2004 21:20:44 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Nov 2004 21:20:44 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAFLKd22076709; Mon, 15 Nov 2004 16:20:40 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Sten Spans Date: Mon, 15 Nov 2004 16:20:37 -0500 User-Agent: KMail/1.6.2 References: <200411151510.07790.jhb@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411151620.37816.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Robert Watson cc: freebsd-alpha@FreeBSD.org Subject: Re: alpha and em mtu 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: Mon, 15 Nov 2004 21:20:45 -0000 On Monday 15 November 2004 04:07 pm, Sten Spans wrote: > On Mon, 15 Nov 2004, John Baldwin wrote: > > On Monday 15 November 2004 02:34 pm, Sten Spans wrote: > >> On Mon, 15 Nov 2004, John Baldwin wrote: > >> > >> 548 /* > >> 549 * Check that TCP offset makes sense, > >> 550 * pull out TCP options and adjust length. > >> XXX 551 */ > >> 552 off = th->th_off << 2; > >> 553 if (off < sizeof (struct tcphdr) || off > tlen) { > >> 554 tcpstat.tcps_rcvbadoff++; > >> 555 goto drop; > >> 556 } > >> > >> > >> The box that talks to the alpha has mtu 9014, this might > >> help to expose the bug. > > > > It may be that the off0 argument is less than the size of an IP header > > but is not a multiple of 4. Can you try this to see if it prints > > anything out before crashing: > > > > Index: netinet/tcp_input.c > > =================================================================== > > RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v > > retrieving revision 1.255 > > diff -u -r1.255 tcp_input.c > > --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 > > +++ netinet/tcp_input.c 15 Nov 2004 20:09:27 -0000 > > @@ -497,6 +497,8 @@ > > ip_stripoptions(m, (struct mbuf *)0); > > off0 = sizeof(struct ip); > > } > > + if (off0 & 0x3 != 0) > > + printf("%s: off0 %d is misaligned\n", __func__, off0); > > if (m->m_len < sizeof (struct tcpiphdr)) { > > if ((m = m_pullup(m, sizeof (struct tcpiphdr))) == 0) { > > tcpstat.tcps_rcvshort++; > > changed to ((off0 & 0x3) != 0), didn't seem to print anything. Ok, try this one then instead: Index: netinet/tcp_input.c =================================================================== RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v retrieving revision 1.255 diff -u -r1.255 tcp_input.c --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 +++ netinet/tcp_input.c 15 Nov 2004 21:19:50 -0000 @@ -504,6 +504,8 @@ } } ip = mtod(m, struct ip *); + if (((uintptr_t)ip & 0x3) != 0) + printf("%s: ip %p is misaligned\n", __func__, ip); ipov = (struct ipovly *)ip; th = (struct tcphdr *)((caddr_t)ip + off0); tlen = ip->ip_len; -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-alpha@FreeBSD.ORG Mon Nov 15 21:42:06 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64B0116A4CE; Mon, 15 Nov 2004 21:42:06 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5D7E43D39; Mon, 15 Nov 2004 21:42:05 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [IPv6:2001:960:301:3:a00:20ff:fe85:fa39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id 2D8773E437; Mon, 15 Nov 2004 22:42:04 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id B331A27D; Mon, 15 Nov 2004 22:42:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id A6E2E139; Mon, 15 Nov 2004 22:42:03 +0100 (CET) Date: Mon, 15 Nov 2004 22:42:03 +0100 (CET) From: Sten Spans To: John Baldwin In-Reply-To: <200411151620.37816.jhb@FreeBSD.org> Message-ID: References: <200411151620.37816.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Robert Watson cc: freebsd-alpha@FreeBSD.org Subject: Re: alpha and em mtu 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: Mon, 15 Nov 2004 21:42:06 -0000 On Mon, 15 Nov 2004, John Baldwin wrote: > On Monday 15 November 2004 04:07 pm, Sten Spans wrote: >> On Mon, 15 Nov 2004, John Baldwin wrote: >> >> changed to ((off0 & 0x3) != 0), didn't seem to print anything. > > Ok, try this one then instead: > > Index: netinet/tcp_input.c > =================================================================== > RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v > retrieving revision 1.255 > diff -u -r1.255 tcp_input.c > --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 > +++ netinet/tcp_input.c 15 Nov 2004 21:19:50 -0000 > @@ -504,6 +504,8 @@ > } > } > ip = mtod(m, struct ip *); > + if (((uintptr_t)ip & 0x3) != 0) > + printf("%s: ip %p is misaligned\n", __func__, ip); > ipov = (struct ipovly *)ip; > th = (struct tcphdr *)((caddr_t)ip + off0); > tlen = ip->ip_len; > This does print something: deepthought# ifconfig em0 mtu 1501 deepthought# tcp_input: ip 0xfffffc001817f00e is misaligned fatal kernel trap: trap entry = 0x4 (unaligned access fault) faulting va = 0xfffffc001817f02e opcode = 0x28 register = 0x1 pc = 0xfffffc00004cd134 ra = 0xfffffc00004ccf94 sp = 0xfffffe00187a9af0 curthread = 0xfffffc001f3a70e0 pid = 14, comm = swi1: net [thread 100006] Stopped at tcp_input+0x3a4: srl t0,#0x2,t0 The ip's used are 192.168.1.3 and 192.168.1.4. -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-alpha@FreeBSD.ORG Tue Nov 16 13:15:39 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02E5016A4CE for ; Tue, 16 Nov 2004 13:15:39 +0000 (GMT) Received: from web50609.mail.yahoo.com (web50609.mail.yahoo.com [206.190.38.248]) by mx1.FreeBSD.org (Postfix) with SMTP id 82E0943D5D for ; Tue, 16 Nov 2004 13:15:38 +0000 (GMT) (envelope-from kstailey@yahoo.com) Received: (qmail 88046 invoked by uid 60001); 16 Nov 2004 13:15:37 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=gKSEDUKkJvSVr/LaW+P8lZv0FjzefbI4nTNFQv7dUxo5vkBqmjkUXhY1ZczVckqIAGYNd2Vd1uFCRnTN9bZ4QwxRyFoCrL2goLxYJOHhOXdm05DzQ6goAqs3aJz8xHZa4TQ/VvuIBmAejVsqnCnHwpJ1A7o+fl4XCqpb/utMHiI= ; Message-ID: <20041116131537.88041.qmail@web50609.mail.yahoo.com> Received: from [12.39.218.15] by web50609.mail.yahoo.com via HTTP; Tue, 16 Nov 2004 05:15:37 PST Date: Tue, 16 Nov 2004 05:15:37 -0800 (PST) From: Kenneth Stailey To: freebsd-alpha@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: why Xorg and XFree86 > 3.3.6 crash on my box 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, 16 Nov 2004 13:15:39 -0000 Well I'm not sure exactly but I do know now that there is an x86 emulator of sorts built into XFree-4 and therefor Xorg too and the function of the emulator is to run the BIOS code from the video card. I'm fairly certain that the X server crashes in the emulator during startup. From owner-freebsd-alpha@FreeBSD.ORG Fri Nov 19 09:32:48 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBFC316A4CE; Fri, 19 Nov 2004 09:32:48 +0000 (GMT) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AC9643D49; Fri, 19 Nov 2004 09:32:48 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [IPv6:2001:960:301:3:a00:20ff:fe85:fa39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id 9EC983E434; Fri, 19 Nov 2004 10:32:46 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id 2095D286; Fri, 19 Nov 2004 10:32:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id 14EC5192; Fri, 19 Nov 2004 10:32:46 +0100 (CET) Date: Fri, 19 Nov 2004 10:32:46 +0100 (CET) From: Sten Spans To: John Baldwin In-Reply-To: Message-ID: References: <200411151620.37816.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Robert Watson cc: freebsd-alpha@FreeBSD.org Subject: Re: alpha and em mtu 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: Fri, 19 Nov 2004 09:32:48 -0000 On Mon, 15 Nov 2004, Sten Spans wrote: > On Mon, 15 Nov 2004, John Baldwin wrote: > >> On Monday 15 November 2004 04:07 pm, Sten Spans wrote: >>> On Mon, 15 Nov 2004, John Baldwin wrote: >>> >>> changed to ((off0 & 0x3) != 0), didn't seem to print anything. >> >> Ok, try this one then instead: >> >> Index: netinet/tcp_input.c >> =================================================================== >> RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v >> retrieving revision 1.255 >> diff -u -r1.255 tcp_input.c >> --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 >> +++ netinet/tcp_input.c 15 Nov 2004 21:19:50 -0000 >> @@ -504,6 +504,8 @@ >> } >> } >> ip = mtod(m, struct ip *); >> + if (((uintptr_t)ip & 0x3) != 0) >> + printf("%s: ip %p is misaligned\n", __func__, ip); >> ipov = (struct ipovly *)ip; >> th = (struct tcphdr *)((caddr_t)ip + off0); >> tlen = ip->ip_len; >> > > This does print something: > deepthought# ifconfig em0 mtu 1501 > deepthought# tcp_input: ip 0xfffffc001817f00e is misaligned > > fatal kernel trap: > > trap entry = 0x4 (unaligned access fault) > faulting va = 0xfffffc001817f02e > opcode = 0x28 > register = 0x1 > pc = 0xfffffc00004cd134 > ra = 0xfffffc00004ccf94 > sp = 0xfffffe00187a9af0 > curthread = 0xfffffc001f3a70e0 > pid = 14, comm = swi1: net > > [thread 100006] > Stopped at tcp_input+0x3a4: srl t0,#0x2,t0 > > > The ip's used are 192.168.1.3 and 192.168.1.4. Any luck or should I turn this into a pr ? -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem From owner-freebsd-alpha@FreeBSD.ORG Fri Nov 19 21:53:44 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B817416A4CE for ; Fri, 19 Nov 2004 21:53:44 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E0F143D39 for ; Fri, 19 Nov 2004 21:53:44 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 28058 invoked from network); 19 Nov 2004 21:53:44 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 19 Nov 2004 21:53:43 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAJLrVcU007881; Fri, 19 Nov 2004 16:53:40 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-alpha@FreeBSD.org Date: Fri, 19 Nov 2004 16:01:11 -0500 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411191601.11773.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Robert Watson Subject: Re: alpha and em mtu 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: Fri, 19 Nov 2004 21:53:44 -0000 On Friday 19 November 2004 04:32 am, Sten Spans wrote: > On Mon, 15 Nov 2004, Sten Spans wrote: > > On Mon, 15 Nov 2004, John Baldwin wrote: > >> On Monday 15 November 2004 04:07 pm, Sten Spans wrote: > >>> On Mon, 15 Nov 2004, John Baldwin wrote: > >>> > >>> changed to ((off0 & 0x3) != 0), didn't seem to print anything. > >> > >> Ok, try this one then instead: > >> > >> Index: netinet/tcp_input.c > >> =================================================================== > >> RCS file: /usr/cvs/src/sys/netinet/tcp_input.c,v > >> retrieving revision 1.255 > >> diff -u -r1.255 tcp_input.c > >> --- netinet/tcp_input.c 7 Nov 2004 19:19:35 -0000 1.255 > >> +++ netinet/tcp_input.c 15 Nov 2004 21:19:50 -0000 > >> @@ -504,6 +504,8 @@ > >> } > >> } > >> ip = mtod(m, struct ip *); > >> + if (((uintptr_t)ip & 0x3) != 0) > >> + printf("%s: ip %p is misaligned\n", __func__, ip); > >> ipov = (struct ipovly *)ip; > >> th = (struct tcphdr *)((caddr_t)ip + off0); > >> tlen = ip->ip_len; > > > > This does print something: > > deepthought# ifconfig em0 mtu 1501 > > deepthought# tcp_input: ip 0xfffffc001817f00e is misaligned > > > > fatal kernel trap: > > > > trap entry = 0x4 (unaligned access fault) > > faulting va = 0xfffffc001817f02e > > opcode = 0x28 > > register = 0x1 > > pc = 0xfffffc00004cd134 > > ra = 0xfffffc00004ccf94 > > sp = 0xfffffe00187a9af0 > > curthread = 0xfffffc001f3a70e0 > > pid = 14, comm = swi1: net > > > > [thread 100006] > > Stopped at tcp_input+0x3a4: srl t0,#0x2,t0 > > > > > > The ip's used are 192.168.1.3 and 192.168.1.4. > > Any luck or should I turn this into a pr ? Sorry, been busy recently. A PR certainly wouldn't hurt. Does this panic go away if you use a different MTU btw? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org