Date: Wed, 11 Jul 2007 08:58:54 -0400 From: "Michael W. Lucas" <mwlucas@blackhelicopters.org> To: current@freebsd.org Subject: panic: _mtx_lock_sleep: recursed on non-recursive mutex ahc_lock @ /usr/src/sys/dev/aic7xxx/aic7xxx_osm.h:203 Message-ID: <20070711125854.GA23787@bewilderbeast.blackhelicopters.org>
next in thread | raw e-mail | index | archive | help
Hi, Got this panic on a July 4 -current when writing to a SCSI device. I can read just fine, and occasionally write. I can consistently panic the system within 30 seconds by running "fdisk -BI /dev/daX" three or four times. More complicated writes make the panic faster. Full verbose dmesg, etc, in pr/114489. ==ml sardines/boot/kernel;kgdb kernel.symbols /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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-marcel-freebsd". Unread portion of the kernel message buffer: panic: _mtx_lock_sleep: recursed on non-recursive mutex ahc_lock @ /usr/src/sys/dev/aic7xxx/aic7xxx_osm.h:203 cpuid = 0 KDB: enter: panic Physical memory: 243 MB Dumping 62 MB: 47 31 15 #0 doadump () at pcpu.h:195 195 pcpu.h: No such file or directory. in pcpu.h (kgdb) backtrace #0 doadump () at pcpu.h:195 #1 0xc048c629 in db_fncall (dummy1=-875263368, dummy2=0, dummy3=524358, dummy4=0xcbd489e4 "ÐèHÀ") at /usr/src/sys/ddb/db_command.c:486 #2 0xc048cb95 in db_command_loop () at /usr/src/sys/ddb/db_command.c:401 #3 0xc048e305 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:222 #4 0xc0772426 in kdb_trap (type=3, code=0, tf=0xcbd48b88) at /usr/src/sys/kern/subr_kdb.c:502 #5 0xc09faa2b in trap (frame=0xcbd48b88) at /usr/src/sys/i386/i386/trap.c:620 #6 0xc09e053b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc07725a2 in kdb_enter (msg=0xc0a908ed "panic") at cpufunc.h:60 #8 0xc074b954 in panic (fmt=0xc0a8f7ce "_mtx_lock_sleep: recursed on non-recursive mutex %s @ %s:%d\n") at /usr/src/sys/kern/kern_shutdown.c:547 #9 0xc07400b7 in _mtx_lock_sleep (m=0xc228ca30, tid=3255925760, opts=0, file=0xc0a51887 "/usr/src/sys/dev/aic7xxx/aic7xxx_osm.h", line=203) at /usr/src/sys/kern/kern_mutex.c:311 #10 0xc07402df in _mtx_lock_flags (m=0xc228ca30, opts=0, file=0xc0a51887 "/usr/src/sys/dev/aic7xxx/aic7xxx_osm.h", line=203) at /usr/src/sys/kern/kern_mutex.c:187 #11 0xc04c95f7 in ahc_timeout (scb=0xc22a67b0) at aic7xxx_osm.h:203 #12 0xc04d6f1e in ahc_platform_timeout (arg=0xc22a67b0) at aic_osm_lib.c:72 #13 0xc075d1c9 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:281 #14 0xc07308a5 in ithread_loop (arg=0xc2115310) at /usr/src/sys/kern/kern_intr.c:1036 #15 0xc072dd28 in fork_exit (callout=0xc07306f0 <ithread_loop>, arg=0xc2115310, frame=0xcbd48d38) at /usr/src/sys/kern/kern_fork.c:797 #16 0xc09e05b0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:205 (kgdb) up 9 #9 0xc07400b7 in _mtx_lock_sleep (m=0xc228ca30, tid=3255925760, opts=0, file=0xc0a51887 "/usr/src/sys/dev/aic7xxx/aic7xxx_osm.h", line=203) at /usr/src/sys/kern/kern_mutex.c:311 311 KASSERT((m->lock_object.lo_flags & LO_RECURSABLE) != 0, -- Michael W. Lucas mwlucas@BlackHelicopters.org, mwlucas@FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070711125854.GA23787>