From owner-freebsd-current@freebsd.org Fri Oct 5 06:20:17 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 7FBA610C38A7 for ; Fri, 5 Oct 2018 06:20:17 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from smh-06.1blu.de (smh-06.1blu.de [178.254.0.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2228D7335D; Fri, 5 Oct 2018 06:20:16 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1g8JT5-0004Al-D4; Fri, 05 Oct 2018 08:20:08 +0200 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1g8JT5-00057u-9C; Fri, 05 Oct 2018 08:20:07 +0200 Date: Fri, 5 Oct 2018 08:20:07 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org, kde@freebsd.org Subject: Re: debugging a run of poudriere-bulk Message-ID: <20181005062007.GA11816@sh4-5.1blu.de> Reply-To: Matthias Apitz Mail-Followup-To: freebsd-current@freebsd.org, kde@freebsd.org References: <20181003114114.GA4946@c720-r314251> <0c07c460-4f3a-2fbb-d236-e97c77e74b4d@ShaneWare.Biz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0c07c460-4f3a-2fbb-d236-e97c77e74b4d@ShaneWare.Biz> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) 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: Fri, 05 Oct 2018 06:20:17 -0000 El día Thursday, October 04, 2018 a las 01:14:55PM +0930, Shane Ambler escribió: > > 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. Thanks! One should read man pages completely in advance and not only the part of 'poudriere bulk ...'. I did so and in nthis case the crash occurs *after* the package is complete: ... ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) =>> Checking for staging violations... done =================================================== ===> Building package for kde-workspace-kde4-4.11.22_26 file sizes/checksums [2126]: .......... done packing files [2126]: .......... done packing directories [0]: . done =========================================================================== =>> Recording filesystem state for preinst... done =================================================== ===> Installing for kde-workspace-kde4-4.11.22_26 ===> Checking if kde-workspace-kde4 already installed ===> Registering installation for kde-workspace-kde4-4.11.22_26 Child process pid=75639 terminated abnormally: Segmentation faul *** Error code 139 Stop. make: stopped in /usr/ports/x11/kde-workspace-kde4 =================================================== [00:13:29] Installing packages [00:13:29] Installing run-depends for x11/kde-workspace-kde4 | kde-workspace-kde4-4.11.22_26 # ls -l /wrkdirs/usr/ports/x11/kde-workspace-kde4/work/pkg/kde-workspace-kde4-4.11.22_26.txz -rw-r--r-- 1 nobody wheel 18338720 Oct 4 14:02 /wrkdirs/usr/ports/x11/kde-workspace-kde4/work/pkg/kde-workspace-kde4-4.11.22_26.txz Poudriere installs the package 'pkg' into the jail to could make use of 'pkg-static' (and other tools). Maybe it would be an idea to create outside a special version of this package which have a special version of 'pkg-static' in this, for example a shellsript with the name pkg-static which is something like: #!/bin/sh echo $0 $* > /tmp/pkg-static-args.$$ truss -o /tmp/pkg-static.$$ /usr/local/sbin/pkgstatic.exec $* to get more information about the crash. Other ideas? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub October, 7 -- The GDR was different: Peace instead of Bundeswehr and wars, Druschba instead of Nazis, to live instead of to survive.