Date: Wed, 28 Jan 2004 21:49:50 -0500 From: "Small, Jim" <jim.small@eds.com> To: hackers@freebsd.org Subject: 5.2 Panic, first shot at backtrace and info, next step? Message-ID: <8AA870658244D4119AF600508BDF0A360731945B@usahm014.exmi01.exch.eds.com>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::a00:20ff:fe9a:e692%hme1 prefixlen 64 scopeid 0x2 ether 08:00:20:9a:e6:92 media: Ethernet autoselect (100baseTX <full-duplex>) 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 <ithread_loop>, 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: <OpenFirmware Nexus device> pcib0: <U2P UPA-PCI bridge> 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: <OFW PCI bus> on pcib0 ebus0: revision 0x01 ebus0: <PCI-EBus2 bridge> mem 0x71000000-0x717fffff,0x70000000-0x70ffffff at device 1.0 on pci0 ebus0: <auxio> addr 0x140072f000-0x140072f003,0x140072c000-0x140072c003,0x140072a000-0x140072a00 3,0x1400728000-0x1400728003,0x140072 6000-0x1400726003 (no driver attached) ebus0: <power> addr 0x1400724000-0x1400724003 (no driver attached) ebus0: <SUNW,pll> addr 0x1400504000-0x1400504002 (no driver attached) ebus0: <sc> addr 0x1400500000-0x1400500007 (no driver attached) sab0: <Siemens SAB 82532 v3.2> addr 0x1400400000-0x140040007f irq 43 on ebus0 sab0: [FAST] sabtty0: <ttya> on sab0 sabtty0: console 9600,8,n,1,- sabtty1: <ttyb> on sab0 ebus0: <su> addr 0x14003083f8-0x14003083ff irq 41 (no driver attached) ebus0: <su> addr 0x14003062f8-0x14003062ff irq 42 (no driver attached) ebus0: <ecpp> addr 0x1400700000-0x140070000f,0x1400300398-0x1400300399,0x14003043bc-0x14003043c b irq 34 (no driver attached) ebus0: <fdthree> addr 0x1400720000-0x1400720003,0x1400706000-0x140070600f,0x14003023f0-0x14003023f 7 irq 39 (no driver attached) eeprom0: <EBus EEPROM/clock> addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 eeprom0: hostid 809ae692 ebus0: <flashprom> addr 0x1000000000-0x10000fffff (no driver attached) ebus0: <SUNW,CS4231> addr 0x1400722000-0x1400722003,0x1400704000-0x140070400f,0x1400702000-0x140070200 f,0x1400200000-0x14002000ff ir q 36,35 (no driver attached) hme0: <Sun HME 10/100 Ethernet> mem 0x8900000-0x8907fff at device 1.1 on pci0 hme0: Ethernet address: 08:00:20:9a:e6:92 miibus0: <MII bus> on hme0 qsphy0: <QS6612 10/100 media interface> 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: <OFW PCI-PCI bridge> at device 5.0 on pci0 pci1: <OFW PCI bus> on pcib1 pci1: <bridge, PCI-unknown> at device 0.0 (no driver attached) hme1: <Sun HME 10/100 Ethernet> 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: <MII bus> on hme1 qsphy1: <QS6612 10/100 media interface> on miibus1 qsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: <bridge, PCI-unknown> at device 1.0 (no driver attached) hme2: <Sun HME 10/100 Ethernet> 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: <MII bus> on hme2 qsphy2: <QS6612 10/100 media interface> on miibus2 qsphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: <bridge, PCI-unknown> at device 2.0 (no driver attached) hme3: <Sun HME 10/100 Ethernet> 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: <MII bus> on hme3 qsphy3: <QS6612 10/100 media interface> on miibus3 qsphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: <bridge, PCI-unknown> at device 3.0 (no driver attached) hme4: <Sun HME 10/100 Ethernet> 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: <MII bus> on hme4 qsphy4: <QS6612 10/100 media interface> on miibus4 qsphy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib2: <U2P UPA-PCI bridge> on nexus0 pcib2: Psycho, impl 0, version 4, ign 0x7c0, bus A pci2: <OFW PCI bus> on pcib2 nexus0: <SUNW,afb>, 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: <FUJITSU MAB3091S SUN9.0G 1705> 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: <IBM DDYST1835SUN18G S96H> 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: <TOSHIBA XM5701TASUN12XCD 2395> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8AA870658244D4119AF600508BDF0A360731945B>