From nobody Sun Apr 7 09:15:20 2024 X-Original-To: freebsd-current@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 4VC65q4cm5z5GdJV; Sun, 7 Apr 2024 09:15:59 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp052.goneo.de [85.220.129.60]) (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 4VC65p2rGQz4krd; Sun, 7 Apr 2024 09:15:58 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b="Fjq9po/7"; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 85.220.129.60 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de Received: from hub1.goneo.de (hub1.goneo.de [IPv6:2001:1640:5::8:52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id B77982405E6; Sun, 7 Apr 2024 11:15:50 +0200 (CEST) Received: from hub1.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPS id D5298240124; Sun, 7 Apr 2024 11:15:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1712481348; 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=wi5dxrLVi/mmz1sh0GhhP01WdyFWkzlAu7fLxh2b61Y=; b=Fjq9po/7/c/yG+sVDuAsefP3EadTB72xZFJWnOyb+3TAe+xFhVbfKtvIafw2v4P9Rkdj2s d3S7tGZpuHDlvYOQD3frUu+P7lvpQPkAAu+rxCMzSRQ5kIP2pjR5mjo1KsHSMpbAi75ViE 2VmjMeE/t7sYsXIG0HODuAztEU/snNPSIwXKKm2etIz0CpjBrV5jtMYxDEOZto8LgH96xi RFkIRkPHwVCFM9fNlZQ+aCdkDufqWMgTtihidqDS97ReKeyBKCl+1RGBUeXiv91p59s+ax tVGA4B/qvN4XbOi3eAM5gZLda3P8bGRplhGewzlnC3k0sqBivz5nrY/hAxi7wQ== Received: from thor.intern.walstatt.dynvpn.de (dynamic-077-011-008-227.77.11.pool.telefonica.de [77.11.8.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPSA id 987D6240030; Sun, 7 Apr 2024 11:15:48 +0200 (CEST) Date: Sun, 7 Apr 2024 11:15:20 +0200 From: FreeBSD User To: FreeBSD Ports , FreeBSD CURRENT Subject: Re: pkg-1.21.0: after upgrade 1.20.9_1 -> 1.21.0: pkg-static core dumps on some ports Message-ID: <20240407111547.2c3ea50b@thor.intern.walstatt.dynvpn.de> In-Reply-To: <20240406090527.34d84eb9@thor.intern.walstatt.dynvpn.de> References: <20240406090527.34d84eb9@thor.intern.walstatt.dynvpn.de> Organization: walstatt-de.de List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-UID: fab6b4 X-Rspamd-UID: c1ef7e X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.42 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.924]; R_SPF_ALLOW(-0.20)[+ip4:85.220.129.0/25]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4VC65p2rGQz4krd Am Sat, 6 Apr 2024 09:05:00 +0200 FreeBSD User schrieb: > Hello, > > after updating (portmaster and make) ports-mgmt/ports from 1.20.9_1 -> 1.21.0 on CURRENT and > 14-STABLE, I can't update several ports: > > www/apache24 > databases/redis > > pkg core dumps while performing installation. apache24 and redis are ports I realized this > misbehaviour on ALL 14-STABLE and CURRENT boxes (both OS variants latest builds, i.e. FreeBSD > 15.0-CURRENT #32 main-n269135-da2b732288c7: Fri Apr 5 20:30:39 CEST 2024 amd64). > > After some updates on a poudriere builder (CURRENT base host, 14.0-RELENG jail with > poudriere) building packages for 14.0-RELENG, I observed the same behaviour when updating > packages on target hosts where pkg is first updated, on those hosts, nextcloud-server and > icinga2 host utilizing also databases/redis and www/apache24, pkg fails the same way. > > I do not dare to update our poudriere hosts since the problem seems to pop up when pkg 1.21.0 > is installed, no matter whether I use poudriere built ports (from our own builder hosts) or > recent source tree with portmaster/make build process. > > Looks like a serious bug to me and not a site/user specific problem. Hopefully others do > realize the same ... > > Thanks in advance, > > oh > > Hello, after following a recommnedation checking dependencies on ports via pkg check -Bn, recompiling pkg via "portmaster -df ports-mgmt/pkg" along with all ports found by the check command as well a sqlite (precaustion), still the pkg-static binary drops core dumps on some ports. Phenomenon: When updating existing ports, like www/apache24 databases/redis net/openldap26-server misc/e2fsprogs-libuuid building the port runs smootly, but pkg-static dies on deleting attempt of the old/to-be-reinstalled port. The problem arises by using portmaster as well as performing "make install/make deinstall" in the specific target port. Last port I hit is misc/e2fsprogs-libuuid. My skills debugging core dumps are rather limited, our boxes do have debugging disabled. Since the problem spreads across several hosts running CURRENT (same IcyBridge CPU generation, but one host most recent CURRENT with LLVM18, the other one running a CURRENT compiled 4 days ago and as of last week the problem arose also on 14-STABLE on a box in the lab when performing the tansition from pkg 1.20.9_1 -> 1.21.0), I'd exclude a hardware/memory issue. Using (a freshly recompiled) gdb 14 from ports gives not much: [...] root@thor:/usr/ports # gdb /usr/local/sbin/pkg-static ./packages/portmaster-backup/pkg-static.core 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 0x0000000000b3de2b in strlen_baseline () Kind regards, oh -- O. Hartmann