Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2001 12:03:17 +0200
From:      Alexander Langer <alex@big.endian.de>
To:        current@FreeBSD.org
Subject:   netstat kernel panic
Message-ID:  <20010715120317.A99869@fump.kawo2.rwth-aachen.de>

next in thread | raw e-mail | index | archive | help
Hello, when running netstat or using an app, that uses it
(such as linux-navigator), my machine panics:

Script started on Sat Jul 14 12:52:06 2001
(kgdb) mobile#	gdb -k /usr/obj/usr/src/sys/MOBILE/kernel.debug vmcore.1
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"...
IdlePTD 4804608
initial pcb at 39bce0
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x3a
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc02c8cfe
stack pointer	        = 0x10:0xcd6b4d44
frame pointer	        = 0x10:0xcd6b4d5c
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		= 5731 (netstat)
trap number		= 12
panic: page fault

syncing disks... 102 102 panic: Lock (sx) allproc not locked @ /usr/src/sys/kern/kern_proc.c:152.
Uptime: 2h3m2s

dumping to dev ad0b, offset 176256
dump ata0: resetting devices .. panic: witness_save: lock (sleep mutex) Giant not locked
Uptime: 2h3m3s
Dump already in progress, bailing...
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot <--
Rebooting...
ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2001 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.0-CURRENT #1: Tue Jul 10 18:53:24 CEST 2001
    alex@mobile.cichlids.com:/usr/obj/usr/src/sys/MOBILE
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 647191364 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (647.19-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 67043328 (65472K bytes)
avail memory = 60309504 (58896K bytes)
Preloaded elf kernel "kernel" at 0xc0476000.
Preloaded elf module "agp.ko" at 0xc047609c.
Preloaded elf module "random.ko" at 0xc0476138.
Warning: module random already exists
Pentium Pro MTRR support enabled
WARNING: Driver mistake: repeat make_dev("random")
Using $PIR table, 4 entries at 0xc00fdf80
acpi0: <PTLTD    RSDT  > on motherboard
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_pcib0: <Host-PCI bridge> on acpi0
pci0: <PCI bus> on acpi_pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1050-0x105f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> at device 7.2 on pci0
uhci0: Could not map ports
device_probe_and_attach: uhci0 attach returned 6
pci0: <bridge, PCI-unknown> at 7.3 (no driver attached)
pci0: <multimedia, audio> at 9.0 (no driver attached)
pci0: <input device> at 9.1 (no driver attached)
acpi_pcib0: matched entry for 0.12.INTA (source \\_SB_.PCI0.ISA_.LNKA)
acpi_pcib0: possible interrupts:  3  4  5  7  11  12
acpi_pcib0: routed interrupt 3 via \\_SB_.PCI0.ISA_.LNKA
pcic0: <Ricoh RL5C475 PCI-CardBus Bridge> mem 0x44000000-0x44000fff irq 3 at device 12.0 on pci0
pcic0: Memory mapped device, will work.
pccard0: <PC Card bus (classic)> on pcic0
acpi_ec0: <embedded controller> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Control Method Sleep Button Device> on acpi0
acpi_button1: <Control Method Power Button Device> on acpi0
acpi_timer0: <24-bit timer at 3.579545MHz> on acpi0
npx0: <math processor> on motherboard
npx0: INT 16 interface
too many dependant configs
too many dependant configs
too many dependant configs
too many dependant configs
too many dependant configs
too many dependant configs
too many dependant configs
too many dependant configs
orm0: <Option ROM> at iomem 0xc0000-0xcffff on isa0
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 GlidePoint, device ID 0
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
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0200> can't assign resources
unknown: <PNP0303> can't assign resources
unknown: <PNP0F13> can't assign resources
unknown: <PNP0700> can't assign resources
sio0: <16550A-compatible COM port> at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
unknown: <PNP0510> can't assign resources
acpi_cpu0: set speed to 100.0%
acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
ad0: 5729MB <TOSHIBA MK6015MAP> [12416/15/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
WARNING: / was not properly dismounted
pcic0: Event mask 0x9
WARNING: /usr was not properly dismounted
/usr: lost blocks 4 files 1
/usr: superblock summary recomputed
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ed0 at port 0x300-0x31f irq 3 slot 0 on pccard0
ed0: address 00:e0:98:7e:60:10, type Linksys (16 bit) 
ed0: device timeout
ed0: device timeout

[here I ran it again to verify]

Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x3a
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc02c8cfe
stack pointer	        = 0x10:0xcd6d1d44
frame pointer	        = 0x10:0xcd6d1d5c
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		= 595 (netstat)
panic: from debugger
panic: from debugger
Uptime: 2m41s

dumping to dev ad0b, offset 176256
dump ata0: resetting devices .. done
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 
---
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:478
478		if (dumping++) {
(kgdb) tr
trace command requires an argument
(kgdb) bt
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:478
#1  0xc01e3aff in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:321
#2  0xc01e3f19 in panic (fmt=0xc031d94e "from debugger")
    at /usr/src/sys/kern/kern_shutdown.c:600
#3  0xc015b315 in db_panic (addr=-1070822146, have_addr=0, count=-1, 
    modif=0xcd6d1bb0 "") at /usr/src/sys/ddb/db_command.c:441
#4  0xc015b2b3 in db_command (last_cmdp=0xc0363a94, cmd_table=0xc03638f4, 
    aux_cmd_tablep=0xc035d2e0, aux_cmd_tablep_end=0xc035d2e4)
    at /usr/src/sys/ddb/db_command.c:341
#5  0xc015b37f in db_command_loop () at /usr/src/sys/ddb/db_command.c:463
#6  0xc015d54b in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:72
#7  0xc02e6d3e in kdb_trap (type=12, code=0, regs=0xcd6d1d04)
    at /usr/src/sys/i386/i386/db_interface.c:167
#8  0xc02f78a0 in trap_fatal (frame=0xcd6d1d04, eva=58)
    at /usr/src/sys/i386/i386/trap.c:927
#9  0xc02f7615 in trap_pfault (frame=0xcd6d1d04, usermode=0, eva=58)
    at /usr/src/sys/i386/i386/trap.c:846
#10 0xc02f6c64 in trap (frame={tf_fs = -1070333928, tf_es = 16, 
      tf_ds = -1069809648, tf_edi = -1069775252, tf_esi = 0, 
      tf_ebp = -848487076, tf_isp = -848487120, tf_ebx = 1, 
      tf_edx = -848739040, tf_ecx = 1, tf_eax = 2, tf_trapno = 12, tf_err = 2, 
      tf_eip = -1070822146, tf_cs = 8, tf_eflags = 66118, 
      tf_esp = -1069680480, tf_ss = 1}) at /usr/src/sys/i386/i386/trap.c:405
