From owner-freebsd-stable@freebsd.org Fri Jul 28 03:02:51 2017 Return-Path: Delivered-To: freebsd-stable@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 BDF49DB7D62 for ; Fri, 28 Jul 2017 03:02:51 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 58DB8705DC for ; Fri, 28 Jul 2017 03:02:50 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id v6S32fhB087548 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Jul 2017 05:02:42 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: kostikbel@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id v6S32cqm092119; Fri, 28 Jul 2017 10:02:38 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: stable/11 regression: SIGSYS in the /bin/sh To: Konstantin Belousov References: <597A018D.4040601@grosbein.net> <20170727162856.GH1700@kib.kiev.ua> Cc: FreeBSD Stable From: Eugene Grosbein Message-ID: <597AA94E.4060004@grosbein.net> Date: Fri, 28 Jul 2017 10:02:38 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20170727162856.GH1700@kib.kiev.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 3.3 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: *** X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2017 03:02:51 -0000 On 27.07.2017 23:28, Konstantin Belousov wrote: >> Trying to mount root from ufs:/dev/ada0s1a [ro]... >> start_init: trying /sbin/init >> ppid 21 (sh), uid 0: exited on signal 12 >> id 21 comm sh: nosys 42 >> Jul 27 14:30:23 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode > Take your /bin/sh, libraries and rtld to some other machine and try to > catch where the pipe(2) call come from. I do not see any other way > forward, assuming your build env is not contaminated somehow. Nevermind, I've just resolved this: this NanoBSD installation by default has two partitions ad0s1a (old 8.4-STABLE) and ad0s2a (new 11.1-STABLE) with "BootEasy" boot0 to choose from and for unknown reason it mounts root from ad0s1a with old binaries if booted from ad0s2a. That is, it runs /boot/loader from ad0s2a and it loads 11.1 kernel using ad0s2a but mounts root from ad0s1a. Sorry for noise.