From owner-freebsd-stable@FreeBSD.ORG Sun Dec 8 21:08:28 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E62CEB97 for ; Sun, 8 Dec 2013 21:08:27 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 726181FD0 for ; Sun, 8 Dec 2013 21:08:27 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id u56so2686376wes.36 for ; Sun, 08 Dec 2013 13:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=J08aZv5eucBFatGmLaudZOOrsp5glA6JrlmOpLooSVE=; b=qu++BAxe/fyPfU4Ci+zW7qhkMzaPbbFuAWrNt5/IusEaUUJKXVdv0hdgXZn/7OX+/T XK/4vg1sWV9SX3FbDqWNN6ncPdgdAKkfTr1XRpujQrPhSxtm0PdkbYAR3tLXW51ytiUg o9O52C1FMAuF9spKgiR2U5lp/vIWkFAlll3+bBnAR9smcdiBEVC3WK3fnNxeaDBj/jZp 49R5xY4Da9ofos6bKdne8bcxAyB+f9kjrBvWdyo/UAHiTQ0aWPU4PHyEolvOy0Ac3MqV x854GueEI/Vo148NFwZG4V5EiPJomgPNisknq4RKAh7ljsonFG99EyvNSY5UQWVoDxMC gTJg== MIME-Version: 1.0 X-Received: by 10.180.74.45 with SMTP id q13mr11173252wiv.47.1386536905686; Sun, 08 Dec 2013 13:08:25 -0800 (PST) Received: by 10.217.89.138 with HTTP; Sun, 8 Dec 2013 13:08:25 -0800 (PST) Date: Sun, 8 Dec 2013 23:08:25 +0200 Message-ID: Subject: FreeBSD 10 r259108 - kernel debug panic From: =?ISO-8859-1?Q?=D6zkan_KIRIK?= To: freebsd-stable Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2013 21:08:28 -0000 Hi, I am using FreeBSD r259108 amd64. I'm trying to debug a deadlock about ufs. I compiled GENERIC kernel with the options below: makeoptions DEBUG=-g options INVARIANTS options INVARIANT_SUPPORT options WITNESS options DEBUG_LOCKS options DEBUG_VFS_LOCKS options DIAGNOSTIC options DDB while booting, kernel panics: ... ... em0: link state changed to UP random: unblocking device. panic: mtx_lock_spin: recursed on non-recursive mutex cnputs_mtx @ /usr/src/sys/kern/kern_cons.c:500 cpuid = 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+Ox2b/frame Oxfffffe0098314160 kdb_backtrace() at kdb_backtrace+0x39/frame Oxfffffe0098314210 vpanic() at vpanic+0x126/frame Oxfffffe0098314250 kassert_panic() at kassert_panic+0x136/frame Oxfffffe00983142c0 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x166/frame 0x11ff1e0098314300 cnputs() at cnputs+0x32/frame Oxfffffe0098314320 putchar() at putchar+Oxl3a/frame Oxfffffe00983143a0 kvprintf() at kvprintf+Oxda/frame Oxfffffe00983144a0 vprintf() at vprintf+0x87/frame 0x1111fe0098314570 printf() at printf+0x43/frame Oxfffffe00983145d0 witness_checkorder() at witness_checkorder+Oxa99/frame Oxfffffe0098314660 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x95/frame Oxfffffe00983146a0 sc_puts() at sc_puts+OxbO/frame Oxfffffe00983146e0 sc_cnputc() at sc_cnputc+Oxe5/frame Oxfffffe0098314710 cnputc() at cnputc+0x7f/frame Oxfffffe0098314740 cnputs() at cnputs+0x58/frame Oxfffffe0098314760 putchar() at putchar+Oxl3a/frame Oxfffffe00983147e0 kvprintf() at kvprintf+Oxda/frame Oxfffffe00983148e0 vprintf() at vprintf+0x87/frame Oxfffffe00983149b0 printf() at printf+0x43/frame Oxfffffe0098314a10 witness_checkorder() at witness_checkorder+Oxa99/frame Oxfffffe0098314aa0 __mtx_lock_spin_flags() at __mtx_lock spin flags+0x95/frame Oxfffffe0098314ae0 msleep_spin_sbt() at msleep_spin_sbt+gx90/frame Oxfffffe0098314b70 random_kthread() at random_kthread+Ox1d0/frame Oxfffffe0098314bb0 fork_exit() at fork exit+Ox84/frame Oxfffffe0098314bf0 fork_trampoline() at fork_trampoline+Oxe/frame Oxfffffe0098314bf0 --- fork_ 0, rip = 0, rsp = Oxfffffe0098314cb0, rbp = 0 --- KDB: enter: panic [ thread pid 14 tid 100013 ] Stopped at kdb_enter+Ox3e: mug SO,kdb_why db> What could be the problem?