Re: debugging a run of poudriere-bulk

From: Shane Ambler <FreeBSD_at_ShaneWare.Biz>
Date: Thu, 4 Oct 2018 13:14:55 +0930
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 <jname> -p <portstree> -i -o <cat/port>

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
Received on Thu Oct 04 2018 - 01:50:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC