From nobody Tue Sep 16 12:16:37 2025 X-Original-To: pkg@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 4cR1916KJyz68sxT for ; Tue, 16 Sep 2025 12:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cR1915twZz3GT4 for ; Tue, 16 Sep 2025 12:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758024997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IYP/hmTXe5iYIuAx7CNFeslVdH4mfsVKzHkjWLVdcS0=; b=yUv0GsW+dEDqI7lB8JKJD8JyKMGYCNbP1ZEvyoXqDXe3tSXNW6KEithwAmH1hTYT0A3E8N o/O9ecsZrJY+9/aYBvpKUR8QKTBBSWPJS147ZlT1/6MBvPyir+exyXl7SXUxx/Y3tSHtJy FYpMMRwLXX479nShU//OjrMlMrXubM6d7K+GCu/Gd7UhXNe9oM9t3rk3nihjOZS+I+DgOE Y9+C2oPeTbbsYSRBeoAUngpiStsTpJkhoSIibwHn9iXdHxbt7/Jw/b3mhyV5yspRlEDI/e D1/w74yHaRsLJANz2YP2n2Cb87JPbnZ+gCShSIYIKg3iYWmb/mLjdMbG+rcN7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758024997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IYP/hmTXe5iYIuAx7CNFeslVdH4mfsVKzHkjWLVdcS0=; b=CobgxAyKc3JOYo+bUSg50gTSaf82X69ZrwssB7zevRoQKEX5Dq3qVV8wUwxeF/zGQ0IxNK X4SVc9E982/fw2xLKP1thU5n5So4u/aO9JT2AB1lx6+w1uLdKt7lUfn2OQu+DkCyt/LTSm dM1RsYeTZowQuNs3PaBT1qm0RZ7lyh+IYP62HN2KZEDB1ez5GFZDMtIasfbA8+mtasN8hk i9KaBa2i2q2ba+8By/0W+CgpnnCVGK3316bNpt9MQ3kig9Wb5AQCRkiQXGFhcWhWmw4/La cuH4JoSeni776fifc9F0+JkiOqM4SKRJYtCLbLeXj0A3vsmk7a4Xs6slby/YmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758024997; a=rsa-sha256; cv=none; b=OKk+YvGFrrrj1eMs6fAI9JbsD/+OWFHPUopMeIeUH7M6jnmgXccspfU4fwf++nVFu2Whqo lu/jFLjKIOs+kj5kSpxJJ1RnwDC4XMmnKNO6TGhuql/XF4bf08nu1hbdiNIj+4foxolqYo NyKIEcIVzY8/0HL3Oe6xHUjFEKAGITwPJoM3b+d4ODJLYAPf6sopYL6stTipN8l40aRcs3 TID1iqUOy9HuMKQbe4+5CxTJhVI8LcwioeS9N2ZvDwJyGuuXmQmihcxKRhgDS13NqZOx41 wR2zuoCzcRYs92vsHS6zy/oZKdyy9WJ0x7kbO8m+qLN8KhtXcRJzD5vI4kMkIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cR1915CRHzgf1 for ; Tue, 16 Sep 2025 12:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 58GCGbv1096982 for ; Tue, 16 Sep 2025 12:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58GCGb2u096981 for pkg@FreeBSD.org; Tue, 16 Sep 2025 12:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 287738] ports-mgmt/pkg: pkg-static upgrade -f segmentation fault Date: Tue, 16 Sep 2025 12:16:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: pkgbase X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287738 --- Comment #19 from Mark Millard --- (In reply to Lukas Engelhardt from comment #18) Thanks much for the procedure notes. Interesting mix of official builds and personal builds of base packages. (No claim that such is supposed to have problems.) The below are just my notes/questions for reference. > Freshly installed Host with FreeBSD 14.2-RELEASE. > Used pkgbasify to convert it to pkgbased. So: official, upstream pkgbase 14.2 installation as of here. > Upgraded to 14.3p2 using packages built from releng/14.3 using `make buil= dworld && > make buildkernel && make packages` with commit Hash 5982521fe3d= d3f1627bbe29ee8c3b190a24e3963 So: personal build of pkgbase is available to install here to establish a 14.3p2 that is not just an install of the official upstream pkgbase 14.3p2 . (Why were the upstream, official 14.3p2 pkgbase materials not used?) I'll note that your personal build may or may not have had equivalent /etc/src.conf /etc/make.conf and such configuration materials to whatever the details are for the official pkgbase builds. There is no explicit mention of rebooting to use the new kernel or to to have the system and services running the new world. Was a reboot done before the below? > Created a FreeBSD 14.3 Jail with poudriere and built pkg, vim, tmux and h= top. So, above: possibly a system booted with a 14.2 kernel ran a 14.3p2 jail. Otherwise a personal 14.3p2 build ran the 14.3p2 jail. Unsure. > Configured my repository on the client "client"? Is there some sort of context switch here? (I'm guessing: no. So: the-booted-system instead of a jail?) > and installed these. I presume "these" are: pkg, vim, tmux and htop Note: Still unsure of the boot system version here. > Pkg Version 2.3.1. > Built packages with stable/15, commit hash c2427a67c7af60bd4d07acce0ab4f0= c4be2258c2 Built pkgbase packages? Built ports packages? Both? I'm guessing pkgbse packages via buildworld buildkernel and then packages activity. Was this 14.3p2 building stable/15 ? I'll note that your personal build may or may not have had equivalent /etc/src.conf /etc/make.conf and such configuration materials to whatever the details are for the official pkgbase builds. However, it appears to take extraction of official 15.0-ALPHA2 pkgbase packages from its *boot1.iso or *memstick.img to avoid doing a personal build of such: url: "pkg+http://pkg.FreeBSD.org/FreeBSD:15:amd64/base_latest", and the like are not being updated to have 15.0-ALPHA* materials and the . Note: bootonly.iso and mini-memstack.img do not have the 15.0-ALPHA2 pkgbase materials and can install only what is distributed upstream. >=20 > installed the kernel package using=20 > `env ABI=3DFreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base -g 'FreeBS= D-kernel*'` Was FreeBSD-base at this point defined via use of: url: "pkg+http://pkg.FreeBSD.org/${ABI}/base_latest", vs. via something else? That url would not lead to installing a 15.0-APLHA* group of kernel(s). It would install a main 15 group of kernels from 2025-Sep-04 or so. Upstream http://pkg.FreeBSD.org/FreeBSD:15:amd64/base_latest/ and the like are not being updated to have 15.0-APLHA* materials. (Looks like the below implicitly answers the above question.) >=20 > rebooted, now:=20 That booted a 15.0-APLHA2 kernel (1500064) based on a personal build: > `uname -apKU > FreeBSD pkgbase 15.0-ALPHA2 FreeBSD 15.0-ALPHA2 stable/15-n280148-c2427a6= 7c7af GENERIC amd64 amd64 1500064 1403000` Hmm. That 1403000 suggests that a 14.3(p2) world was installed at some earlier point --but not answering when it was first booted. > upgraded the other packages: > `env ABI=3DFreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base` That lead to the: QUOTE [20/413] Upgrading FreeBSD-zoneinfo from 14.3p2 to 15.0.a2.20250916101338... [20/413] Extracting FreeBSD-zoneinfo-15.0.a2.20250916101338: 100% Child process pid=3D1109 terminated abnormally: Segmentation fault END QUOTE Again, I just made notes/questions as I try to understand the full sequence. Nothing above identifies a specific problem as having occured. That could depend on answers to questions. --=20 You are receiving this mail because: You are the assignee for the bug.=