From owner-freebsd-current@freebsd.org Wed Aug 10 15:03:58 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 EED82BB5C72 for ; Wed, 10 Aug 2016 15:03:58 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20D4B19CD; Wed, 10 Aug 2016 15:03:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u7AF3qdr057150 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 10 Aug 2016 18:03:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u7AF3qdr057150 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u7AF3p0p057149; Wed, 10 Aug 2016 18:03:51 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 10 Aug 2016 18:03:51 +0300 From: Konstantin Belousov To: Matteo Riondato Cc: FreeBSD Current Subject: Re: Signal 12 on make update (or any target in /usrc/src) Message-ID: <20160810150351.GT83214@kib.kiev.ua> References: <72EC5BF8-C383-4F75-B47F-213613584BA7@FreeBSD.org> <20160810144139.GR83214@kib.kiev.ua> <07F8C5E5-3768-4848-A0EE-7963C8657286@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07F8C5E5-3768-4848-A0EE-7963C8657286@FreeBSD.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Wed, 10 Aug 2016 15:03:59 -0000 On Wed, Aug 10, 2016 at 10:49:40AM -0400, Matteo Riondato wrote: > > > On Aug 10, 2016, at 10:41 AM, Konstantin Belousov wrote: > > On Wed, Aug 10, 2016 at 10:33:23AM -0400, Matteo Riondato wrote: > >> Hi all, > >> > >> I recently upgraded from a late June (pre 11-branch, as far as I can tell) revision to r303771. > >> > >> Now, running ???make update??? (or buildworld, ???) in /usr/src fails with a signal 12: > >> > >> matteo@triton:/usr/src$ sudo make update > >> Password: > >> *** Signal 12 > > > > You did not updated, I think. You, most likely, inly updated the kernel, > > but left the old userspace in place, at least libc. > > That would be surprising but it may have happened, as I don???t remember without doubts to have run installworld :/ > > > Signal 12 is SIGSYS, which means that the program tries to use a syscall > > not implemented by the kernel. My guess is that your kernel lacks option > > COMPAT_FREEBSD10, and the failing syscall is pipe(2). > > Indeed I do not have COMPAT_FREEBSD10, because I believed my previous world revision was >302092, as noted by the entry about pipe(2) in UPDATING. > > Any suggestion on how to fix this? > Boot the old kernel, add COMPAT_FREEBSD10 to kernel config, and rebuild/install world and kernel perhaps? > If old kernel works, then this would allow you to recover. Take libc.so.7 from the BETA-4, and put it into /lib, taking backup of your current libc first. I suspect this is the easiest route if old kernel does not match with your world.