Date: Thu, 25 Jan 2001 01:19:45 +0100 From: "Rogier R. Mulhuijzen" <drwilco@drwilco.net> To: freebsd-current@freebsd.org Subject: panic in netgraph (caught by WITNESS) in custom UP kernel Message-ID: <4.3.2.7.0.20010125011302.00beb520@mail.drwilco.net>
index | next in thread | raw e-mail
[-- Attachment #1 --]
FYI:
Full source CVSupped on the 18th or 19th
Panic came about when I did a 'ls' in ngctl(8).
Kernel config attached, gdb of core follows below:
This GDB was configured as "i386-unknown-freebsd"...
IdlePTD 5300224
initial pcb at 31c4e0
panicstr: from debugger
panic messages:
---
panic: mutex_enter: MTX_SPIN on MTX_DEF mutex netgraph node mutex @
../../netgraph/ng_base.c:2205
panic: from debugger
Uptime: 1d4h5m24s
dumping to dev ad0s2b, offset 262144
dump ata0: resetting devices .. done
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 101 100 99 98 97 96 95 94 93 92 91 90 89 88
87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 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:477
477 if (dumping++) {
(kgdb) trace
trace command requires an argument
(kgdb) where
#0 dumpsys () at ../../kern/kern_shutdown.c:477
#1 0xc0187342 in boot (howto=260) at ../../kern/kern_shutdown.c:320
#2 0xc0187711 in panic (fmt=0xc02a1794 "from debugger")
at ../../kern/kern_shutdown.c:570
#3 0xc0142b51 in db_panic (addr=-1071151608, have_addr=0, count=-1,
modif=0xc7f70bac "") at ../../ddb/db_command.c:433
#4 0xc0142af1 in db_command (last_cmdp=0xc02e20f4, cmd_table=0xc02e1f54,
aux_cmd_tablep=0xc0305e7c) at ../../ddb/db_command.c:333
#5 0xc0142bb6 in db_command_loop () at ../../ddb/db_command.c:455
#6 0xc0144d83 in db_trap (type=3, code=0) at ../../ddb/db_trap.c:71
#7 0xc027839a in kdb_trap (type=3, code=0, regs=0xc7f70cb0)
at ../../i386/i386/db_interface.c:164
#8 0xc028376c in trap (frame={tf_fs = -1070530536, tf_es = 16,
tf_ds = -940113904, tf_edi = -1056367804, tf_esi = 256,
tf_ebp = -940110596, tf_isp = -940110628, tf_ebx = 2,
tf_edx = -1072984320, tf_ecx = 32, tf_eax = 18, tf_trapno = 3,
tf_err = 0, tf_eip = -1071151608, tf_cs = 8, tf_eflags = 70,
tf_esp = -1070788385, tf_ss = -1070936125}) at
../../i386/i386/trap.c:596
#9 0xc0278608 in Debugger (msg=0xc02acfc3 "panic") at machine/cpufunc.h:60
#10 0xc0187708 in panic (
fmt=0xc02ac060 "mutex_enter: MTX_SPIN on MTX_DEF mutex %s @ %s:%d")
at ../../kern/kern_shutdown.c:568
#11 0xc01813aa in witness_enter (m=0xc1091b48, flags=1,
file=0xc02b5c91 "../../netgraph/ng_base.c", line=2205)
---Type <return> to continue, or q <return> to quit---
at ../../kern/kern_mutex.c:842
#12 0xc01e25e6 in ng_snd_item (item=0xc132e740, queue=1)
at ../../sys/mutex.h:528
#13 0xc01e4640 in ng_generic_msg (here=0xc1091b00, item=0xc132e740,
lasthook=0x0) at ../../netgraph/ng_base.c:2855
#14 0xc01e2f14 in ng_apply_item (node=0xc1091b00, item=0xc132e740)
at ../../netgraph/ng_base.c:2386
#15 0xc01e2ab0 in ng_snd_item (item=0xc132e740, queue=0)
at ../../netgraph/ng_base.c:2249
#16 0xc139890f in ?? ()
#17 0xc01ae707 in sosend (so=0xc81e2c00, addr=0xc0f5fb30, uio=0xc7f70edc,
top=0xc0b3fa00, control=0x0, flags=0, p=0xc8d83ca0)
at ../../kern/uipc_socket.c:620
#18 0xc01b3668 in sendit (p=0xc8d83ca0, s=3, mp=0xc7f70f1c, flags=0)
at ../../kern/uipc_syscalls.c:577
#19 0xc01b371e in sendto (p=0xc8d83ca0, uap=0xc7f70f80)
at ../../kern/uipc_syscalls.c:630
#20 0xc0284551 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
tf_edi = -1077967404, tf_esi = -1077967406, tf_ebp = -1077966892,
tf_isp = -940109868, tf_ebx = 671528168, tf_edx = -1077967408,
tf_ecx = -1077967408, tf_eax = 133, tf_trapno = 12, tf_err = 2,
tf_eip = 671772124, tf_cs = 31, tf_eflags = 518, tf_esp = -1077967496,
tf_ss = 47}) at ../../i386/i386/trap.c:1153
#21 0xc0278d03 in Xint0x80_syscall ()
---Type <return> to continue, or q <return> to quit---
#22 0x28069995 in ?? ()
#23 0x8049dc7 in ?? ()
#24 0x8049119 in ?? ()
#25 0x80490ca in ?? ()
#26 0x804904b in ?? ()
#27 0x8048d1f in ?? ()
#28 0x8048acd in ?? ()
(kgdb)
[-- Attachment #2 --]
machine i386
ident VENUS
maxusers 32
#makeoptions CONF_CFLAGS="-fno-builtin -mcpu=pentiumpro -march=pentiumpro"
makeoptions CONF_CFLAGS="-O -pipe"
options BLKDEV_IOSIZE=8192
options PQ_NOOPT
options INCLUDE_CONFIG_FILE
cpu I686_CPU
options NO_F00F_HACK
options COMPAT_43
options USER_LDT
options SYSVSHM
options SYSVSEM
options SYSVMSG
options UCONSOLE
options USERCONFIG
options VISUAL_USERCONFIG
options INET
options INET6
options IPSEC
options IPSEC_ESP
options NETGRAPH
device ether
device vlan
device loop 1
device bpf
#device tap
#device tun
device gif
device faith
device stf
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPV6FIREWALL
options IPV6FIREWALL_VERBOSE
options IPDIVERT
options IPSTEALTH
options TCP_DROP_SYNFIN
options TCP_RESTRICT_RST
options DUMMYNET
options BRIDGE
options FFS
options NTFS
options DEVFS
options FFS_ROOT
options FFS_EXTATTR
options ENABLE_VFS_IOOPT
device random
options P1003_1B
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L
options HZ=100
device pty
#device vn
options MSGBUF_SIZE=40960
device isa
#options COMPAT_OLDISA
options AUTO_EOI_1
options MAXMEM="(128*1024)"
#options NTIMECOUNTER=20
device pci
#options COMPAT_OLDPCI
device atkbdc 1
device atkbd
device psm
options PSM_HOOKRESUME
options PSM_RESETAFTERSUSPEND
device vga
options VGA_ALT_SEQACCESS
options VGA_SLOW_IOACCESS
device splash
device sc 1
options MAXCONS=12
device npx
device ata
device atadisk
device atapicd
options SOFTUPDATES
options ATA_STATIC_ID
options ATA_ENABLE_ATAPI_DMA
options ATA_ENABLE_TAGS
device fdc
device sio
device xe
#device pcm
device midi
#device seq
#device sbc
device apm
device pmtimer
#both NEWCARD and OLDCARD
device pcic
#just OLDCARD
device card
#just NEWCARD
#device pccard
#device cardbus
#device pccbb
#resume normal schtuff
options PCIC_RESUME_RESET
options POWERFAIL_NMI
#device smbus
#device intpm
#device ichsmb
#device smb
#device iicbus
#device iicbb
#device ic
#device iic
#device iicsmb
#device pcf
options PPC_PROBE_CHIPSET
options DONTPROBE_1284
device ppc
device ppbus
device lpt
#device uhci
#device usb
#device udbp
#device ugen
#device uhid
#device ukbd
#device ulpt
#device umass
#device umodem
#device ums
#device urio
#device aue
#device cue
#device kue
device acpica
#options ACPI_DEBUG
options DIAGNOSTIC
options MUTEX_DEBUG
options WITNESS
options WITNESS_DDB
#options WITNESS_SKIPSPIN
options DDB
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.0.20010125011302.00beb520>
