From owner-freebsd-current@freebsd.org Thu Oct 4 03:50:13 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E5A110BDCC6 for ; Thu, 4 Oct 2018 03:50:13 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [150.101.137.139]) by mx1.freebsd.org (Postfix) with ESMTP id 9104180EB2; Thu, 4 Oct 2018 03:50:12 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from 124-169-218-243.dyn.iinet.net.au (HELO leader.local) ([124.169.218.243]) by ipmail02.adl2.internode.on.net with ESMTP; 04 Oct 2018 13:15:00 +0930 Subject: Re: debugging a run of poudriere-bulk To: freebsd-current@freebsd.org, kde@freebsd.org References: <20181003114114.GA4946@c720-r314251> From: Shane Ambler Message-ID: <0c07c460-4f3a-2fbb-d236-e97c77e74b4d@ShaneWare.Biz> Date: Thu, 4 Oct 2018 13:14:55 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20181003114114.GA4946@c720-r314251> Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Thu, 04 Oct 2018 03:50:13 -0000 On 3/10/18 9:11 pm, Matthias Apitz wrote: > > Hello, > > > I'm trying to nail down PR 231532 of a port which fails to build in > poudriere. In the last phase of the ports build, while creating the pkg > of the built port with pkg-static, this crashes: > > # tail /usr/local/poudriere/data/logs/bulk/freebsd-r338641-ports-20180920/2018-10-03_11h32m17s/logs/kde-workspace-kde4-4.11.22_26.log > Child process pid=85086 terminated abnormally: Segmentation fault > *** Error code 1 > > Stop. > make: stopped in /usr/ports/x11/kde-workspace-kde4 > =>> Cleaning up wrkdir > > # grep 85086 /var/log/messages > Oct 3 11:44:01 jet kernel: pid 85086 (pkg-static), uid 65534: exited on signal 11 > > > How can I enter the jail interactively in the moment after the crash to rerun and > debug pkg-static? Using poudriere testport -j -p -i -o will drop you into the jail after the build stops, you then rerun make manually, check build logs... Logging out will then continue on and clean up the jail. You can also use -I instead of -i and it leaves the jail in place so you can manually connect to and stop the jail. Note that poudriere uses a clean jail with only deps listed for the port, you can add extra BUILD_DEPENDS to get extra ports (gdb valgrind) installed with the test build. -- FreeBSD - the place to B...Software Developing Shane Ambler