Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 12:54:45 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   Panic @r251934: _mtx_lock_sleep: recursed on non-recursive mutex vm map (system) @ /usr/src/sys/vm/vm_kern.c:430
Message-ID:  <20130618195445.GO1302@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--p1Od3smaOkJqivj4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

This is on my (i386) build machine; laptop (also i386) did not exhibit=20
the symptom.  I had hand-applied r251953 (to get through buildworld).

After installworld, mergemaster -i, & "make delete-old", I rebooted, and
this is what I saw:

=2E..
Booting...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2013 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #1197  r251934M/251934:1000035: Tue Jun 18 10:47:29 PD=
T 2013
    root@freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/GENERIC i386
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Intel(R) Xeon(TM) CPU 3.60GHz (3600.20-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0xf41  Family =3D 0xf  Model =3D 0x4  S=
tepping =3D 1
  Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=3D0x659d<SSE3,DTES64,MON,DS_CPL,EST,TM2,CNXT-ID,CX16,xTPR>
  AMD Features=3D0x20100000<NX,LM>
  TSC: P-state invariant
real memory  =3D 2147483648 (2048 MB)
avail memory =3D 2064138240 (1968 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <PTLTD          APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 2 package(s) x 1 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  6
=2E..
pass3 at aacp0 bus 0 scbus0 target 3 lun 0
pass3: <SEAGATE ST373454LC 0005> Fixed Uninstalled SCSI-3 device=20
pass3: 3.300MB/s transfers
SMP: AP CPU #1 Launched!
panic: _mtx_lock_sleep: recursed on non-recursive mutex vm map (system) @ /=
usr/src/sys/vm/vm_kern.c:430

cpuid =3D 1
KDB: enter: panic
[ thread pid 13 tid 100010 ]
Stopped at      kdb_enter+0x3d: movl    $0,kdb_why
db> bt
Tracing pid 13 tid 100010 td 0xc62ef930
kdb_enter(c10ff600,c10ff600,c10fd42c,c5f766a4,c10fd42c,...) at kdb_enter+0x=
3d/frame 0xc5f76638
vpanic(c127a538,100,c10fd42c,c5f766a4,c5f766a4,...) at vpanic+0x143/frame 0=
xc5f76674
kassert_panic(c10fd42c,c1107ba3,c113ab63,1ae,0,...) at kassert_panic+0xea/f=
rame 0xc5f76698
__mtx_lock_sleep(c1b540f8,c62ef930,c113ab63,c113ab63,1ae,...) at __mtx_lock=
_sleep+0x3c7/frame 0xc5f76704
__mtx_lock_flags(c1b540f8,0,c113ab63,1ae,c1b57200,...) at __mtx_lock_flags+=
0xfd/frame 0xc5f76738
_vm_map_lock(c1b5408c,c113ab63,1ae,c5f76798,c0a9f7b7,...) at _vm_map_lock+0=
x31/frame 0xc5f76754
kmem_malloc(c1b5408c,1000,101,3d1,c1b57200,...) at kmem_malloc+0x2a/frame 0=
xc5f76798
startup_alloc(c1b56240,1000,c5f767eb,101,c1b57210,...) at startup_alloc+0xd=
6/frame 0xc5f767bc
keg_alloc_slab(1,4,c1139e3e,883,c62ef930,...) at keg_alloc_slab+0xc8/frame =
0xc5f767f8
keg_fetch_slab(1,0,0,1,c5f76890,...) at keg_fetch_slab+0x14f/frame 0xc5f768=
38
zone_fetch_slab(c1b56240,0,1,956,1,...) at zone_fetch_slab+0x2f/frame 0xc5f=
76850
zone_import(c1b56240,c5f768a8,1,1,0,...) at zone_import+0x67/frame 0xc5f768=
90
zone_alloc_item(1,18,c5f76900,c0a9f7b7,c1b57300,...) at zone_alloc_item+0x3=
3/frame 0xc5f768c0
uma_zalloc_arg(c1b56240,0,1,857,c1b57500,...) at uma_zalloc_arg+0x60d/frame=
 0xc5f76900
uma_zalloc_arg(c1b563c0,0,201,857,c144a0b0,...) at uma_zalloc_arg+0x319/fra=
me 0xc5f76940
uma_zalloc_arg(c1b566c0,0,1,47a,8,...) at uma_zalloc_arg+0x319/frame 0xc5f7=
6980
vm_map_insert(c1b5408c,c144a0b0,6a0e000,0,c690d000,...) at vm_map_insert+0x=
47e/frame 0xc5f769dc
kmem_back(c1b5408c,c690d000,1000,101,c0a9f7b7,...) at kmem_back+0x79/frame =
0xc5f76a38
kmem_malloc(c1b5408c,1000,101,3d1,c1b57300,...) at kmem_malloc+0x2d5/frame =
0xc5f76a7c
startup_alloc(c1b563c0,1000,c5f76acf,101,c1b57310,...) at startup_alloc+0xd=
6/frame 0xc5f76aa0
keg_alloc_slab(1,4,c1139e3e,883,c62ef930,...) at keg_alloc_slab+0xc8/frame =
0xc5f76adc
keg_fetch_slab(1,16,c1b1ad10,0,c5f76b74,...) at keg_fetch_slab+0x14f/frame =
0xc5f76b1c
zone_fetch_slab(c1b563c0,c1b57300,1,93e,1,...) at zone_fetch_slab+0x2f/fram=
e 0xc5f76b34
zone_import(c1b563c0,c1b49f0c,1d,1,c1b49f0c,...) at zone_import+0x67/frame =
0xc5f76b74
uma_zalloc_arg(c1b563c0,0,1,857,c1b35580,...) at uma_zalloc_arg+0x374/frame=
 0xc5f76bb4
uma_zalloc_arg(c1b56300,0,1,a5c,c1b31310,...) at uma_zalloc_arg+0x319/frame=
 0xc5f76bf4
uma_zfree_arg(c1b31300,c68d9390,0) at uma_zfree_arg+0x277/frame 0xc5f76c2c
g_destroy_bio(c68d9390,0,c68d9390,c5f76c80,c0b412d2,...) at g_destroy_bio+0=
x22/frame 0xc5f76c40
g_std_done(c68d9390,0,c110d464,e07,0,...) at g_std_done+0x33/frame 0xc5f76c=
54
biodone(c68d9390,0,c10ece47,60,0,...) at biodone+0xb2/frame 0xc5f76c80
g_io_schedule_up(c62ef930,0,c10ed066,5f,c5f76cf4,...) at g_io_schedule_up+0=
x129/frame 0xc5f76cb4
g_up_procbody(0,c5f76d08,c10f90d8,3d7,0,...) at g_up_procbody+0x9d/frame 0x=
c5f76ccc
fork_exit(c0a15550,0,c5f76d08) at fork_exit+0x7f/frame 0xc5f76cf4
fork_trampoline() at fork_trampoline+0x8/frame 0xc5f76cf4
--- trap 0, eip =3D 0, esp =3D 0xc5f76d40, ebp =3D 0 ---
db> show locks
exclusive sleep mutex vm map (system) (vm map (system)) r =3D 0 (0xc1b540e8=
) locked @ /usr/src/sys/vm/vm_kern.c:430
db> show allpcpu=20
Current CPU: 1

cpuid        =3D 0
dynamic pcpu =3D 0x5dc500
curthread    =3D 0xc1443390: pid 0 "swapper"
curpcb       =3D 0xc1820d60
fpcurthread  =3D none
idlethread   =3D 0xc62f1000: tid 100003 "idle: cpu0"
APIC ID      =3D 0
currentldt   =3D 0x50
spin locks held:

cpuid        =3D 1
dynamic pcpu =3D 0x4d0b500
curthread    =3D 0xc62ef930: pid 13 "g_up"
curpcb       =3D 0xc5f76d60
fpcurthread  =3D none
idlethread   =3D 0xc62f0c40: tid 100004 "idle: cpu1"
APIC ID      =3D 6
currentldt   =3D 0x50
spin locks held:

db>=20

So... I have console access; recent (up to yesterday) update history
of head on the machine is available at
<http://www.catwhisker.org/~david/FreeBSD/history/freebeast_i386_10.txt>.

Anything else worth poking at?  Any patches to test?

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--p1Od3smaOkJqivj4
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iEYEARECAAYFAlHAuwQACgkQmprOCmdXAD3w6wCeJOqYosmWoiib0MLlQDatdarl
T8oAn1bDWjIyaM1erDxXKKs7E1K8q9Eb
=cWfv
-----END PGP SIGNATURE-----

--p1Od3smaOkJqivj4--



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