From nobody Tue Feb 13 15:16:14 2024 X-Original-To: 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 4TZ4gh22KYz5BW08 for ; Tue, 13 Feb 2024 15:17:20 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ4gg5w48z4ZMn; Tue, 13 Feb 2024 15:17:19 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1707833826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wVNIJjftb4PvSVtzLcJErwHFXu+pYA/0NKRHx7qQ1tA=; b=rGzLWJ2tNHDMBfyT4p7flPLO6A3TOiOx2sLtEXvaX/ouEpjAdYbN0yGUDuAyj6T/UcI4Xo mxI6KcDOZxYOyjgqJJOg4zHMhqQHD1aONtR54uZLmk3AI2JG+N/Y2ghB0vsTDC0ztbwKkP kdZ7IdHGgMqh3ulWaBpGvm9ERdablqi5cJCZksT12/seFkULz+z8Ezhy1lUBIpm+1+sk4v 49VOll/ikKOosirNU3xud4GZrAbmvITJ5oFJZrJl4KrVlGjrKlvHnGtNZuV9f0lm0Vub+f xBK5xKHjjhlfvqG7ITDklnImvKjtEG6MYTAWgWL1HngAq/+Dqmc9W5J8fehwHA== Date: Tue, 13 Feb 2024 16:16:14 +0100 From: Alexander Leidinger To: Konstantin Belousov Cc: Alexander Leidinger , current@freebsd.org Subject: Re: segfault in ld-elf.so.1 In-Reply-To: References: <1707730081-90734-mlmmj-4d88f1fd@FreeBSD.org> Message-ID: Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_f725242c86850af7c6b4e976eb858030"; micalg=pgp-sha256 X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE] X-Rspamd-Queue-Id: 4TZ4gg5w48z4ZMn X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_f725242c86850af7c6b4e976eb858030 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2024-02-13 01:58, schrieb Konstantin Belousov: > On Mon, Feb 12, 2024 at 11:54:02AM +0200, Konstantin Belousov wrote: >> On Mon, Feb 12, 2024 at 10:35:56AM +0100, Alexander Leidinger wrote: >> > Hi, >> > >> > dovecot (and no other program I use on this machine... at least not that I >> > notice it) segfaults in ld-elf.so.1 after an update from 2024-01-18-092730 >> > to 2024-02-10-144617 (and now 2024-02-11-212006 in the hope the issue would >> > have been fixed by changes to libc/libsys since 2024-02-10-144617). The >> > issue shows up when I try to do an IMAP login. A successful authentication >> > starts the imap process which immediately segfaults. >> > >> > I didn't recompile dovecot for the initial update, but I did now to rule >> > out a regression in this area (and to get access via imap do my normal mail >> > account). >> > >> > >> > Backtrace: >> The backtrace looks incomplete. It might be the case of infinite >> recursion, >> but I cannot claim it from the trace. >> >> Does the program segfault if you run it manually? If yes, please >> provide No. >> me with the tarball of the binary and all required shared libs, >> including >> base system libraries, from your machine. > > Regardless of my request, you might try the following. Note that I did > not tested the patch, ensure that you have a way to recover ld-elf.so.1 > if something goes wrong. > [inline patch] This did the trick and I have IMAP access to my emails again. As this runs in a jail, it was easy to test without fear to kill something. I will try the patch in the review next. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_f725242c86850af7c6b4e976eb858030 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmXLh80ACgkQEg2wmwP4 2IaGhw/+LJBE50rDUsWWsa9urrDUc3Mdh2CHfofApji0faUkWrdFajTWq6rO3s9R eiHlK+y2SB7qAoQQIMMRGYTrfqE8bycZBwsWBcZcH/CJjKTdI94sEUG8MCVN/RY3 1boKd6ICk7caKYUapRzObSgze8uVPHO9JxmBgX+PKp0J0dNH3g2Pp2Uoonyvo5qa G7UsL3+Jt1Kg5FTDrNcU5GOf801KwYnFd6FnB6RSjzVf87osHnEBxHvrureXfUzN ci+f2CRkIOUe4NP4i8xprxDfzOQ0g/5b27RODKHsxVg4H8ovn4iWkm80fVmYxJxl RnjYc5jta4MvuHuyPeK3B/iWcV0uKcXm0jlX11dV7mBTs7fArhZ1bjFltgg2nVG/ h4aFHZzEOPQOLmFMvcNbUvxViBvl6GYNtWGztFh3nMGF7RQ2PjadgMmGmsQr2dfe u9tCc7Kp0bnzoXZcWKu3sEaQWF8eDZAuQt+jSnhpA88QPmSZJld5Tmel7Ss9O5aY w97SiJtSEaO0NALMCnhdhrNILGn1z9ThCyL8zNc0fao31FjTCSiC4BYprNDCta/Q LxgG7hJQ4s/Z0su6Vo6lwciSxgPrhbvSj092Db+v+dHD4yAnajeaaCfNXZPHE0cG r5xwV12oom9MvEBbXJpfCuZxVVCgBAyUf1DjuG/FgiOnbFBaQvY= =rnA/ -----END PGP SIGNATURE----- --=_f725242c86850af7c6b4e976eb858030--