From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 28 18:50:00 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7DE016A4CE for ; Wed, 28 Jan 2004 18:50:00 -0800 (PST) Received: from ahmler2.mail.eds.com (ahmler2.mail.eds.com [192.85.154.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8F1B43D2F for ; Wed, 28 Jan 2004 18:49:53 -0800 (PST) (envelope-from jim.small@eds.com) Received: from ahmlir1.mail.eds.com (ahmlir1-2.mail.eds.com [192.85.154.131]) by ahmler2.mail.eds.com (8.12.10/8.12.9) with ESMTP id i0T2nrom032348 for ; Wed, 28 Jan 2004 21:49:53 -0500 Received: from ahmlir1.mail.eds.com (localhost [127.0.0.1]) by ahmlir1.mail.eds.com (8.12.10/8.12.10) with ESMTP id i0T2nrE3007822 for ; Wed, 28 Jan 2004 21:49:53 -0500 Received: from USAHM102.amer.corp.eds.com (usahm102.exmi01.exch.eds.com [207.37.138.190])i0T2nrps007817 for ; Wed, 28 Jan 2004 21:49:53 -0500 Received: by usahm102.exmi01.exch.eds.com with Internet Mail Service (5.5.2657.72) id ; Wed, 28 Jan 2004 21:49:53 -0500 Message-ID: <8AA870658244D4119AF600508BDF0A360731945B@usahm014.exmi01.exch.eds.com> From: "Small, Jim" To: hackers@freebsd.org Date: Wed, 28 Jan 2004 21:49:50 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Mailman-Approved-At: Thu, 29 Jan 2004 05:22:55 -0800 Subject: 5.2 Panic, first shot at backtrace and info, next step? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 02:50:01 -0000 I am interested in using FreeBSD 5.2 on an Ultra 60 with a PCI qfe card. I want to use the bridging and dummynet functionality. I installed FreeBSD 5.2 with not problems. I added options BRIDGE to a custom kernel conf file and rebuilt/installed the kernel according to procedure 1 at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-build ing.html I then reboot and do the following: test60# sysctl -w net.link.ether.bridge.enable=1 net.link.ether.bridge.enable: 0 -> 1 test60# ifconfig hme1 up test60# ifconfig -a hme0: flags=8843 mtu 1500 inet 192.168.234.208 netmask 0xffffff00 broadcast 192.168.234.255 inet6 fe80::a00:20ff:fe9a:e692%hme0 prefixlen 64 scopeid 0x1 ether 08:00:20:9a:e6:92 media: Ethernet autoselect (100baseTX) status: active hme1: flags=8843 mtu 1500 inet6 fe80::a00:20ff:fe9a:e692%hme1 prefixlen 64 scopeid 0x2 ether 08:00:20:9a:e6:92 media: Ethernet autoselect (100baseTX ) status: active (rest cut...) test60# sysctl -w net.link.ether.bridge.config=hme0,hme1 net.link.ether.bridge.config: -> hme0,hme1 Consistently within a few seconds I see the following while watching on Serial Port A: FreeBSD/sparc64 (test60) (ttya) login: Jan 28 15:28:58 test60 kernel: hme0: promiscuous mode enabled Jan 28 15:28:58 test60 kernel: hme1: promiscuous mode enabled panic: trap: memory address not aligned cpuid = 0; syncing disks, buffers remaining... 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 giving up on 455 buffers So I thought instead of blindly asking for help I'd try to provide more useful information. I read the following articles on kernel debugging: http://www.onlamp.com/pub/a/bsd/2002/03/21/Big_Scary_Daemons.html http://www.onlamp.com/pub/a/bsd/2002/04/04/Big_Scary_Daemons.html So: test60# ./gdb53 -k kernel.debug vmcore.0 GNU gdb 5.3 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc64-portbld-freebsd5.2"... panic: trap: memory address not aligned panic messages: --- panic: trap: memory address not aligned cpuid = 0; syncing disks, buffers remaining... 4103 4103 4096 4096 4091 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 4090 giving up on 3987 buffers Uptime: 2m23s Dumping 2048 MB (4 chunks) chunk at 0: 536870912 bytes |\^H/\^H --- #0 0x00000000c0139b08 in doadump () at ../../../kern/kern_shutdown.c:239 239 savectx(&dumppcb); (kgdb) where #0 0x00000000c0139b08 in doadump () at ../../../kern/kern_shutdown.c:239 #1 0x00000000c013a124 in boot (howto=256) at ../../../kern/kern_shutdown.c:370 #2 0x00000000c013a54c in panic (fmt=0xc0341790 "trap: %s") at ../../../kern/kern_shutdown.c:548 #3 0x00000000c02939e0 in trap (tf=0xeeb891a0) at ../../../sparc64/sparc64/trap.c:364 #4 0x00000000c01b8c34 in igmp_input (m=0xfffff80000c19bc0, off=0) at ../../../netinet/igmp.c:224 #5 0x00000000c01b8bbc in igmp_input (m=0xc081c500, off=20) at ../../../netinet/igmp.c:202 #6 0x00000000c01c17c0 in ip_input (m=0xc081c500) at ../../../netinet/ip_input.c:983 #7 0x00000000c01aefbc in netisr_processqueue (ni=0xc039b7b0) at ../../../net/netisr.c:152 #8 0x00000000c01af4a0 in swi_net (dummy=0x0) at ../../../net/netisr.c:255 #9 0x00000000c0128a7c in ithread_loop (arg=0xfffff8000082b200) at ../../../kern/kern_intr.c:544 #10 0x00000000c0127a7c in fork_exit (callout=0xc0128900 , arg=0xfffff8000082b200, frame=0xeeb89880) at ../../../kern/kern_fork.c:793 (kgdb) up 4 #4 0x00000000c01b8c34 in igmp_input (m=0xfffff80000c19bc0, off=0) at ../../../netinet/igmp.c:224 224 if (igmp->igmp_code == 0) { (kgdb) p igmp $1 = (struct igmp *) 0xc01b8c8c (kgdb) p *igmp $2 = {igmp_type = 128 '\200', igmp_code = 160 ' ', igmp_cksum = 40960, igmp_group = {s_addr = 38273038}} (kgdb) p igmp->igmp_code $3 = 160 ' ' (kgdb) So I'm hoping this helps. What is the next step? Can I provide more information? I would be happy to try fixes. I would appreciate any help someone could offer. Thanks, <> Jim I am also providing the following in case it's helpful: uname -a output: test60# uname -a FreeBSD test60 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Wed Jan 28 14:59:57 EST 2004 root@test60:/usr/obj/usr/src/sys/MYKERN sparc64 dmesg: Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2-RELEASE #0: Wed Jan 28 14:59:57 EST 2004 root@test60.mitry.us.eds.com:/usr/obj/usr/src/sys/MYKERN Preloaded elf kernel "/boot/kernel/kernel" at 0xc045a000. Timecounter "tick" frequency 360000218 Hz quality 0 real memory = 2147483648 (2048 MB) avail memory = 2065440768 (1969 MB) cpu0: Sun Microsystems UltraSparc-II Processor (360.00 MHz CPU) nexus0: pcib0: on nexus0 pcib0: Psycho, impl 0, version 4, ign 0x7c0, bus B pcib0: [FAST] pcib0: [FAST] pcib0: [FAST] initialializing counter-timer Timecounter "counter-timer" frequency 1000000 Hz quality 0 DVMA map: 0xfc000000 to 0xffffffff pci0: on pcib0 ebus0: revision 0x01 ebus0: mem 0x71000000-0x717fffff,0x70000000-0x70ffffff at device 1.0 on pci0 ebus0: addr 0x140072f000-0x140072f003,0x140072c000-0x140072c003,0x140072a000-0x140072a00 3,0x1400728000-0x1400728003,0x140072 6000-0x1400726003 (no driver attached) ebus0: addr 0x1400724000-0x1400724003 (no driver attached) ebus0: addr 0x1400504000-0x1400504002 (no driver attached) ebus0: addr 0x1400500000-0x1400500007 (no driver attached) sab0: addr 0x1400400000-0x140040007f irq 43 on ebus0 sab0: [FAST] sabtty0: on sab0 sabtty0: console 9600,8,n,1,- sabtty1: on sab0 ebus0: addr 0x14003083f8-0x14003083ff irq 41 (no driver attached) ebus0: addr 0x14003062f8-0x14003062ff irq 42 (no driver attached) ebus0: addr 0x1400700000-0x140070000f,0x1400300398-0x1400300399,0x14003043bc-0x14003043c b irq 34 (no driver attached) ebus0: addr 0x1400720000-0x1400720003,0x1400706000-0x140070600f,0x14003023f0-0x14003023f 7 irq 39 (no driver attached) eeprom0: addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 eeprom0: hostid 809ae692 ebus0: addr 0x1000000000-0x10000fffff (no driver attached) ebus0: addr 0x1400722000-0x1400722003,0x1400704000-0x140070400f,0x1400702000-0x140070200 f,0x1400200000-0x14002000ff ir q 36,35 (no driver attached) hme0: mem 0x8900000-0x8907fff at device 1.1 on pci0 hme0: Ethernet address: 08:00:20:9a:e6:92 miibus0: on hme0 qsphy0: on miibus0 qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sym0: <875> port 0x1000-0x10ff mem 0x8909000-0x8909fff,0x8908000-0x89080ff at device 3.0 on pci0 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym1: <875> port 0x1400-0x14ff mem 0x890b000-0x890bfff,0x890a000-0x890a0ff at device 3.1 on pci0 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking pcib1: at device 5.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) hme1: mem 0x2800000-0x2807fff at device 0.1 on pci1 pcib1: slot 0 INTB is routed to irq 29 hme1: Ethernet address: 08:00:20:9a:e6:92 miibus1: on hme1 qsphy1: on miibus1 qsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: at device 1.0 (no driver attached) hme2: mem 0x4800000-0x4807fff at device 1.1 on pci1 pcib1: slot 1 INTB is routed to irq 30 hme2: Ethernet address: 08:00:20:9a:e6:92 miibus2: on hme2 qsphy2: on miibus2 qsphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: at device 2.0 (no driver attached) hme3: mem 0x6800000-0x6807fff at device 2.1 on pci1 pcib1: slot 2 INTB is routed to irq 31 hme3: Ethernet address: 08:00:20:9a:e6:92 miibus3: on hme3 qsphy3: on miibus3 qsphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: at device 3.0 (no driver attached) hme4: mem 0x8800000-0x8807fff at device 3.1 on pci1 pcib1: slot 3 INTB is routed to irq 28 hme4: Ethernet address: 08:00:20:9a:e6:92 miibus4: on hme4 qsphy4: on miibus4 qsphy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib2: on nexus0 pcib2: Psycho, impl 0, version 4, ign 0x7c0, bus A pci2: on pcib2 nexus0: , type display (no driver attached) Timecounters tick every 10.000 msec Waiting 15 seconds for SCSI devices to settle GEOM: create disk da0 dp=0xfffff80000f53468 GEOM: create disk da1 dp=0xfffff80000f53068 GEOM: create disk cd0 dp=0xfffff8000083de98 da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da0: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) da1 at sym0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da1: 17274MB (35378533 512 byte sectors: 255H 63S/T 2202C) cd0 at sym0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: cd present [1177024 x 512 byte records] Mounting root from ufs:/dev/da1a