From owner-freebsd-current@freebsd.org Sat Jun 4 04:41:19 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5DFB7B68467 for ; Sat, 4 Jun 2016 04:41:19 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4C9FE11AD for ; Sat, 4 Jun 2016 04:41:19 +0000 (UTC) (envelope-from tim@kientzle.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4BA41B68466; Sat, 4 Jun 2016 04:41:19 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B4CFB68465 for ; Sat, 4 Jun 2016 04:41:19 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (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 2BD9011AA; Sat, 4 Jun 2016 04:41:18 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id u544fBUS078250; Sat, 4 Jun 2016 04:41:11 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.102] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id nspwgekg47qxje9hzscm6kama2; Sat, 04 Jun 2016 04:41:10 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: buildworld: /usr/bin/ar segfault From: Tim Kientzle In-Reply-To: <1962f7f5-652a-a2f4-c443-0dfab7a3e80d@FreeBSD.org> Date: Fri, 3 Jun 2016 21:41:10 -0700 Cc: "current@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <8A7BD41B-4764-4C0F-990A-9677054761D8@kientzle.com> References: <1962f7f5-652a-a2f4-c443-0dfab7a3e80d@FreeBSD.org> To: Eric van Gyzen X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 04 Jun 2016 04:41:19 -0000 > On Jun 3, 2016, at 10:23 AM, Eric van Gyzen = wrote: >=20 > My buildworld just failed very early with a segfault from /usr/bin/ar: >=20 > -------------------------------------------------------------- >>>> stage 1.1: legacy release compatibility shims > -------------------------------------------------------------- > ... > --- libegacy.a --- > building static egacy library > ar -crD libegacy.a `NM=3D'nm' NMFLAGS=3D'' lorder dummy.o | tsort = -q` > Segmentation fault (core dumped) > *** [libegacy.a] Error code 139 >=20 >=20 > In __archive_write_allocate_filter(), a->filter_last was pointing to > archive_write_ar_header(). a->format_write_header should have pointed > to this function. The offset between these two fields in struct = archive > is 48 bytes. Sure enough, that structure recently grew by 48 bytes. >=20 > This would seem to indicate that ar (or libarchive.a) was built with > mismatched objects. Unfortunately, I don't have good records of what > build options and flags I used. I /think/ I used either > -DWITH_SYSTEM_COMPILER or no options at all. The build of 'ar' shouldn't matter since it's a client of libarchive and libarchive clients do not ever see or manipulate the internals of struct archive_write. The problem would be with the build of the libarchive library. It sounds like you somehow had a stale archive_write_set_format_ar.o that did not get rebuilt when archive_write_private.h got updated = recently. If you still have the /usr/obj tree around, could you check the dates on = these files: archive_write_set_format_ar.o (in /usr/obj) archive_write_private.h (in /usr/src) If those dates are in the wrong order (the .o should be newer), then the make definitely went awry somewhere. Tim