From owner-freebsd-current@freebsd.org Tue Aug 22 13:38:39 2017 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 1982ADEBE51 for ; Tue, 22 Aug 2017 13:38:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id F40782768 for ; Tue, 22 Aug 2017 13:38:38 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.ysv.freebsd.org (Postfix) id F0313DEBE50; Tue, 22 Aug 2017 13:38:38 +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 EFB54DEBE4F for ; Tue, 22 Aug 2017 13:38:38 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ACD2C2767 for ; Tue, 22 Aug 2017 13:38:38 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id v7MDcb7h031886; Tue, 22 Aug 2017 13:38:37 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id v7MDca14031885; Tue, 22 Aug 2017 06:38:36 -0700 (PDT) (envelope-from david) Date: Tue, 22 Aug 2017 06:38:36 -0700 From: David Wolfskill To: Konstantin Belousov Cc: current@freebsd.org Subject: Re: SIGSEGV in /bin/sh after r322740 -> r322776 update Message-ID: <20170822133836.GQ1130@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Konstantin Belousov , current@freebsd.org References: <20170822114627.GC1130@albert.catwhisker.org> <20170822115923.GC1700@kib.kiev.ua> <20170822122836.GH1130@albert.catwhisker.org> <20170822123449.GD1700@kib.kiev.ua> <20170822124617.GN1130@albert.catwhisker.org> <20170822131958.GE1700@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1R3djOICCIfo/gUr" Content-Disposition: inline In-Reply-To: <20170822131958.GE1700@kib.kiev.ua> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 22 Aug 2017 13:38:39 -0000 --1R3djOICCIfo/gUr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 22, 2017 at 04:19:58PM +0300, Konstantin Belousov wrote: > ... > > > Ok, can you rebuild kernel and libc from scratch ? I.e. remove your > > > object directories. > >=20 > > I think I'll need a working /bin/sh to do that. As noted, I could > > try the stable/11 /bin/sh; on the other hand, if it's dying in a > > library, that's not likely to help a whole lot. :-} > I highly suspect that this is not /bin/sh at all. Backtrace strongly > suggests that the malloc() has issues, but again I suspect that the > reason is not an issue in malloc, but its use of TLS. I think I hope that this use of "TLS" is not the one associated with (say) SSL.... :-} > The amd64 changes were to the TLS base register handling. So you might > try to boot previous kernel. If this works out without replacing libc > then it is definitely TLS, but I still do not know what is wrong. > .... OK; we have a bit of progress, then: * When I tried to rename the kernel directories in /boot, I got more segfaults. So I figured I'd use the boot menu to select kernel.old, and just tried "sudo shutdown -r now" -- and got a segfault. "sudo reboot" did, as well. So did "sudo kill 1". On a whim, I tried "sudo halt"; that actually worked. * After the (successful) reboot from kernel.old, I was able to rename kernel directories without issue. This may be useflu evidence. * Flushed with that success, I have started a fresh clean build of r322776. (I had managed to clear /usr/obj prior to the reboot.) * I should be able to provide updated status within about 30 minutes. Thanks again for all your help! Peace, david --=20 David H. Wolfskill david@catwhisker.org If we wish to eliminate sources of Fake News, start at the top: D. Trump. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --1R3djOICCIfo/gUr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJZnDPcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XnksH/3/If/UYHL4YlTcZxDqUESgk glp6hVwnX41ByWNA/80h206R2UuWaY8T/upqi+doOi/w0WRWH2pAit/T/i1dXCQi 8Alt2WIWNwtFD57Nh70JZSBgW/qac+D/5U7AHCdCjOdrHJNJErxQy8BTxM5gX0C7 3N7UD61RtuQrLYY0E8v8sA72Dj06ld7mqerw9Es2t/0QoBOsdONV2pxm/ixKYnMs 7El6yy7GaDtRYj5GjE9HTZHznE45MBl+qrsLRReA+aKnZvT30djgZ1RZf+JFMf5B y0w8L4VkpiVh4bVahHGiSd1WH6lJkpnQPoRrya6LVO4ilklGcLZVBoNhrUS2IyY= =e0J4 -----END PGP SIGNATURE----- --1R3djOICCIfo/gUr--