Subject: Bug#994510: libunwind8 abuses setcontext() causing SIGSEGV on i386 with glibc >= 2.32

From: Aurelien Jarno <[email-masked]>
Date: Sun, 27 Apr 2025 22:28:24 +0200

On 2025-04-26 15:43, Kurt Roeckx wrote:
> tags 994510 + patch
> thanks
> 
> Hi,
> 
> I've attached a patch that does the same difference as the glibc change.

I don't think it is correct. Contrary to the getcontext/setcontext 
functions, an exception can happen at any moment, and not always around 
a function call. Therefore it is not possible to rely on that to not 
restore caller-saved registers.

> An alternative is that we also create a setcontext.

Sounds indeed the way to go.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email-masked]                     http://aurel32.net