From owner-freebsd-stable@FreeBSD.ORG Tue Jun 2 12:01:10 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E873106568D; Tue, 2 Jun 2009 12:01:10 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 0E6E58FC27; Tue, 2 Jun 2009 12:01:09 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by qyk3 with SMTP id 3so11970617qyk.3 for ; Tue, 02 Jun 2009 05:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=z+tcS0Dj2yy432TcqMIH/Xkdg/maxyvNwecpnCv6Pds=; b=pKgPaHgerrzPpSHNWUl0/VqMvy79bXT+gaaTjHNlCyz3orqcrPRr6G1XRgcvz8GfLe CDD/J2lJ21RWVrYVoW7AbvZDtMBTYv/f+aWzJikymJgJxphYel1XgJF2hA6JchTlDezx /GGfVkgKzNT8PkzFTGKENUBlyjWHrcgF7uNsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rD+OA8suQKbggwZvOWu6OyiG7wRBTNcfLs+hufzlyhmuGIVxAeUJs9cHAg+RX1IQm5 pzTfbTL4BNeFt3wfZ/Sa3z71DhlVriwRnXRUd0jAzgkmKxvQ8SjN+MK3ho9VglSm3rcv Veb8c7cxepXd9rIyE2ozk7PS4FN8g/P9f9HfM= MIME-Version: 1.0 Received: by 10.229.85.21 with SMTP id m21mr2013931qcl.9.1243944069369; Tue, 02 Jun 2009 05:01:09 -0700 (PDT) In-Reply-To: <4d7dd86f0906020449m43d03311jf7fcae2fbb5339c1@mail.gmail.com> References: <4d7dd86f0906020449m43d03311jf7fcae2fbb5339c1@mail.gmail.com> Date: Tue, 2 Jun 2009 22:01:09 +1000 Message-ID: <4d7dd86f0906020501h1439eb92g15ae886f72f4d226@mail.gmail.com> From: David N To: freebsd-stable , freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Crash with GJournal switcher X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 12:01:12 -0000 2009/6/2 David N : > FreeBSD 7.2-RELEASE > GPT + gmirror + gjournal > > May 31 10:15:48 netserv1 kernel: Fatal trap 9: general protection > fault while in kernel mode > May 31 10:15:48 netserv1 kernel: cpuid =3D 0; apic id =3D 00 > May 31 10:15:48 netserv1 kernel: instruction pointer =A0 =A0=3D 0x8:0xfff= fffff8059f667 > May 31 10:15:48 netserv1 kernel: stack pointer =A0 =A0 =A0 =A0 =A0=3D > 0x10:0xfffffffe801e0a60 > May 31 10:15:48 netserv1 kernel: frame pointer =A0 =A0 =A0 =A0 =A0=3D > 0x10:0xfffffffe801e0a90 > May 31 10:15:48 netserv1 kernel: code segment =A0 =A0 =A0 =A0 =A0 =3D bas= e 0x0, > limit 0xfffff, type 0x1b > May 31 10:15:48 netserv1 kernel: =3D DPL 0, pres 1, long 1, def32 0, gran= 1 > May 31 10:15:48 netserv1 kernel: processor eflags =A0 =A0 =A0 =3D interru= pt > enabled, resume, IOPL =3D 0 > May 31 10:15:48 netserv1 kernel: current process =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0=3D 39 > (g_journal switcher) > > > This caused one of my mirrors to become stale upon reboot. There > wasn't any crash dumps. > > I've got WITNESS compiled at the moment, hopefully a crash/lockup will > show something. Would the gjournal fail if one of the gmirror disks > was faulty? > > Regards > David N > lock order reversal: 1st 0xffffffff80b184c0 sleepq chain (sleepq chain) @ /usr/src/sys/kern/kern_sig.c:2291 2nd 0xffffffff80afb5b0 scrlock (scrlock) @ /usr/src/sys/dev/syscons/syscons.c:2519 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a witness_checkorder() at witness_checkorder+0x565 _mtx_lock_spin_flags() at _mtx_lock_spin_flags+0x3d sc_puts() at sc_puts+0x93 sc_cnputc() at sc_cnputc+0x5a cnputc() at cnputc+0x49 putchar() at putchar+0x6b kvprintf() at kvprintf+0x72 printf() at printf+0xa4 witness_checkorder() at witness_checkorder+0x44c _mtx_lock_spin_flags() at _mtx_lock_spin_flags+0x3d wakeup() at wakeup+0x11 tdsignal() at tdsignal+0x526 realitexpire() at realitexpire+0x3e softclock() at softclock+0x270 ithread_loop() at ithread_loop+0xe7 fork_exit() at fork_exit+0x112 fork_trampoline() at fork_trampoline+0xe --- trap 0, rip =3D 0, rsp =3D 0xfffffffe8001cd30, rbp =3D 0 --- acquiring duplicate lock of same type: "sleepq chain" 1st sleepq chain @ /usr/src/sys/kern/kern_sig.c:2291 2nd sleepq chain @ /usr/src/sys/kern/subr_sleepqueue.c:232 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a witness_checkorder() at witness_checkorder+0x565 _mtx_lock_spin_flags() at _mtx_lock_spin_flags+0x3d wakeup() at wakeup+0x11 tdsignal() at tdsignal+0x526 realitexpire() at realitexpire+0x3e softclock() at softclock+0x270 ithread_loop() at ithread_loop+0xe7 fork_exit() at fork_exit+0x112 fork_trampoline() at fork_trampoline+0xe --- trap 0, rip =3D 0, rsp =3D 0xfffffffe8001cd30, rbp =3D 0 ---