From owner-freebsd-current@FreeBSD.ORG  Wed Oct 29 01:39:12 2014
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: current@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 5BBA889A;
 Wed, 29 Oct 2014 01:39:12 +0000 (UTC)
Received: from gw.catspoiler.org (cl-1657.chi-02.us.sixxs.net
 [IPv6:2001:4978:f:678::2])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id DC1EF74D;
 Wed, 29 Oct 2014 01:39:11 +0000 (UTC)
Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2])
 by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s9T1d0Yc023841;
 Tue, 28 Oct 2014 17:39:04 -0800 (PST)
 (envelope-from truckman@FreeBSD.org)
Message-Id: <201410290139.s9T1d0Yc023841@gw.catspoiler.org>
Date: Tue, 28 Oct 2014 18:39:00 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: pkg 1.4 freeze please test test test!
To: bapt@FreeBSD.org
In-Reply-To: <20141028231933.GG26796@ivaldir.etoilebsd.net>
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Cc: ports@FreeBSD.org, current@FreeBSD.org
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Oct 2014 01:39:12 -0000

On 29 Oct, Baptiste Daroussin wrote:
> Hi all,
> 
> We are starting the release process of pkg 1.4, we want to have a better release
> process than with every single previous version of pkg. For that we will need
> you help!
> 
> pkg-devel has been updated to the latest version of pkg as of alpha2.
> 
> Changes you can expect in pkg 1.4 are the following:
> - Loads of bug fixes

I kind of doubt that I'll have time to test it, but I've stumbled across
an interesting test case for package building with pkg-1.3.8_3.

When I tried to build a multimedia/2mandvd package with
poudriere (either bulk or testport) in a FreeBSD 10 amd64 host and jail,
pkg-static segfaults.  Portsmon also sees this failure, which also
seems to be affecting head/amd64 as well:
<http://portsmon.freebsd.org/portoverview.py?category=multimedia&portname=2mandvd&wildcard=>

If I run poudriere jail -i to keep the jail around, I don't see any
leftover core files, I'm guessing because pkg-static's cwd is in the r/o
/usr/ports tree.  If I then cd /usr/ports/multimedia/2mandvd in the
jail and run:
	make clean
	make stage
	make package
pkg-static doesn't segfault, but it never exits either.  I left it
running for a couple of days and it was still stuck at 100% CPU.  If
I truss -p the process, I don't get any output, which means it's not
doing any syscalls.

I tried attaching gdb to the process, but got some strange error
messages that I didn't understand.  I then ran pkg-static under gdb with
the same command line arguments and it still looped forever.  I
interrupted it to get a stack trace, but that wasn't helpful because the
executable was stripped.

If I run pkg instead of pkg-static, it seems to work properly.

I was hoping to gather some more information to file a bug report, but
haven't had time to work on this in the last week.