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 4bQ9wT0jzZz5yj70 for ; Sun, 22 Jun 2025 12:47: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bQ9wS5JtBz3VFn 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; bh=fASBuZ+6HZzosvntDzG8AoX/dX3mJ1WxiOJ1gr6QaHk=; b=NL7y681+5RH4LHPRpkhQNdn73bavSEXhlLPki7LIqsXnIMdwX92pXGJX8IFXUpb9OJfWR8 jnRhy1eR5dQ+YqeqKzQ6uayEfX/foPwDfqYy9b/tir/kSU/jSNYOG+TtBJ8GKISoMlsq0X I5imx96y9WimPKSZu5zeUZMIEBKC9/QxNo1cdpq0l6r8Xfo8se/EbsvLKFZIC6F5GnuxpF B6wez02zUw+JCiw1WqeRjIgZYkPPpMBsxQH3Mya5kCbXuVTcs34eA5Jt7BhYbJH5TxVxYH 9YWXHUQL9X4f+KyUXucxpp5pmqPyGNpMsXy+/TkY40feVDJJ+H1cJoyMBw2Bgw== 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; bh=fASBuZ+6HZzosvntDzG8AoX/dX3mJ1WxiOJ1gr6QaHk=; b=rnr6Gswjhkc5gLPXvZSst6MuDe4L34su6Z0mPEmbF8af+ZDyGVMN3NXuDwlOFbPTG3umcX TJYP8zEndgUFlq9VFNCHaEkO+HBQ9pMy8GTtk1AATy6jcj3S5t3pZzEluXDJwW5rm4mbln JHCfvgE+MkbkWcYfOkPDb1ywyHML3Yt2+ShktuLu1ddXmdIRUDYqmdXjX8gl+7ycVyZPug bSwzxhLD/Y+y65Kuygpkav9Pj+PqAMCIvvOsYsX+owT2TOooY+pqmMdTfLoh+60y2GMxeW v03K7r74EBdoDyDQugf9vB2zaOyrc4g3JAcQtXJrCJNctpqUuoL8kTKP/8YjQQ== 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=ZHCa9TfCKAqOG9xNopoOg+agIXrBU3ijWR5RhJKvcM/1nC4CA+5qUnln8QkWhPArK8BIUa 5NeIgFUCPw3LRmhYpbQHegixmyYJLOK7w9/6SZsLJXNt/lvQzZzXwn4K2gAyX+DcwYKiJP KGTZjTWHqaE6cLVIVwrJ0yUxkx6W75jrLwBdbFq/iQwN3bdCxjX2zxdYmjBrAtp4Cs8I8w HIJq3NUTUfHRP2RkkCgcek629AsLhT94Vl4Lt1mPUAqL5N/mkhKmU6sid+9h4rouKpwNj3 rKFTSwXigUgPRYrLn5TzxwxyHesr6N5fzyjEle/rrKIS0L1Y3sPg3ZtAepgNPQ== 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 4bQ9wS3wsTz2cy 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 55MClarQ084258 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 55MCla5p084257 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 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 287720] ports-mgmt/pkg: segfault if calledwith root privileleges Date: Sun, 22 Jun 2025 12:47:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: alexey@ocaml.nl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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=3D287720 Bug ID: 287720 Summary: ports-mgmt/pkg: segfault if calledwith root privileleges Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: alexey@ocaml.nl Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org 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. --=20 You are receiving this mail because: You are the assignee for the bug.=