From owner-freebsd-current@FreeBSD.ORG Wed Oct 23 06:59:41 2013 Return-Path: Delivered-To: freebsd-current@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 ESMTP id 4ED5AECE; Wed, 23 Oct 2013 06:59:41 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-x22b.google.com (mail-ee0-x22b.google.com [IPv6:2a00:1450:4013:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B7435276A; Wed, 23 Oct 2013 06:59:40 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id e52so195729eek.16 for ; Tue, 22 Oct 2013 23:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=aEAiWbKpw1UgbpdwF+SRSkv+LVVff3/6Bu4uk7uJZZs=; b=ZWNZuI++MDaM8FRd0ht26c9U/BSB49Q67f29ylszTr+6Y7OcQZu8fh3S2qUkmWBk3U MEzs+j5T9xSwhlErjxGMvfQ9L3kjkfkfDAlVUAnJCf4n+eyO/PO8MnhxJcW40307DNUw BzTD3zX+Yon+Nn174ZR05h6CwqsKyylKd5NWrAWLmu+xzC3d9tW8s/Wo3rSN2tj4Rk7z 2AXjcVYz4CS/+vj6vj0v2K9QF3HzcZ39loGkHnIOQ2a7oBaWkITp48Qc3qk4mq4BhZoL 5bJ1LGbHhvfZV571ooAX4sie/b/vnfGvkaP1jvRnDiX0r4TZWs6R3lI8DH3YS4y6fjry GtyA== X-Received: by 10.14.246.11 with SMTP id p11mr69289eer.9.1382511579047; Tue, 22 Oct 2013 23:59:39 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([178.137.150.35]) by mx.google.com with ESMTPSA id z12sm66301566eev.6.2013.10.22.23.59.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Oct 2013 23:59:38 -0700 (PDT) Sender: Alexander Motin Message-ID: <526773D8.7030002@FreeBSD.org> Date: Wed, 23 Oct 2013 09:59:36 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130616 Thunderbird/17.0.6 MIME-Version: 1.0 To: Bryan Drewery Subject: Re: [CAM] panic / general protection fault while in kernel mode on head r256931 References: <5267178D.1090608@FreeBSD.org> In-Reply-To: <5267178D.1090608@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 23 Oct 2013 06:59:41 -0000 Hi. Unfortunately I have never seen that, but I'll try to look harder. Could you please tell a bit about your controllers/devices? What triggered the issue? If you still have the full dumps, could you check values of ccb_h, ccb_h->cbfcnp, ccb_h->path and ccb_h->path->periph for the "deadcode" somewhere or something? On 23.10.2013 03:25, Bryan Drewery wrote: > Encountered twice: > >> Fatal trap 9: general protection fault while in kernel mode >> cpuid = 0; apic id = 00 >> instruction pointer = 0x20:0xffffffff802e612a >> stack pointer = 0x28:0xfffffe118af62b20 >> frame pointer = 0x28:0xfffffe118af62b60 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, long 1, def32 0, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 2 (doneq0) >> trap number = 9 >> panic: general protection fault >> cpuid = 0 >> KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe118af62690 >> kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe118af62740 >> vpanic() at vpanic+0x126/frame 0xfffffe118af62780 >> panic() at panic+0x43/frame 0xfffffe118af627e0 >> trap_fatal() at trap_fatal+0x3a2/frame 0xfffffe118af62840 >> trap() at trap+0x863/frame 0xfffffe118af62a60 >> calltrap() at calltrap+0x8/frame 0xfffffe118af62a60 >> --- trap 0x9, rip = 0xffffffff802e612a, rsp = 0xfffffe118af62b20, rbp = 0xfffffe118af62b60 --- >> xpt_done_process() at xpt_done_process+0x36a/frame 0xfffffe118af62b60 >> xpt_done_td() at xpt_done_td+0x13d/frame 0xfffffe118af62bb0 >> fork_exit() at fork_exit+0x84/frame 0xfffffe118af62bf0 >> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe118af62bf0 >> --- trap 0, rip = 0, rsp = 0xfffffe118af62cb0, rbp = 0 --- > > 2nd: > >> Fatal trap 9: general protection fault while in kernel mode >> cpuid = 5; apic id = 05 >> instruction pointer = 0x20:0xffffffff802e612a >> stack pointer = 0x28:0xfffffe118af62b20 >> frame pointer = 0x28:0xfffffe118af62b60 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, long 1, def32 0, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 2 (doneq0) >> trap number = 9 >> panic: general protection fault >> cpuid = 5 >> KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe118af62690 >> kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe118af62740 >> vpanic() at vpanic+0x126/frame 0xfffffe118af62780 >> panic() at panic+0x43/frame 0xfffffe118af627e0 >> trap_fatal() at trap_fatal+0x3a2/frame 0xfffffe118af62840 >> trap() at trap+0x863/frame 0xfffffe118af62a60 >> calltrap() at calltrap+0x8/frame 0xfffffe118af62a60 >> --- trap 0x9, rip = 0xffffffff802e612a, rsp = 0xfffffe118af62b20, rbp = 0xfffffe118af62b60 --- >> xpt_done_process() at xpt_done_process+0x36a/frame 0xfffffe118af62b60 >> xpt_done_td() at xpt_done_td+0x13d/frame 0xfffffe118af62bb0 >> fork_exit() at fork_exit+0x84/frame 0xfffffe118af62bf0 >> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe118af62bf0 >> --- trap 0, rip = 0, rsp = 0xfffffe118af62cb0, rbp = 0 --- > >> (kgdb) #0 doadump (textdump=1) at pcpu.h:219 >> #1 0xffffffff808bbb27 in kern_reboot (howto=260) >> at /usr/src/sys/kern/kern_shutdown.c:447 >> #2 0xffffffff808bc035 in vpanic (fmt=, >> ap=) at /usr/src/sys/kern/kern_shutdown.c:754 >> #3 0xffffffff808bc083 in panic (fmt=) >> at /usr/src/sys/kern/kern_shutdown.c:683 >> #4 0xffffffff80cb62d2 in trap_fatal (frame=, >> eva=) at /usr/src/sys/amd64/amd64/trap.c:882 >> #5 0xffffffff80cb5f13 in trap (frame=) >> at /usr/src/sys/amd64/amd64/trap.c:224 >> #6 0xffffffff80c9b3a2 in calltrap () >> at /usr/src/sys/amd64/amd64/exception.S:232 >> #7 0xffffffff802e612a in xpt_done_process (ccb_h=0xfffff80145911800) >> at /usr/src/sys/cam/cam_xpt.c:5242 >> #8 0xffffffff802e905d in xpt_done_td (arg=0xffffffff8144db80) >> at /usr/src/sys/cam/cam_xpt.c:5274 >> #9 0xffffffff8088b064 in fork_exit ( >> callout=0xffffffff802e8f20 , arg=0xffffffff8144db80, >> frame=0xfffffe118af62c00) at /usr/src/sys/kern/kern_fork.c:995 >> #10 0xffffffff80c9b8de in fork_trampoline () >> at /usr/src/sys/amd64/amd64/exception.S:606 >> #11 0x0000000000000000 in ?? () >> Current language: auto; currently minimal >> (kgdb) -- Alexander Motin