Another panic on fresh CURRENT in generic_bcopy().

From: Martin Blapp <mb_at_imp.ch>
Date: Fri, 13 Aug 2004 17:25:29 +0200 (CEST)
SMP kernel, 2 CPU Xeon Server. Latest CURRENT source. ADAPTIVE_GIANT
is commented out, WITNESS is enabled.

#options         ADAPTIVE_GIANT         # Giant mutex is adaptive.
options         WITNESS                 # Enable checks to detect deadlocks and cycles
options         WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed

trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x1016d
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc07e662a
stack pointer           = 0x10:0xdea6fa64
frame pointer           = 0x10:0xdea6fa94
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         = 145 (sh)

db> where
generic_bcopy(dea6fad0,11,c3821438,7ff,c359b420) at /usr/src/sys/i386/i386/support.s:490
ttwrite(c3821400,dea6fc80,20001) at ttwrite (/usr/src/sys/kern/tty.c:2128)
siowrite(c0906570,dea6fc80,20001,c3845b28,c08a9520) at siowrite (/usr/src/sys/dev/sio/sio.c:1542)
cnwrite(c09051d8,dea6fc80,20001,dea6fbc0,11) at cnwrite (/usr/src/sys/kern/tty_cons.c:473)
spec_write(dea6fc0c,dea6fc58,c069799c,dea6fc0c,20002) at spec_write (/usr/src/sys/fs/specfs/spec_vnops.c:317)
spec_vnoperate(dea6fc0c,20002,c359b420,246,dea6fc80) at spec_vnoperate (/usr/src/sys/fs/specfs/spec_vnops.c:119)
vn_write(c3845b28,dea6fc80,c3460480,0,c359b420) at vn_write (vnode_if.h:422)
dofilewrite(c359b420,c3845b28,1,806a400,11) at dofilewrite (file.h:246)
write(c359b420,dea6fd14,c,28093000,3) at write (/usr/src/sys/kern/sys_generic.c:282)
syscall(2f,2f,2f,0,806a400) at syscall+0x275
Xint0x80_syscall() at Xint0x80_syscall+0x1f

db> show registers
cs                 0x8
ds          0xc0850010
es          0xdea60010
fs          0xc0850018
ss                0x10
eax         0x215a069d
ecx                0x4
edx                  0
ebx               0x11
esp         0xdea6fa64
ebp         0xdea6fa94
esi         0xdea6fad0
edi            0x1016d
eip         0xc07e662a  generic_bcopy+0x1a
efl            0x10202
dr0                  0
dr1                  0
dr2                  0
dr3                  0
dr4         0xffff0ff0
dr5              0x400
dr6         0xffff0ff0
dr7              0x400
generic_bcopy+0x1a:     repe movsl      (%esi),%es:(%edi)

db> show locks
	exclusive sleep mutex Giant r = 0 (0xc0908260) locked _at_ /usr/src/sys/kern/vfs_vnops.chow witness
