Re: segfault in ld-elf.so.1

From: Konstantin Belousov <kib_at_freebsd.org>
Date: Tue, 13 Feb 2024 01:52:05 UTC
On Tue, Feb 13, 2024 at 02:58:14AM +0200, Konstantin Belousov wrote:
> 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
> > 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.

Or better https://reviews.freebsd.org/D43858