Re: segfault in ld-elf.so.1

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Tue, 13 Feb 2024 15:16:14 UTC
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