Sleep locks:
0 ATAPI CD bioqueue lock -- last acquired _at_ /usr/src/sys/dev/ata/atapi-cd.c:1096
0 g_xdown -- last acquired _at_ /usr/src/sys/geom/geom_io.c:365
3  Giant -- last acquired _at_ /usr/src/sys/kern/vfs_vnops.c:582
4   struct mount mtx -- last acquired _at_ /usr/src/sys/kern/vfs_subr.c:3136
11   vnode interlock -- last acquired _at_ /usr/src/sys/kern/vfs_vnops.c:897
12    Syncer mtx -- last acquired _at_ /usr/src/sys/kern/vfs_subr.c:1684
12    spechash -- last acquired _at_ /usr/src/sys/kern/vfs_subr.c:1898
12    cdev -- last acquired _at_ /usr/src/sys/kern/kern_conf.c:81
12    vnode_free_list -- last acquired _at_ /usr/src/sys/kern/vfs_subr.c:3212
12    Name Cache -- last acquired _at_ /usr/src/sys/kern/vfs_cache.c:352
4   standard object -- last acquired _at_ /usr/src/sys/vm/vm_object.c:454
5    vm object_list -- last acquired _at_ /usr/src/sys/vm/vm_object.c:222
7    vm page queue mutex -- last acquired _at_ /usr/src/sys/vm/vm_fault.c:872
11    vnode interlock -- (already displayed)
8     CMAPCADDR12 -- last acquired _at_ /usr/src/sys/i386/i386/pmap.c:2485
8     pmap -- last acquired _at_ /usr/src/sys/i386/i386/pmap.c:2684
9      UMA pcpu -- last acquired _at_ /usr/src/sys/vm/uma_core.c:2206
10      KMAP ENTRY -- last acquired _at_ /usr/src/sys/vm/uma_core.c:396
11       UMA zone -- last acquired _at_ /usr/src/sys/vm/uma_core.c:2257
4   malloc -- last acquired _at_ /usr/src/sys/kern/kern_malloc.c:588
4   arc4_mtx -- last acquired _at_ /usr/src/sys/libkern/arc4random.c:137
4   eventhandler -- last acquired _at_ /usr/src/sys/kern/subr_eventhandler.c:213
5    eventhandler list -- last acquired _at_ /usr/src/sys/kern/kern_exit.c:204
4   UMA lock -- last acquired _at_ /usr/src/sys/vm/uma_core.c:1466
9    UMA pcpu -- (already displayed)
4   devd -- last acquired _at_ /usr/src/sys/kern/subr_bus.c:525
4   kernel linker -- last acquired _at_ /usr/src/sys/kern/kern_linker.c:1833
4   kobj -- last acquired _at_ /usr/src/sys/kern/subr_kobj.c:298
4   vm86 lock -- last acquired _at_ /usr/src/sys/i386/i386/vm86.c:582
4   TID lock -- last acquired _at_ /usr/src/sys/kern/kern_thread.c:215
4   tcp -- last acquired _at_ /usr/src/sys/netinet/tcp_timer.c:138
5    tcpinp -- last acquired _at_ order list:0
7     so_snd -- last acquired _at_ /usr/src/sys/kern/uipc_socket.c:376
8      so_rcv -- last acquired _at_ /usr/src/sys/kern/uipc_socket2.c:574
9       radix node head -- last acquired _at_ /usr/src/sys/netinet/if_ether.c:141
10       rtentry -- last acquired _at_ order list:0
11        ifaddr -- last acquired _at_ order list:0
9       sellck -- last acquired _at_ /usr/src/sys/kern/sys_generic.c:1109
9       process lock -- last acquired _at_ /usr/src/sys/i386/i386/trap.c:711
10       sigacts -- last acquired _at_ /usr/src/sys/kern/kern_sig.c:2774
10       struct pargs.ref -- last acquired _at_ /usr/src/sys/kern/kern_proc.c:1111
10       ktrace -- last acquired _at_ /usr/src/sys/kern/kern_exit.c:352
10       session -- last acquired _at_ /usr/src/sys/kern/kern_fork.c:599
11        tty -- last acquired _at_ /usr/src/sys/kern/tty.c:2725
11        vnode interlock -- (already displayed)
11        uidinfo hash -- last acquired _at_ /usr/src/sys/kern/kern_resource.c:1004
12         sleep mtxpool -- last acquired _at_ /usr/src/sys/kern/kern_descrip.c:1960
12         uidinfo struct -- last acquired _at_ order list:0
13          allprison -- last acquired _at_ /usr/src/sys/kern/kern_jail.c:460
4   ithread -- last acquired _at_ /usr/src/sys/kern/kern_intr.c:276
4   rman head -- last acquired _at_ /usr/src/sys/kern/subr_rman.c:111
4   GEOM orphanage -- last acquired _at_ /usr/src/sys/geom/geom_event.c:170
4   ifnet -- last acquired _at_ /usr/src/sys/net/if.c:1011
4   ACPI semaphore -- last acquired _at_ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch                                                                             .c:300
4   taskqueue list -- last acquired _at_ /usr/src/sys/kern/subr_taskqueue.c:85
4   acpica subsystem lock -- last acquired _at_ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/O                                                                             sdSynch.c:360
4   taskqueue -- last acquired _at_ /usr/src/sys/kern/subr_taskqueue.c:193
4   rman -- last acquired _at_ /usr/src/sys/kern/subr_rman.c:446
5    Malloc Stats -- last acquired _at_ /usr/src/sys/kern/kern_malloc.c:210
9    UMA pcpu -- (already displayed)
4   bpf global lock -- last acquired _at_ /usr/src/sys/net/bpf.c:1447
4   bdone lock -- last acquired _at_ /usr/src/sys/kern/vfs_bio.c:3768
4   bounce pages lock -- last acquired _at_ /usr/src/sys/i386/i386/busdma_machdep.c:860
4   nfsd_mtx -- last acquired _at_ /usr/src/sys/nfsserver/nfs_srvsock.c:811
4   ttylist -- last acquired _at_ /usr/src/sys/kern/tty.c:2743
11   tty -- (already displayed)
4   pseudofs -- last acquired _at_ /usr/src/sys/fs/pseudofs/pseudofs_fileno.c:86
4   ATA queue lock -- last acquired _at_ /usr/src/sys/dev/ata/ata-queue.c:171
4   pfil_head_mtx -- last acquired _at_ /usr/src/sys/net/pfil.c:166
5    pfil_head_list lock -- last acquired _at_ /usr/src/sys/net/pfil.c:172
4   if_clone lock -- last acquired _at_ /usr/src/sys/net/if_clone.c:304
4   if_cloners lock -- last acquired _at_ /usr/src/sys/net/if_clone.c:199
4   g_disk_done -- last acquired _at_ /usr/src/sys/geom/geom_disk.c:196
5    bio queue -- last acquired _at_ /usr/src/sys/geom/geom_io.c:65
9    UMA pcpu -- (already displayed)
4   igmp_mtx -- last acquired _at_ /usr/src/sys/netinet/igmp.c:431
4   ipqlock -- last acquired _at_ /usr/src/sys/netinet/ip_input.c:1235
4   mntid -- last acquired _at_ /usr/src/sys/kern/vfs_subr.c:405
5    mountlist -- last acquired _at_ /usr/src/sys/kern/vfs_subr.c:3457
4   ip6qlock -- last acquired _at_ /usr/src/sys/netinet6/frag6.c:687
4   ACPI task queue -- last acquired _at_ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSchedule.c:104
4   needsbuffer lock -- last acquired _at_ /usr/src/sys/kern/vfs_bio.c:296
4   ufs ihash -- last acquired _at_ /usr/src/sys/ufs/ufs/ufs_ihash.c:156
11   vnode interlock -- (already displayed)
4   IPS bioqueue lock -- last acquired _at_ /usr/src/sys/dev/ips/ips_commands.c:168
5    Malloc Stats -- (already displayed)
5    system map -- last acquired _at_ /usr/src/sys/vm/vm_map.c:3010
6     kmem object -- last acquired _at_ /usr/src/sys/vm/vm_kern.c:398
7      vm page queue mutex -- (already displayed)
6     kernel object -- last acquired _at_ /usr/src/sys/vm/vm_meter.c:99
7      vm page queue mutex -- (already displayed)
4   dirhash list -- last acquired _at_ /usr/src/sys/ufs/ufs/ufs_dirhash.c:348
5    dirhash -- last acquired _at_ /usr/src/sys/ufs/ufs/ufs_dirhash.c:456
4   buffer daemon lock -- last acquired _at_ /usr/src/sys/kern/vfs_bio.c:2113
4   buf queue lock -- last acquired _at_ /usr/src/sys/kern/vfs_bio.c:1505
11   vnode interlock -- (already displayed)
4   pbuf mutex -- last acquired _at_ /usr/src/sys/vm/vm_pager.c:414
4   sf_buf -- last acquired _at_ /usr/src/sys/i386/i386/vm_machdep.c:674
4   so_glabel -- last acquired _at_ /usr/src/sys/kern/uipc_socket.c:280
4   accounting -- last acquired _at_ /usr/src/sys/kern/kern_acct.c:232
4   runningbufspace lock -- last acquired _at_ /usr/src/sys/kern/vfs_bio.c:314
4   fdesc -- last acquired _at_ /usr/src/sys/kern/kern_descrip.c:1613
5    filedesc structure -- last acquired _at_ /usr/src/sys/kern/kern_descrip.c:1939
6     accept -- last acquired _at_ /usr/src/sys/kern/uipc_socket.c:332
7      so_snd -- (already displayed)
6     pipe mutex -- last acquired _at_ /usr/src/sys/kern/sys_pipe.c:1438
7      vm page queue mutex -- (already displayed)
7      sigio lock -- last acquired _at_ /usr/src/sys/kern/kern_descrip.c:727
8       process group -- last acquired _at_ /usr/src/sys/kern/kern_proc.c:433
9        process lock -- (already displayed)
4   unp -- last acquired _at_ /usr/src/sys/kern/uipc_usrreq.c:209
7    so_snd -- (already displayed)
0 g_xup -- last acquired _at_ /usr/src/sys/geom/geom_io.c:419
3  Giant -- (already displayed)
0 sem -- last acquired _at_ /usr/src/sys/kern/sysv_sem.c:1174
0 if_afdata -- last acquired _at_ /usr/src/sys/net/if.c:486
0 GEOM topology -- last acquired _at_ /usr/src/sys/geom/geom_event.c:202
1  swapdev -- last acquired _at_ /usr/src/sys/vm/swap_pager.c:2124
3  Giant -- (already displayed)
0 uma object -- last acquired _at_ /usr/src/sys/vm/vm_meter.c:99
0 p_peers -- last acquired _at_ /usr/src/sys/kern/kern_exit.c:248
0 ACPI PCI bus methods -- last acquired _at_ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi_pcib.c:123
1  ACPI PCI link -- last acquired _at_ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi_pci_link.c:1059
2   ACPI root bus -- last acquired _at_ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi.c:760
4    rman -- (already displayed)
4    ACPI semaphore -- (already displayed)
2   kernel environment -- last acquired _at_ /usr/src/sys/kern/kern_environment.c:285
0 module subsystem sx lock -- last acquired _at_ /usr/src/sys/kern/kern_module.c:110
0 sysctl lock -- last acquired _at_ /usr/src/sys/kern/kern_sysctl.c:1315
1  udp -- last acquired _at_ /usr/src/sys/netinet/udp_usrreq.c:693
2   udpinp -- last acquired _at_ order list:0
7    so_snd -- (already displayed)
1  rip -- last acquired _at_ /usr/src/sys/netinet/raw_ip.c:839
1  addrsel_lock -- last acquired _at_ /usr/src/sys/netinet6/in6_src.c:1137
1  filelist lock -- last acquired _at_ /usr/src/sys/kern/kern_descrip.c:1386
5   filedesc structure -- (already displayed)
1  allproc -- last acquired _at_ /usr/src/sys/kern/kern_exit.c:700
2   user map -- last acquired _at_ /usr/src/sys/vm/vm_map.c:3010
3    Giant -- (already displayed)
0 ddp_list_mtx -- last acquired _at_ order list:0
1  ddp_mtx -- last acquired _at_ order list:0
0 slip_mtx -- last acquired _at_ order list:0
1  slip sc_mtx -- last acquired _at_ order list:0
0 proctree -- last acquired _at_ /usr/src/sys/kern/tty.c:2025
1  allproc -- (already displayed)

Spin locks:

Locks which were never acquired:
swap_pager swhash
arp_inq
rts_inq
tcp_hc_entry
ip_inq
scope6_lock
ip6_inq
pseudofs_fileno
tunmtx
gif_mtx
ppp_softc_list_mtx
faith_mtx
msq
semid
msdosfs dehash
nfs4dev state
nfs4dev waitq
nfs4dev newq
cd9660_ihash
bpf interface lock
if send queue
network driver
strategy
ACPI global lock
callout_wait_lock
ACPI cmbat
ACPI generic battery
ACPI AC adapter
ACPI thermal zone
ACPI PCI power methods
ACPI lid
ACPI embedded controller
ACPI power resources
ACPI CPU
UUID generator mutex lock
umtx
encapmtx
securelevel mutex lock
rtsock route_cb lock
rawcb
jumbo mutex
fifo mutex
accept_filter_mtx
phys_pager list
dev_pager list
dev_pager create
swap_pager list
vm map sleep mutex
lockmgr
Received on Fri Aug 13 2004 - 13:25:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:06 UTC