Date: Wed, 20 Dec 2000 00:01:45 -0500 (EST) From: Richard Glidden <rglidden@zaphod.wox.org> To: freebsd-stable@FreeBSD.ORG Subject: Re: Spontaneous rebooting problems Message-ID: <Pine.BSF.4.21.0012192344500.737-100000@charon.localnet> In-Reply-To: <Pine.BSF.4.21.0012191014040.1736-100000@charon.localnet>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Dec 2000, Richard Glidden wrote: > FWIW, I too have started to experience the same problem. Random Trap > 12 errors and reboots. I just installed a debug kernel to try to find > out what's causing it. Seems my system got another trap 12 error, and I managed to grab a dump and run it through gdb. I don't know enough about the kernel internals to make much sense of anything though. I would appreciate any suggestions. If you need more info, please let me know. It appears to me that, for some reason, there is a null pointer reference in if_de.c ? I am using 4.2-STABLE from around 11pm Eastern on Dec 17th. These trap 12 errors were also occuring with 4.2-RELEASE. This hardware was running correctly on 4.1.1 for about 4 months. Problems started about 4 days after upgrading to 4.2-RELEASE. I've already added additional cooling to the system, and reseated all the components. dmesg, kernel trace and kernel config follow below. Thanks, - Richard ------------------------------------------------------------------------- Copyright (c) 1992-2000 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.2-STABLE #2: Mon Dec 18 19:30:24 EST 2000 root@charon.localnet:/usr/src/sys/compile/CHARON Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 232962270 Hz CPU: AMD-K6tm w/ multimedia extensions (232.96-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x562 Stepping = 2 Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX> AMD Features=0x400<<b10>> real memory = 67108864 (65536K bytes) avail memory = 62021632 (60568K bytes) Preloaded elf kernel "kernel" at 0xc0345000. module_register_init: MOD_LOAD (vesa, c025b484, 0) error 6 md0: Malloc disk npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 isab0: <VIA 82C586 PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C586 ATA33 controller> port 0x6000-0x600f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: <ATI Mach64-GU graphics accelerator> at 8.0 irq 11 de0: <Digital 21041 Ethernet> port 0x6300-0x637f mem 0xe1001000-0xe100107f irq 10 at device 9.0 on pci0 de0: SMC 21041 [10Mb/s] pass 1.1 de0: address 00:00:c0:94:7a:e5 pcm0: <Forte Media FM801 Audio Controller> port 0x6400-0x647f irq 9 at device 10.0 on pci0 pci0: <unknown card> (vendor=0x1319, dev=0x0802) at 10.1 dc0: <ADMtek AN985 10/100BaseTX> port 0x6600-0x66ff mem 0xe1002000-0xe10023ff irq 5 at device 11.0 on pci0 dc0: Ethernet address: 00:20:78:11:96:32 miibus0: <MII bus> on dc0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 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/16 bytes threshold ppi0: <Parallel I/O> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port joy0 at port 0x201 on isa0 de0: enabling 10baseT port IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default ad0: 7339MB <QUANTUM FIREBALL EL7.6A> [15907/15/63] at ata0-master UDMA33 acd0: CDROM <CD-ROM 48X/AKU> at ata1-master using PIO4 Mounting root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted ----------------------------------------------------------------------- Script started on Tue Dec 19 23:40:28 2000 # gdb -k GNU gdb 4.18 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". (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...done. (kgdb) exec-file /home/rglidden/kernel.0 (kgdb) core-file /home/rglidden/vmcore.0 IdlePTD 3555328 initial pcb at 2d6900 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x5ec0c500 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01820fc stack pointer = 0x10:0xc61e5cf4 frame pointer = 0x10:0xc61e5d04 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 = 479 (squid) interrupt mask = net tty trap number = 12 panic: page fault syncing disks... Fatal trap 12: page fault while in kernel mode fault virtual address = 0x5ec0c500 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01dbff4 stack pointer = 0x10:0xc61e5814 frame pointer = 0x10:0xc61e5848 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 = 479 (squid) interrupt mask = net tty trap number = 12 panic: page fault Uptime: 5h1m5s dumping to dev #ad/0x20001, offset 139264 dump ata0: resetting devices .. done 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 --- #0 dumpsys () at ../../kern/kern_shutdown.c:469 469 if (dumping++) { (kgdb) bt #0 dumpsys () at ../../kern/kern_shutdown.c:469 #1 0xc0140453 in boot (howto=260) at ../../kern/kern_shutdown.c:309 #2 0xc01407e9 in panic (fmt=0xc028820f "page fault") at ../../kern/kern_shutdown.c:556 #3 0xc024ed6a in trap_fatal (frame=0xc61e57d4, eva=1589691648) at ../../i386/i386/trap.c:951 #4 0xc024ea1d in trap_pfault (frame=0xc61e57d4, usermode=0, eva=1589691648) at ../../i386/i386/trap.c:844 #5 0xc024e5bf in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 1, tf_esi = 1, tf_ebp = -971089848, tf_isp = -971089920, tf_ebx = 6756026, tf_edx = 1589691648, tf_ecx = -1064627184, tf_eax = 6756026, tf_trapno = 12, tf_err = 0, tf_eip = -1071792140, tf_cs = 8, tf_eflags = 66054, tf_esp = -1064581120, tf_ss = -1043331952}) at ../../i386/i386/trap.c:443 #6 0xc01dbff4 in tulip_rx_intr (sc=0xc08bc800) at ../../pci/if_de.c:3503 #7 0xc01dc874 in tulip_intr_handler (sc=0xc08bc800, progress_p=0xc61e5878) at ../../pci/if_de.c:3884 #8 0xc01dc9f9 in tulip_intr_normal (arg=0xc08bc800) at ../../pci/if_de.c:4061 #9 0xc0243ff2 in vec10 () #10 0xc013ad1c in acquire (lkp=0xc1d00490, extflags=32, wanted=1536) at ../../kern/kern_lock.c:147 #11 0xc013af80 in lockmgr (lkp=0xc1d00490, flags=65570, interlkp=0xc02ebc8c, p=0xc61b3c20) at ../../kern/kern_lock.c:354 #12 0xc01657fd in getblk (vp=0xc612f880, blkno=3, size=8192, slpflag=0, ---Type <return> to continue, or q <return> to quit--- slptimeo=0) at ../../sys/buf.h:294 #13 0xc0163986 in bread (vp=0xc612f880, blkno=3, size=8192, cred=0x0, bpp=0xc61e5a20) at ../../kern/vfs_bio.c:458 #14 0xc01e510e in ffs_balloc (ap=0xc61e5ad8) at ../../ufs/ffs/ffs_balloc.c:129 #15 0xc01ee5b9 in ffs_write (ap=0xc61e5b1c) at vnode_if.h:1035 #16 0xc01f2c65 in dqsync (vp=0xc61fecc0, dq=0xc09ef400) at vnode_if.h:363 #17 0xc01f2726 in qsync (mp=0xc08fc600) at ../../ufs/ufs/ufs_quota.c:688 #18 0xc01ed980 in ffs_sync (mp=0xc08fc600, waitfor=2, cred=0xc05af600, p=0xc02ebcc0) at ../../ufs/ffs/ffs_vfsops.c:1004 #19 0xc016dfb3 in sync (p=0xc02ebcc0, uap=0x0) at ../../kern/vfs_syscalls.c:545 #20 0xc014022e in boot (howto=256) at ../../kern/kern_shutdown.c:233 #21 0xc01407e9 in panic (fmt=0xc028820f "page fault") at ../../kern/kern_shutdown.c:556 #22 0xc024ed6a in trap_fatal (frame=0xc61e5cb4, eva=1589691648) at ../../i386/i386/trap.c:951 #23 0xc024ea1d in trap_pfault (frame=0xc61e5cb4, usermode=0, eva=1589691648) at ../../i386/i386/trap.c:844 #24 0xc024e5bf in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 2, tf_esi = 1, tf_ebp = -971088636, tf_isp = -971088672, tf_ebx = 6422528, tf_edx = 1589691648, tf_ecx = -1070674976, tf_eax = 6422528, tf_trapno = 12, tf_err = 0, tf_eip = -1072160516, tf_cs = 8, tf_eflags = 66054, tf_esp = 1, tf_ss = 0}) at ../../i386/i386/trap.c:443 #25 0xc01820fc in looutput (ifp=0xc02ecbe0, m=0xc05f3600, dst=0xc5b638cc, rt=0xc094e500) at ../../net/if_loop.c:141 ---Type <return> to continue, or q <return> to quit--- #26 0xc0194913 in ip_output (m0=0xc05f3600, opt=0x0, ro=0xc5b638c8, flags=0, imo=0x0) at ../../netinet/ip_output.c:787 #27 0xc0199686 in tcp_output (tp=0xc5b63940) at ../../netinet/tcp_output.c:859 #28 0xc019af28 in tcp_usr_send (so=0xc5afed80, flags=4, m=0xc05f7400, nam=0x0, control=0x0, p=0xc61b3c20) at ../../netinet/tcp_usrreq.c:557 #29 0xc015cfb3 in sosend (so=0xc5afed80, addr=0x0, uio=0xc61e5ed8, top=0xc05f7400, control=0x0, flags=0, p=0xc61b3c20) at ../../kern/uipc_socket.c:614 #30 0xc0151668 in soo_write (fp=0xc09d8a80, uio=0xc61e5ed8, cred=0xc09df980, flags=0, p=0xc61b3c20) at ../../kern/sys_socket.c:79 #31 0xc014e2a9 in dofilewrite (p=0xc61b3c20, fp=0xc09d8a80, fd=18, buf=0x85d1000, nbyte=3777, offset=-1, flags=0) at ../../sys/file.h:159 #32 0xc014e162 in write (p=0xc61b3c20, uap=0xc61e5f80) at ../../kern/sys_generic.c:328 #33 0xc024f01d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077936996, tf_esi = -1077937008, tf_ebp = -1077945780, tf_isp = -971087916, tf_ebx = 134626796, tf_edx = 0, tf_ecx = 3777, tf_eax = 4, tf_trapno = 22, tf_err = 2, tf_eip = 672729164, tf_cs = 31, tf_eflags = 518, tf_esp = -1077945840, tf_ss = 47}) at ../../i386/i386/trap.c:1150 #34 0xc0242af5 in Xint0x80_syscall () #35 0x806509c in ?? () #36 0x808742e in ?? () #37 0x804a325 in ?? () (kgdb) up 6 #6 0xc01dbff4 in tulip_rx_intr (sc=0xc08bc800) at ../../pci/if_de.c:3503 3503 } else { (kgdb) list 3498 if (eop->d_status & TULIP_DSTS_RxDRBBLBIT) { 3499 sc->tulip_dot3stats.dot3StatsAlignmentErrors++; 3500 #if defined(TULIP_VERBOSE) 3501 error = "alignment error"; 3502 #endif 3503 } else { 3504 sc->tulip_dot3stats.dot3StatsFCSErrors++; 3505 #if defined(TULIP_VERBOSE) 3506 error = "bad crc"; 3507 #endif (kgdb) print sc->tulip_dot3stats.dot3StatsAlignmentErrors $1 = 0 (kgdb) print sc $2 = (tulip_softc_t *) 0xc08bc800 (kgdb) print eop->d_status Cannot access memory at address 0x0. (kgdb) print eop $3 = (tulip_desc_t *) 0x0 (kgdb) quit # exit Script done on Tue Dec 19 23:42:00 2000 ------------------------------------------------------------------------ machine i386 cpu I586_CPU ident CHARON maxusers 32 options CPU_WT_ALLOC # Write Allocation on K6's options NO_F00F_HACK # CPU is not a flakey Pentium options NO_MEMORY_HOLE # Really, there is no memory hole! options INCLUDE_CONFIG_FILE #Put config file in kernel options INET #InterNETworking options IPFIREWALL #Firewall Support options IPFIREWALL_VERBOSE #Lots of logging options IPFIREWALL_VERBOSE_LIMIT=100 # But not too much options IPFIREWALL_FORWARD # Allow packets to be forwarded options IPDIVERT # natd Support options TCP_RESTRICT_RST # Help prevent portscans options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options MFS #Memory Filesystem options NFS #Network Filesystem options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem options QUOTA #Enable Quotas options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USER_LDT #Allow users to change LDT (for wine) options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options DDB #Kernel Debugger options DDB_UNATTENDED #But still recover on a panic options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev device isa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 device fd1 at fdc0 drive 1 # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 device vga0 at isa? options VESA # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 #options SC_DISABLE_DDBKEY options SC_DISABLE_REBOOT options SC_HISTORY_SIZE=200 options SC_PIXEL_MODE # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device # PCI Ethernet NICs. device de # DEC/Intel DC21x4x (``Tulip'') # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device ppp 1 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) pseudo-device md # Memory "disks" # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter pseudo-device speaker #PC Speaker pseudo-device gzip #Run gzipped a.out pseudo-device vn #Run file as a device device pcm device joy0 at isa? port IO_GAME 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?Pine.BSF.4.21.0012192344500.737-100000>