From owner-freebsd-current@freebsd.org Sat Nov 10 16:27:14 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 747C81103343 for ; Sat, 10 Nov 2018 16:27:14 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (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 88E1471E12; Sat, 10 Nov 2018 16:27:13 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 42sj8v5t2Nz6dP8; Sat, 10 Nov 2018 17:27:11 +0100 (CET) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id DAXzhYw3Y9HZ; Sat, 10 Nov 2018 17:27:09 +0100 (CET) Received: from tommy.madpilot.net (host109-128-dynamic.16-87-r.retail.telecomitalia.it [87.16.128.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.madpilot.net (Postfix) with ESMTPSA; Sat, 10 Nov 2018 17:27:09 +0100 (CET) Subject: Re: 13.0 failing to boot multiuser on one PC due to system utilities crashing during rc scipt To: freebsd-current@freebsd.org, kib@freebsd.org References: <62bdb5ff-4d68-cf52-4dd5-f0a3cfa1c788@madpilot.net> From: Guido Falsi Openpgp: preference=signencrypt Autocrypt: addr=mad@madpilot.net; prefer-encrypt=mutual; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wd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ydtaVPBzZatAEjUDDEJmAMLVFs45qfyh MiNapHJo2n3MW/E5omqCvEkDdWX/en3P7CK2TemeaDghMsgkNKax/z0wNo5UZCkOPOz0xpNi UilOVbkuezZZNg65741qee2lfXhQIaZ66yT7hphc/N/z3PIAtLeze4u1VR2EXAuZ2sWAdlKC NTlJMsaU/x70BV11Wd/ypnVzM68dfdQIIAj1iMFAD/lXGlEUmKXg5Ov2VQDlTntQoanCYrAg +8CttPzjrydgLZFq3hrtQmfc0se5yv1WHS69+BsUOG09RvvawUDZxUjW19kyeN9THaNRgow3 kSuArUp6zSmJABEBAAHCwF8EGAEIAAkFAlMQe0ECGwwACgkQGuaGDlbL0pMN5wgA4bCkX/qw EVC06ToeR6C2putmSWQMgpDaqrv65Hubo+QGmg2P4ewTYQQ4g6oYWS03qHxqVVWhKz7FjfrV +dH8qbCLfSgIcvdBha7ayGZVrsiuMLKGbw36fcmkZPpSDOfHcP0XH8Z+u9CWj0xUkTxAlZ/7 i6gYSUpG2JWNtdmE/X8VVEyXusCLwy0K0BI60A/4dRTIX3C4QKrJ3ZbUXegz70ynjHf+lQMZ 9IZKASoRMuS5FozPQh6abvmwZEPdf5I9riUElzvHrqJ8Bx0t3Pujdoth+yNHpnBxrtO8LkQd rQ58P0SwcaIX33T2U9pG8bhu5YVR88FQ8OQ0cEsPBpDncg== Message-ID: <791e3488-b838-5cfd-8dca-8db8c74167a0@madpilot.net> Date: Sat, 10 Nov 2018 17:27:09 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <62bdb5ff-4d68-cf52-4dd5-f0a3cfa1c788@madpilot.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 88E1471E12 X-Spamd-Result: default: False [-4.04 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[madpilot.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-0.88)[ipnet: 159.69.0.0/16(-1.38), asn: 24940(-3.01), country: DE(-0.02)]; MX_GOOD(-0.01)[cached: eddie.gfratio.it]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.85)[-0.854,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[109.128.16.87.zen.spamhaus.org : 127.0.0.10] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 10 Nov 2018 16:27:14 -0000 On 10/11/18 13:08, Guido Falsi wrote: > Hi, > > Today I was updating my home machines to recent head, r340303. > Previously I was running r339449. > > I have a build machine where I build base packages (and also runs > poudriere). I updated that machine using packages I built successfully. > it is running fine and also successfully rebuilt a full ports package > set on the new head. > > After that I upgraded, using the same package set, another machine, a PC > from around three years ago with an i5. After upgrade the kernel boots > fine but when running the rc script to go multiuser some system > utilities fail, especially zfs, making it impossible for the machine to > complete the boot process. > > I have tested booting from the memstick snapshot images, I tested: > > FreeBSD-13.0-CURRENT-amd64-20181107-r340239-memstick.img > FreeBSD-13.0-CURRENT-amd64-20181101-r339979-memstick.img > > and both are also failing to go multiuser. The utility failing in this > case is fsck, which, like zfs before, dumps core. > > I see a pattern where only disk related utilities crash. > > The 12.0-BETA4 installation memstick works fine though. > > So clearly something changed between r339449 and r340303 which causes > incompatibility with my hardware. > > I'll to bisect things, but it will be a slow process. I narrowed it down to r339895. I'm not sure why it fails, it goes beyond my knowledge, the change looks unharmful, but clearly isn't. My impression is that the other conditions not moved inside the ifunc also play a role so such optimization is not possible on all systems. > > I have put dmesg and pciconf output here in case it could be useful: > > https://people.freebsd.org/~madpilot/boot_fail/ -- Guido Falsi