Date: Mon, 9 Sep 2002 15:27:50 -0400 From: Al <bsdal@otterhole.ods.org> To: freebsd-stable@freebsd.org Subject: kernel panic, perhaps in xl driver, perhaps not Message-ID: <20020909192749.GB56603@otterhole.ods.org>
next in thread | raw e-mail | index | archive | help
I know nothing about kernel code or debugging, but have run into a repeatable problem with kernel panics. I not even sure that this is the correct forum to send is such a concern. Anyway, if someone has an idea what is wrong (could be as simple as requiring that I increase the size of a buffer table, or something) and how to fix it I would appreciate. I have used *bsd since about 1996 and really enjoy the robust networking functions. This is probably the first time I've had a problem related to kernel network problems, if that is in fact the case. Sorry if I sent this to the wrong place, al The task I perform: What I am doing is a network scan, sending pings (using ping) to a few million addresses. The pings come from an alias address on my interface, and have an individual signature in each payload (thus ping in place of nmap -sP). The symptom, After pinging almost a million addresses, my kernel panics. My script keeps a checkpoint of where in the scan I have completed, and when I start off from the checkpoint, the scan will continue further, but again my kernel will panic but this time after only a little while (a few (tens of?) thousands of pings). There are no records of any problems before the panic occurs, no references in /var/log/messages, etc. Corrective effort This first occurred in August. Once it failed, I cvsupped stable, built world, installed a new kernel. It still failed so I re-did all those funny things in UPDATING (like MAKEDEV all), mergemaster (the original system was installed in November 2000). The panics still occur in a repeatable fashion after updating with newest code Sept 5. So I configured dumpon, and build a kernel with debug support, after CVSuping to the most recent level ( morning Mon Sep 9 2002) and read quickly through the chapter on kernel debugging in the docs of FreeBSD, and collected some information about the crash in hopes that someone can help. I should have run a GENERIC kernel, in place of my kernel which is configured with IPFilter, ipfw, dummynet, smbfs, etc.., but I figure that my configuration should not be too uncommon so should there be a problem it should be resolved generically. Dmesn: Copyright (c) 1992-2002 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 4.7-PRERELEASE #9: Mon Sep 9 10:58:28 EDT 2002 XXXXXXXX@XXXXXXXXXXXXXXXXXXX:/play/obj/usr/src/sys/XXXXXX Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1005.03-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory = 268349440 (262060K bytes) avail memory = 256606208 (250592K bytes) Preloaded elf kernel "kernel" at 0xc0468000. netsmb_dev: loaded Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 10 entries at 0xc00f1310 apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pcib1: <Intel 82801BA/BAM (ICH2) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <ATI Rage128-RF graphics accelerator> at 0.0 irq 11 pcib2: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0 pci2: <PCI bus> on pcib2 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xf2800000-0xf280007f irq 9 at device 11.0 on pci2 xl0: Ethernet address: 00:01:03:c0:ef:16 miibus0: <MII bus> on xl0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: <Intel 82801BA/BAM (ICH2) PCI to LPC bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH2 ATA100 controller> port 0xa800-0xa80f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xa400-0xa41f irq 5 at device 31.2 on pci0 usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: <unknown card> (vendor=0x8086, dev=0x2443) at 31.3 irq 10 uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xa000-0xa01f irq 9 at device 31.4 on pci0 usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xd0000-0xd07ff on isa0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 IPsec: Initialized Security Association Processing. IP Filter: v3.4.29 initialized. Default = block all, Logging = enabled ad0: 57259MB <QUANTUM FIREBALLP AS60.0> [116336/16/63] at ata0-master UDMA100 ad1: 58827MB <QUANTUM FIREBALLP AS60.0> [119521/16/63] at ata0-slave UDMA100 acd0: CD-RW <YAMAHA CRW2100E> at ata1-master PIO4 acd1: CDROM <MATSHITA CR-594> at ata1-slave PIO4 Mounting root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted IP packet filtering initialized, divert disabled, rule-based forwarding enabled, default to deny, logging disabled DUMMYNET initialized (011031) ------------------------------------------------------------------------ I had a problem getting my dump/savecore to work. My computer bios said it had a problem, that never occured before I did the dump on panic. But I think it recovered, and here are the results of the gdb -k, as best I understand it, from the docs on freebsd.org regarding kernel debugging. > gdb -k kernel.debug GNU gdb 4.18 (FreeBSD) Copyright 1998 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 "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/ binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c l ine 933 in fill_symbuf (kgdb) exec-file /var/crash/kernel.1 (kgdb) core-file /var/crash/vmcore.1 IdlePTD at phsyical address 0x00487000 initial pcb at physical address 0x003c8f80 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0xffff7800 fault code = supervisor read, page not present instruction pointer = 0x8:0xc02a0984 stack pointer = 0x10:0xcdf92dc8 frame pointer = 0x10:0xcdf92dd4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 887 (bash) interrupt mask = net tty trap number = 12 panic: page fault syncing disks... 4 done Uptime: 1h23m22s dumping to dev #ad/0x20001, offset 532952 dump ata0: resetting devices .. done 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 20 4 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 1 78 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 10 --- #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) ------------------------------------------------------------------------ #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 #1 0xc0199457 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316 #2 0xc019987c in poweroff_wait (junk=0xc037602c, howto=-1070113969) at /usr/src/sys/kern/kern_shutdown .c:595 #3 0xc0313f7e in trap_fatal (frame=0xcdf92d88, eva=4294932480) at /usr/src/sys/i386/i386/trap.c:974 #4 0xc0313c51 in trap_pfault (frame=0xcdf92d88, usermode=0, eva=4294932480) at /usr/src/sys/i386/i386/trap.c:867 #5 0xc031383b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = -1078001648, tf_edi = -1058112512, tf_esi = 6685184, tf_ebp = -839307820, tf_isp = -839307852, tf_ebx = -1058112512, tf_edx = -10587 99616, tf_ecx = -34816, tf_eax = 516971, tf_trapno = 12, tf_err = 0, tf_eip = -1070986876, tf_cs = 8, tf_eflags = 66054, tf_esp = -1058428160, tf_ss = -1046100328}) at /usr/src/sys/i386/i386/trap.c:4 66 #6 0xc02a0984 in xl_newbuf (sc=0xc1a5c000, c=0xc1a5c698) at /usr/src/sys/pci/if_xl.c:1727 #7 0xc02a0b3a in xl_rxeof (sc=0xc1a5c000) at /usr/src/sys/pci/if_xl.c:1826 #8 0xc02a125c in xl_intr (arg=0xc1a5c000) at /usr/src/sys/pci/if_xl.c:2061 #9 0xc031c361 in intr_mux (arg=0xc0e36500) at /usr/src/sys/i386/isa/intr_machdep.c:582 #10 0xc02c655b in vm_page_lookup (object=0xce108660, pindex=0) at /usr/src/sys/vm/vm_page.c:515 #11 0xc02beb6c in vm_fault (map=0xcdf19640, vaddr=135598080, fault_type=3 '\003', fault_flags=8) at /usr/src/sys/vm/vm_fault.c:292 #12 0xc0313be6 in trap_pfault (frame=0xcdf92fa8, usermode=1, eva=135598120) at /usr/src/sys/i386/i386/trap.c:847 #13 0xc031370f in trap (frame={tf_fs = 47, tf_es = -1078001617, tf_ds = -1078001617, tf_edi = -1, tf_esi = 19273, tf_ebp = -1077943476, tf_isp = -839307308, tf_ebx = 0, tf_edx = 135598112, tf_ecx = 901, tf_eax = 512, tf_trapno = 12, tf_err = 7, tf_eip = 134606022, tf_cs = 31, tf_eflags = 66118, tf_esp = -1077943516, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:377 #14 0x805ecc6 in ?? () [...] ------------------------------------------------------------------------ #5 0xc031383b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = -1078001648, tf_edi = -1058112512, tf_esi = 6685184, tf_ebp = -839307820, tf_isp = -839307852, tf_ebx = -1058112512, tf_edx = -10587 99616, tf_ecx = -34816, tf_eax = 516971, tf_trapno = 12, tf_err = 0, tf_eip = -1070986876, tf_cs = 8, tf_eflags = 66054, tf_esp = -1058428160, tf_ss = -1046100328}) at /usr/src/sys/i386/i386/trap.c:4 66 #6 0xc02a0984 in xl_newbuf (sc=0xc1a5c000, c=0xc1a5c698) at /usr/src/sys/pci/if_xl.c:1727 #7 0xc02a0b3a in xl_rxeof (sc=0xc1a5c000) at /usr/src/sys/pci/if_xl.c:1826 #8 0xc02a125c in xl_intr (arg=0xc1a5c000) at /usr/src/sys/pci/if_xl.c:2061 #9 0xc031c361 in intr_mux (arg=0xc0e36500) at /usr/src/sys/i386/isa/intr_machdep.c:582 #10 0xc02c655b in vm_page_lookup (object=0xce108660, pindex=0) at /usr/src/sys/vm/vm_page.c:515 #11 0xc02beb6c in vm_fault (map=0xcdf19640, vaddr=135598080, fault_type=3 '\003', fault_flags=8) at /usr/src/sys/vm/vm_fault.c:292 #12 0xc0313be6 in trap_pfault (frame=0xcdf92fa8, usermode=1, eva=135598120) at /usr/src/sys/i386/i386/trap.c:847 #13 0xc031370f in trap (frame={tf_fs = 47, tf_es = -1078001617, tf_ds = -1078001617, tf_edi = -1, tf_esi = 19273, tf_ebp = -1077943476, tf_isp = -839307308, tf_ebx = 0, tf_edx = 135598112, tf_ecx = 901, tf_eax = 512, tf_trapno = 12, tf_err = 7, tf_eip = 134606022, tf_cs = 31, tf_eflags = 66118, tf_esp = -1077943516, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:377 #14 0x805ecc6 in ?? () ------------------------------------------------------------------------ #5 0xc031383b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = -1078001648, tf_edi = -1058112512, tf_esi = 6685184, tf_ebp = -839307820, tf_isp = -839307852, tf_ebx = -1058112512, tf_edx = -10587 99616, tf_ecx = -34816, tf_eax = 516971, tf_trapno = 12, tf_err = 0, tf_eip = -1070986876, tf_cs = 8, tf_eflags = 66054, tf_esp = -1058428160, tf_ss = -1046100328}) at /usr/src/sys/i386/i386/trap.c:4 66 466 (void) trap_pfault(&frame, FALSE, eva); (kgdb) up #6 0xc02a0984 in xl_newbuf (sc=0xc1a5c000, c=0xc1a5c698) at /usr/src/sys/pci/if_xl.c:1727 1727 MCLGET(m_new, M_DONTWAIT); (kgdb) list 1722 1723 MGETHDR(m_new, M_DONTWAIT, MT_DATA); 1724 if (m_new == NULL) 1725 return(ENOBUFS); 1726 1727 MCLGET(m_new, M_DONTWAIT); 1728 if (!(m_new->m_flags & M_EXT)) { 1729 m_freem(m_new); 1730 return(ENOBUFS); 1731 } (kgdb) print m_new $1 = (struct mbuf *) 0xc0ee7c00 (kgdb) print m_new->m_flags There is no member named m_flags. ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020909192749.GB56603>