From nobody Sun Apr 07 08:59:19 2024 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 4VC5kd41tWz5GbwF for ; Sun, 7 Apr 2024 08:59:21 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VC5kd2Flhz4hmG for ; Sun, 7 Apr 2024 08:59:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712480361; a=rsa-sha256; cv=none; b=dYg6uhtzQyevGWunZY9ezTLC7MvE8rZifHUjDf45ghMCFPb6n5xCT6JyuFvT+dqldve4g5 hdv7N7x4vusZXP3sm7Tt+ItTpBCzqmMwfpjHVJk7G1lPLinbAVKcEsfV2LinvY1v9is3f7 ISaMwMqiU+3+C9880Ua0HDcans4tjvMQ2PqXx48Rhooq7iEKg5ql0fBDy0dQ2z+ukBKyAG wEW49dxI0v7DL9dr+1mTCHs6CJ5QCcbTFYlnm2HJqQNTWJgjOKue5Jyh6pnUmdAORHW4v9 8RFb2a13zmfHI5U+rwdBhEtBXVc1v8bdbIRVGOM5sB4sVoahA6m/hn6mElo46w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712480361; 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=Bcj95qnlmeQ0eoWIuGeKd4GovTQccBmAgzDkTDhWxmo=; b=ClL+PTtdsGPaHDB1b5oQ6b8MOnOr9IdTim8RaXXp47v/oG6M8qbgE/+hpvlOinLZA5lvGJ WrgIZfifMHkazArQL5IZt2pVRiyjT1U63mz+AzgtzHIlcsFK+sKyTtoN40mw6LKdaGtfjQ O5oU2hc6zIGC5HaiVkGKdwXG+Qwo6Zk3onC6n5qygoGpdkLL5Q7HQEQtinGL62TBO7ATiT wsbp00UGUw6BuG1kXVwGzljEfjrWMKwFijYyjNkI7+YCmjqZz6paL7/0Utr8UAP0gw1N/c SlQfJ/sbbbaGrKbVFQpil31pEKUpC2jc6Cf+TwCCm1RXRZ98HHcXgrJ9/bvYFA== 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 4VC5kd1pP0zKdb for ; Sun, 7 Apr 2024 08:59:21 +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 4378xLcH022810 for ; Sun, 7 Apr 2024 08:59:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4378xLbT022793 for pkg@FreeBSD.org; Sun, 7 Apr 2024 08:59:21 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 278190] ports-mgmt/pkg: 1.21.0 pkg-static core dumps Date: Sun, 07 Apr 2024 08:59:19 +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: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartmann@walstatt.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: resolution short_desc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D278190 O. Hartmann changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|Not A Bug |--- Summary|ports-mgmt/pkg: 1.21.0 |ports-mgmt/pkg: 1.21.0 |renders core dumps on some |pkg-static core dumps |ports | Status|Closed |Open --- Comment #2 from O. Hartmann --- After rebuilding ports-mgmt/pkg via "portmaster -df ports-mgmt/pkg" alongs= ide with sqlite3 and rebuilding the OS (FreeBSD 15.0-CURRENT #0 main-n269169-0192eda105b3: Sun Apr 7 02:08:57 CEST 2024 amd64) from scratch after import of LLVM18, the reported problem isn't gone. There are more ports affected, I hit them by chance, like www/apache24 databases/redis net/openldap26-server misc/e2fsprogs-libuuid The problem isn't specifically to a single host, it is common on several bo= xes running CURRENT. I also saw this issue after updating pkg from 1.20.9_1 -> 1.21.0 on a 14-STABLE at the lab. Phenomenon: Neither portmaster nor traditional "make" does work properly: i= f a port is to be updated, deleting the old port in favor to be updated with the new port fails and pkg-static dumps a core. Last port which triggered this misbehaviour was=20 misc/e2fsprogs-libuuid I had to patch the port's Makefile first to apply "${SETENVI} ${MAKE_ENV}" = to build-tags to make the port build again (there is an error when using portmaster for ports utilizing gmake). But this is just for the record. My skills debugging with LLVM aren't much, I tried to use gdb on the core f= ile: [...] gdb /usr/local/sbin/pkg-static ./packages/portmaster-backup/pkg-static.c= ore GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD] Copyright (C) 2023 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-freebsd15.0". 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"... Reading symbols from /usr/local/sbin/pkg-static... (No debugging symbols found in /usr/local/sbin/pkg-static) [New LWP 101269] Core was generated by `/usr/local/sbin/pkg-static delete -yf e2fsprogs-libuuid-1.47.0'. Program terminated with signal SIGSEGV, Segmentation fault. Address not mapped to object. #0 0x0000(gdb) run Starting program: /usr/local/sbin/pkg-static=20 /usr/ports/devel/gdb/work-py39/gdb-14.1/gdb/fbsd-nat.c:1381: internal-error: wait_1: Assertion `fbsd_inf !=3D nullptr || pl.pl_flags & PL_FLAG_CHILD' fa= iled. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x134f5f1 _Z22gdb_internal_backtracev 0x17ff7e8 ??? 0x17ff648 _Z15internal_verrorPKciS0_P13__va_list_tag 0x1ca94ae _Z18internal_error_locPKciS0_z 0x148bf53 _ZN15fbsd_nat_target6wait_1E6ptid_tP17target_waitstatus10enum_flagsI16targe= t_wait_flagE 0x148c67a _ZN15fbsd_nat_target4waitE6ptid_tP17target_waitstatus10enum_flagsI16target_= wait_flagE 0x17a0373 _Z11target_wait6ptid_tP17target_waitstatus10enum_flagsI16target_wait_flagE 0x15d31c9 _Z16startup_inferiorP22process_stratum_targetiiP17target_waitstatusP6ptid_t 0x1497721 _Z20gdb_startup_inferiorii 0x14f9ed1 _ZN17inf_ptrace_target15create_inferiorEPKcRKNSt3__112basic_stringIcNS2_11c= har_traitsIcEENS2_9allocatorIcEEEEPPci 0x148ce51 _ZN15fbsd_nat_target15create_inferiorEPKcRKNSt3__112basic_stringIcNS2_11cha= r_traitsIcEENS2_9allocatorIcEEEEPPci 0x1506690 ??? 0x13838b5 _Z8cmd_funcP16cmd_list_elementPKci 0x17ca082 _Z15execute_commandPKci 0x146fe2a _Z15command_handlerPKc 0x14701b5 _Z20command_line_handlerONSt3__110unique_ptrIcN3gdb13xfree_deleterIcEEEE 0x146f822 ??? 0x825a926b2 rl_callback_read_char 0x1470c0d ??? 0x146f47c ??? 0x17fe6ef ??? 0x1ca9f12 ??? 0x1ca99e4 _Z16gdb_do_one_eventi 0x15758d9 ??? 0x1572ac0 _Z8gdb_mainP18captured_main_args 0x124f5e0 main --------------------- /usr/ports/devel/gdb/work-py39/gdb-14.1/gdb/fbsd-nat.c:1381: internal-error: wait_1: Assertion `fbsd_inf !=3D nullptr || pl.pl_flags & PL_FLAG_CHILD' fa= iled. A problem internal to GDB has been detected, further debugging may prove unreliable. 000000b3de2b in strlen_baseline () [...] So, according to the output of gdb, this is no information at all since gdb crashes somehow. Need some advice how to proceed. --=20 You are receiving this mail because: You are the assignee for the bug.=