From nobody Thu Aug 14 08:17:17 2025 X-Original-To: freebsd-pkgbase@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c2dQP3M60z6443h; Thu, 14 Aug 2025 08:17:33 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from vogon.madpilot.net (vogon.madpilot.net [IPv6:2a01:4f8:1c1c:11e5::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4c2dQN0dp7z3jtc; Thu, 14 Aug 2025 08:17:32 +0000 (UTC) (envelope-from mad@madpilot.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=madpilot.net header.s=cyq4qetkgngm header.b="h GdTuqB"; spf=pass (mx1.freebsd.org: domain of mad@madpilot.net designates 2a01:4f8:1c1c:11e5::1 as permitted sender) smtp.mailfrom=mad@madpilot.net; dmarc=pass (policy=quarantine) header.from=madpilot.net Received: from localhost (mail [IPv6:fd5c:5351:d272::3]) by vogon.madpilot.net (Postfix) with ESMTP id 4c2dQ76wmBzLlgZ; Thu, 14 Aug 2025 10:17:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject:date:date :message-id:received; s=cyq4qetkgngm; t=1755159437; x= 1756973838; bh=lUvV4waINnz8/bNlz909upO+ZHUChKk5LAFZqpap4oo=; b=h GdTuqBQSRyrZFjpNW9AaAo9tGlZalKduUSk8UKNMJGhVDpzZ5LbTgQn/j9mU7HK3 XTcREAuSqJDVZWkZmX+401YE1VViiX/S/TULZRX4FIzTmqy8h8bS35Dh0SEO53oO 0J/UMmnlR5NtKLg04n7dLsMsJQ2mVheifvOGFvMLDIolL0KHINDPgpCxbOPsD4N8 0+BAqfIAgv44B+tp2AxrW6QdmkbYEGF+gV5trDCODqWzKZAlE3WJYBV7gRlqdg6n uUt9uzEtfVk4t+upga3ZrJbnoKEah+HkL2oaMqoJGZXXovktf9NHft+dJYyRl7N3 K33Kg85vDdWU9bjA1AMjA== Received: from vogon.madpilot.net ([IPv6:fd5c:5351:d272::3]) by localhost (vogon.madpilot.net [IPv6:fd5c:5351:d272::3]) (amavis, port 10026) with ESMTP id 8aYyVLhbi7O7; Thu, 14 Aug 2025 10:17:17 +0200 (CEST) Message-ID: <6d5b80be-b333-4ec3-9082-42d97fad52c8@madpilot.net> Date: Thu, 14 Aug 2025 10:17:17 +0200 Subject: Re: HEADS-UP: pkgbase pkg upgrade breaks systems Re: after updating to latest, pkg base segfaults and leaves me unbootable To: Florian Smeets , Dan Mahoney , freebsd-pkgbase@freebsd.org, freebsd-current@freebsd.org References: <582d802f-da93-415c-9dee-1f1f1beb1830@smeets.xyz> Content-Language: en-US, it, en-GB From: Guido Falsi Autocrypt: addr=mad@madpilot.net; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNHkd1aWRvIEZhbHNpIDxtYWRAbWFkcGlsb3QubmV0PsLAeQQTAQgAIwIbAwIeAQIXgAUL CQgHAwUVCgkICwQWAgMBBQJS79AgAhkBAAoJEBrmhg5Wy9KTc0kH/RO64ORB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bL0pMN5wgA4bCkX/qw EVC06ToeR6C2putmSWQMgpDaqrv65Hubo+QGmg2P4ewTYQQ4g6oYWS03qHxqVVWhKz7FjfrV +dH8qbCLfSgIcvdBha7ayGZVrsiuMLKGbw36fcmkZPpSDOfHcP0XH8Z+u9CWj0xUkTxAlZ/7 i6gYSUpG2JWNtdmE/X8VVEyXusCLwy0K0BI60A/4dRTIX3C4QKrJ3ZbUXegz70ynjHf+lQMZ 9IZKASoRMuS5FozPQh6abvmwZEPdf5I9riUElzvHrqJ8Bx0t3Pujdoth+yNHpnBxrtO8LkQd rQ58P0SwcaIX33T2U9pG8bhu5YVR88FQ8OQ0cEsPBpDncg== In-Reply-To: <582d802f-da93-415c-9dee-1f1f1beb1830@smeets.xyz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.00 / 15.00]; MISSING_MIME_VERSION(2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[madpilot.net,quarantine]; R_DKIM_ALLOW(-0.20)[madpilot.net:s=cyq4qetkgngm]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-pkgbase@freebsd.org]; DKIM_TRACE(0.00)[madpilot.net:+] X-Rspamd-Queue-Id: 4c2dQN0dp7z3jtc X-Spamd-Bar: - List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org On 8/9/25 09:55, Florian Smeets wrote: > Adding current@ to CC > > On 09.08.25 01:38, Dan Mahoney wrote: >>  >>  >> (Resending from phone after realizing my list-specific from: wasn’t >> set, apologies for weird formatting) >> >> Hey all, >> >> After the recent big sleep in pkgbase, I hit the following trying to >> upgrade to whatever snapshot was published today: >> >> [598/1127] Deleting files for p5-MIME-Base32-1.303: 100% >> [599/1127] Deinstalling p5-MIME-Base64-3.16... >> [599/1127] Deleting files for p5-MIME-Base64-3.16: 100% >> Child process pid=21537 terminated abnormally: Segmentation fault >> >> (oh crap) >> >> root@poudriere:/home/dmahoney # pkg upgrade >> ELF interpreter /libexec/ld-elf.so.1 not found, error 2 >> Abort >> >> (double crap) > > Yes, I had the same issue yesterday evening. When the system was back, I > was too tired to summarize and send something to the mailing list. > > FWIW, I revived the system by deleting all newer packages rm /var/cache/ > pkg/*snap20250808* and just untaring the stuff in /var/cache/pkg to / > > cd / ; for i in `/rescue/ls -1 /var/cache/pkg/FreeBSD-* ` ; do /rescue/ > tar xvzf $i ; done > > After that, I resorted to building from source and installing to get the > system into a half way consistent state with a chance of surviving a > reboot. > > When starting my upgrade I saw that it wanted to remove a lot of non > pkgbase packages (how are we doing to differentiate pkgbase packages and > "ports" packages in the future?). I thought this might be related to the > krb5 thing, so I created an up to date poudriere jail via pkgbase method > and rebuilt all my pkgs, but even then I saw the same thing as Den, that > pkg wanted to remove a lot of ports pkgs, as this system is not > important I thought I can resolve that after the pkgbase upgrade and > started the upgrade. > > I didn't save scroll back. In my case I saw at the top the first ~100 > pkg transactions were uninstalling pkgbase pkgs, then it upgraded some, > then pkg exited with a segfault. > > Leaving me with ELF interpreter /libexec/ld-elf.so.1 not found, error 2 > > One thing I checked was /libexec/ was completely empty. > Hi, I was also bitten by this. I'm sharing how I got past the issue in case it could be useful to others. I recovered by rolling back to a previous ZFS snapshot using an USB installation media. This can be a viable solution depending on FS being used and availability of snapshots. Anyway, after taking the machine to a usable state I was able to update past the tripping point by doing: pkg-static upgrade -r -g 'FreeBSD-runtime*' 'FreeBSD-pkg-bootstrap*' 'FreeBSD-clibs*' (the bootstrap part is most probably not needed) this will tell you it wants to remove the pkg package, but will not do so, since there is no '-f' option. After this proceed with a `pkg-static -r upgrade`. Depending on how old the previous installation is you will need to check for new packages to install, I was missing a bunch -dev and -man ones, and some new ones. I then had to add this to libmap.conf (actually to /usr/local/etc/libmap.d/upgrade.conf): libcrypto.so.30 libcrypto.so.35 libutil.so.9 libutil.so.10 libssl.so.30 libssl.so.35 So old ports depending on old libraries still work. I'm keeping these for a while, until I can perform a `pkg upgrade -f` Hope this can be helpful until the issue is solved. -- Guido Falsi