From nobody Sun Jun 22 12:47:36 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 4bQ9wS6fCgz5yhJR for ; Sun, 22 Jun 2025 12:47:36 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bQ9wS41CBz3VW8 for ; Sun, 22 Jun 2025 12:47:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750596456; 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=pcNMyokOrnuYgytuCKG6wx5AvRmDMqweKtKz2fTpIqI=; b=CXt2iOVEHqqFBWT7tPVY3qmyLR3BAk6EuTgDMQcpZD0CZRrPaScBt5b3A8NQFvePddvNEA x9QGZnu833BJKGV76Nieg0kKhelI3ilzTXm9+E06EpHTpLvcEKtEXb3i+74FpboUZGeTI1 DcBTeZcedxntDNwLyeMptub67qVKMQV+tGaDnBUiB4XoUTjRzFPVrtHmvtkQ9JXNHZ+lDL r9YjZnKuKoQVstCgc0SwXQrbZkvQy9z8bGX+dZERKOGfN4Ka0FKVtPpM5UCHSD91ZxT6Rh T4eng/xm4dnWFlZuu5wSU3IXF31zgJ2iVD8RwslZlyeiwW6NMD1mOLLcYEPhEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750596456; 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=pcNMyokOrnuYgytuCKG6wx5AvRmDMqweKtKz2fTpIqI=; b=Kl7kobf1nw2+ylWRojxqFKTDC+jaK2kTO5R4k3f1oySm1mYGjNdEUknk2wL9a38OfmiTbn uOVIPAQ/GIKLPvcEnpIdFx6nwzHOQh/Jc3lN9EvTkMuX9bBXqnQ0TwP9Z+37+o5Iz+tjVt wbtSTEqRCE3kqiORVXlp2fURrfKUUZcXiL0dIU/sPzZF6ypw71UIxixGxLACoWlCy65IwK /0Ckd9gJ8D9H8Zl3Ef4FFRcuodoj+G5P9Hf3tFoSnIwocxm+376J2psoKcCIcsJSTS3fq9 nbtxaoGAIauRssNqXj61lRu02dkaX3uCwwTqZakEKbLEk2xKLC2nnjNTED8rCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750596456; a=rsa-sha256; cv=none; b=K6Noh9ooXJRxSlpaDJcf8cyJRv9R1M+kkJy8/FQwRKoegZYaQ6lIPrqfeitMh/KrfsZdsc 9GJob6AYT7C8KlcxOgeI3C07lTYQiSJ95viuojG05JXTuEEgkR4DI3Z0gKrOmwS14V5rJK 1uqKPbEiSyP5cvVtHUGUn8PfVdopU1hRXjLCgCeVF9OZBW0YDQgi7ZgAMqRqn0ps+uKKlg NF6LuRhheDkaPcdpPYpnw+UykJ/LFWZk1Sa2IgvrA2R0kcP5DVTIBMCxXpkkawzHEr8p2n c71H+HU6gEtcj27r25Za6qTZvxCBKco3ND5uar7vVvGCJR1DWgBqqPnNsLff+w== 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 4bQ9wS2yHjz2j1 for ; Sun, 22 Jun 2025 12:47:36 +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 55MClaTn084250 for ; Sun, 22 Jun 2025 12:47:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 55MClaYo084249 for pkg@FreeBSD.org; Sun, 22 Jun 2025 12:47:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 287720] ports-mgmt/pkg: segfault if calledwith root privileleges Date: Sun, 22 Jun 2025 12:47:36 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked freebsd-pkg (Nobody) for maintainer-feedback: Bug 287720: ports-mgmt/pkg: segfault if calledwith root privileleges https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287720 --- Description --- I have a really strange problem. It appeared on one of my 14.3-RELEASE mach= ines after source upgrade. Another machine underwent the same upgrade, albeit in binary way (via freebsd-update) and has no such problem. =F0=9F=8C=90 eldanna in ~ took 3h57m37s =E2=9D=AF sudo pkg-static upgrade -f pkg Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): Installed packages to be REINSTALLED: pkg-2.2.0 [FreeBSD] Number of packages to be reinstalled: 1 Proceed with this action? [y/N]: y [1/1] Reinstalling pkg-2.2.0... [1/1] Extracting pkg-2.2.0: 100% You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed. =F0=9F=8C=90 eldanna in ~ took 4s =E2=9D=AF /usr/local/sbin/pkg search foobar =F0=9F=8C=90 eldanna in ~ =E2=9D=AF sudo !! sudo /usr/local/sbin/pkg search foobar Child process pid=3D71720 terminated abnormally: Segmentation fault =F0=9F=8C=90 eldanna in ~ =E2=9D=AF freebsd-version 14.3-RELEASE Core file is mostly useless: =E2=9D=AF sudo gdb -core pkg.core [...] [New LWP 1048325] Core was generated by `pkg search foobar'. Program terminated with signal SIGSEGV, Segmentation fault. Address not mapped to object. #0 0x00000008279bb8da in ?? () GNU gdb (GDB) 15.1 [GDB v15.1 for FreeBSD] Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd14.2". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Segfault happens after every operation, performed as root, but the operation itself is first performed.