From owner-freebsd-stable@FreeBSD.ORG Thu Feb 14 20:40:03 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BABE9166 for ; Thu, 14 Feb 2013 20:40:03 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 5688BC32 for ; Thu, 14 Feb 2013 20:40:02 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id ez12so398806wid.5 for ; Thu, 14 Feb 2013 12:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=WOLFw9Wn7TgUWxVCop3srX3Z2Y7HHT9nDUKoVKLn5/Q=; b=zncSqkwHjrhV/TCDNFyMricgw+2gyH4IVKJY2ZqmwiUvZd7OnEoQzndLFd7lAbrEOg 6jFf7Xx9ZbU10cH8bpGLi1io4tQSew5HespYtpR9bT/ZkYPAe5aYpHbWvVxfLuXej5ql gG0eTfLe+/TFyLPb36TwcBkbYITP1jq1qXtx+V8fLKybzmHxi9UG2PFFILoXTLOvMUsi 6Tnw3LBQEdejKb7gplTK2b2hjrmejiYLhUD166SpSGVBHCcnprjjikyyzt0CoohLKiE3 iouTr+PeGmkZRAC7bAaVACYu5IEnAU+XYaJ5a392mqJW3FqgpjygOkWlAKicqDIhz1sc xY/g== X-Received: by 10.194.110.69 with SMTP id hy5mr159141wjb.1.1360874402089; Thu, 14 Feb 2013 12:40:02 -0800 (PST) Received: from melon.malikania.fr (177.33.91.91.rev.sfr.net. [91.91.33.177]) by mx.google.com with ESMTPS id hb9sm1483927wib.3.2013.02.14.12.40.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Feb 2013 12:40:01 -0800 (PST) From: David Demelier To: freebsd-stable@freebsd.org Subject: Re: Panic at shutdown Date: Thu, 14 Feb 2013 21:39:54 +0100 Message-ID: <3573487.tLQXrFnTMD@melon.malikania.fr> User-Agent: KMail/4.9.5 (FreeBSD/9.1-RELEASE; KDE/4.9.5; amd64; ; ) In-Reply-To: References: <51127767.1030007@gmail.com> <2872289.1yXr0e1VeO@melon.malikania.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Cc: Ronald Klop X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 20:40:03 -0000 Le mardi 12 f=E9vrier 2013 21:42:01 Ronald Klop a =E9crit : > On Tue, 12 Feb 2013 19:44:49 +0100, David Demelier >=20 > wrote: > > Le mardi 12 f=E9vrier 2013 10:01:10 Andriy Gapon a =E9crit : > >> on 12/02/2013 09:57 David Demelier said the following: > >> > Yes I have added debugging option in my kernel. I have makeoptio= ns > >> > DEBUG=3D-g in my config. Do I need more ? > >>=20 > >> .symbols? > >=20 > > I don't understand what you are saying, I have > > /boot/kernel/kernel.symbols. > > Please tell me what I'm doing wrong. I've just read and done the st= eps > > written > > there : > >=20 > > http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug= - > > gdb.html > >=20 > > So I've run > >=20 > > # cd /usr/obj/usr/src/sys/Melon > > # kgdb kernel.debug /var/crash/vmcore.0 >=20 > Why not something like kgdb /boot/kernel/kernel.symbols > /var/crash/vmcore.0? > That looks like what the manual page of kgdb seems to suggest. >=20 > Regards, > Ronald. >=20 > > and that's the only trace I get using bt full : > >=20 > > 229 #define IS_BSP() (PCPU_GET(cpuid) =3D=3D 0) > > (kgdb) bt full > > #0 doadump (textdump=3D) at pcpu.h:229 > > No locals. > > #1 0x0000000000000000 in ?? () > > No symbol table info available. > >=20 > >=20 > > -- > > David Demelier > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebs= d.org" >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.= org" Today I have a little bit more : #0 0xffffffff804f358b in isbufbusy (bp=3D0xfffffe0003810480) at=20 /usr/src/sys/kern/kern_shutdown.c:280 280 if (((bp->b_flags & (B_INVAL | B_PERSISTENT)) =3D=3D 0 = && (kgdb) bt full #0 0xffffffff804f358b in isbufbusy (bp=3D0xfffffe0003810480) at=20 /usr/src/sys/kern/kern_shutdown.c:280 No locals. #1 0x0000000000000004 in ?? () No symbol table info available. #2 0xffffffff804f3aa6 in kern_reboot (howto=3D260) at=20 /usr/src/sys/kern/kern_shutdown.c:451 _ep =3D (struct eventhandler_entry *) 0x100 _el =3D (struct eventhandler_list *) 0xffffffff804f35b3 first_buf_printf =3D 1 #3 0xffffffff804f3f69 in panic (fmt=3DVariable "fmt" is not available.= ) at /usr/src/sys/kern/kern_shutdown.c:624 td =3D (struct thread *) 0x1 bootopt =3D 260 newpanic =3D 1 ap =3D {{gp_offset =3D 16, fp_offset =3D 48, overflow_arg_area = =3D=20 0xffffff80daaf0420, reg_save_area =3D 0xffffff80daaf0350}} panic_cpu =3D 0 buf =3D "general protection fault", '\0' #4 0xffffffff806fcf69 in trap_fatal (frame=3D0x9, eva=3DVariable "eva"= is not=20 available. ) at /usr/src/sys/amd64/amd64/trap.c:851 code =3D Variable "code" is not available. --=20 David Demelier