#11 0xc02c8cfe in vm_object_pip_add (object=0x0, i=1)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/sys/vm/vm_object.c:237
#12 0xc02bf94e in vm_fault1 (map=0xc03c866c, vaddr=3226185728, 
    fault_type=1 '\001', fault_flags=0) at /usr/src/sys/vm/vm_fault.c:274
#13 0xc02bf753 in vm_fault (map=0xc03c866c, vaddr=3226185728, fault_type=1, 
    fault_flags=0) at /usr/src/sys/vm/vm_fault.c:198
#14 0xc02f75b9 in trap_pfault (frame=0xcd6d1ea0, usermode=0, eva=3226185798)
    at /usr/src/sys/i386/i386/trap.c:833
#15 0xc02f6c64 in trap (frame={tf_fs = -848756712, tf_es = -848494576, 
      tf_ds = -1070727152, tf_edi = 1, tf_esi = -1063576320, 
      tf_ebp = -848486688, tf_isp = -848486708, tf_ebx = -1069076892, 
      tf_edx = -1048725504, tf_ecx = -1068781498, tf_eax = -1048725504, 
      tf_trapno = 12, tf_err = 0, tf_eip = -1071436904, tf_cs = 8, 
      tf_eflags = 66194, tf_esp = -848486660, tf_ss = -1071699782})
    at /usr/src/sys/i386/i386/trap.c:405
#16 0xc0232b98 in strcmp (s1=0xc17db800 "imp_softc", 
    s2=0xc04bb046 <Address 0xc04bb046 out of bounds>)
    at /usr/src/sys/libkern/strcmp.c:50
#17 0xc01f28ba in link_elf_lookup_symbol (lf=0xc09b1d00, 
    name=0xc17db800 "imp_softc", sym=0xcd6d1f30)
    at /usr/src/sys/kern/link_elf.c:1003
#18 0xc01d7f36 in kldsym (p=0xcd694520, uap=0xcd6d1f80) at linker_if.h:24
#19 0xc02f823d in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = 134602604, tf_esi = 134602616, tf_ebp = -1077937584, 
      tf_isp = -848486444, tf_ebx = 671616116, tf_edx = 0, tf_ecx = 0, 
---Type <return> to continue, or q <return> to quit---
      tf_eax = 337, tf_trapno = 12, tf_err = 2, tf_eip = 671926476, 
      tf_cs = 31, tf_eflags = 663, tf_esp = -1077937644, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1128
#20 0xc02e7a2d in syscall_with_err_pushed ()
#21 0x804f992 in ?? ()
#22 0x804f54c in ?? ()
#23 0x8049301 in ?? ()
(kgdb) mobile#	exit
exit

Script done on Sat Jul 14 12:55:41 2001

Hope this helps (is ifconfig -a important?)

Alex

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010715120317.A99869>