From owner-freebsd-current@FreeBSD.ORG Wed Jul 11 13:21:53 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A32B516A468 for ; Wed, 11 Jul 2007 13:21:53 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.8]) by mx1.freebsd.org (Postfix) with ESMTP id 504AE13C4B7 for ; Wed, 11 Jul 2007 13:21:53 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.14.1/8.13.8) with ESMTP id l6BCwtqm023809 for ; Wed, 11 Jul 2007 08:58:55 -0400 (EDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.14.1/8.13.8/Submit) id l6BCwttO023808 for current@freebsd.org; Wed, 11 Jul 2007 08:58:55 -0400 (EDT) (envelope-from mwlucas) Date: Wed, 11 Jul 2007 08:58:54 -0400 From: "Michael W. Lucas" To: current@freebsd.org Message-ID: <20070711125854.GA23787@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (bewilderbeast.blackhelicopters.org [127.0.0.1]); Wed, 11 Jul 2007 08:58:55 -0400 (EDT) Cc: Subject: panic: _mtx_lock_sleep: recursed on non-recursive mutex ahc_lock @ /usr/src/sys/dev/aic7xxx/aic7xxx_osm.h:203 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 13:21:53 -0000 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 , 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."