Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2015 23:44:19 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Pawel Pekala <pawel@FreeBSD.org>
Cc:        "K. Macy" <kmacy@freebsd.org>, John-Mark Gurney <jmg@funkthat.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Instant panic while trying run ports-mgmt/poudriere
Message-ID:  <20150806214419.GA20809@dft-labs.eu>
In-Reply-To: <20150806233328.47a02594@FreeBSD.org>
References:  <20150713231205.627bab36@FreeBSD.org> <20150714223829.GY8523@funkthat.com> <20150715174616.652d0aea@FreeBSD.org> <20150715180526.GM8523@funkthat.com> <20150715223703.78b9197c@FreeBSD.org> <CAHM0Q_PLRP4t6JgkstXHNOVV%2B2DyathOgi8bg4-RQkW-BcGXow@mail.gmail.com> <20150806233328.47a02594@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 06, 2015 at 11:33:28PM +0200, Pawel Pekala wrote:
> Hi K.,
> 
> On 2015-08-06 12:33 -0700, "K. Macy" <kmacy@freebsd.org> wrote:
> >Is this still happening?
> 
> Still crashes:
> 
> Thu Aug  6 23:22:05 CEST 2015
> 
> FreeBSD blaviken.slowicza.org 11.0-CURRENT FreeBSD 11.0-CURRENT #50 r286370: Thu Aug  6 19:55:29 CEST 2015     root@blaviken.slowicza.org:/usr/obj/hdd/src/sys/GENERIC  amd64
> 
> panic: 
> 
> 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 "amd64-marcel-freebsd"...
> 
> Unread portion of the kernel message buffer:
> 
> 
> Fatal trap 9: general protection fault while in kernel mode
> cpuid = 2; apic id = 02
> instruction pointer	= 0x20:0xffffffff809d6b80
> stack pointer	        = 0x28:0xfffffe046cc68a00
> frame pointer	        = 0x28:0xfffffe046cc68a50
> 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		= 2147 (sh)
> 
> #8  0xffffffff80e44652 in calltrap ()
>     at /hdd/src/sys/amd64/amd64/exception.S:235
> #9  0xffffffff809d6b80 in knote (list=0xfffff801dbebfea0, hint=2147483648, 
>     lockflags=<value optimized out>) at /hdd/src/sys/kern/kern_event.c:1920
> #10 0xffffffff809dc424 in exit1 (td=0xfffff802bd0559a0, 
>     rval=<value optimized out>, signo=0) at /hdd/src/sys/kern/kern_exit.c:564
> #11 0xffffffff809db8cd in sys_sys_exit (td=0x0, uap=<value optimized out>)
>     at /hdd/src/sys/kern/kern_exit.c:178
> #12 0xffffffff80e64c22 in amd64_syscall (td=0xfffff802bd0559a0, traced=0)
>     at subr_syscall.c:133
> #13 0xffffffff80e4493b in Xfast_syscall ()
>     at /hdd/src/sys/amd64/amd64/exception.S:395
> #14 0x0000000800922eea in ?? ()
> Previous frame inner to this frame (corrupt stack?)
> Current language:  auto; currently minimal
> (kgdb) 
> 

Sorry, I completely forgot about this.

Can you please modify debug flags in your kernel config file to be "-O0 -g3"
and reproduce with that? This should allow kgdb to obtain full info
(along with exact rash site for inspection) without further tinkering or
guessing.

-- 
Mateusz Guzik <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150806214419.GA20809>