Re: [PATCH] Cygwin: signal: Do not copy context to stack area in call_signal_handler()

2025-03-25 Thread Takashi Yano
On Tue, 25 Mar 2025 13:02:29 +0100 Bruno Haible wrote: > Takashi Yano wrote: > > Addresses: https://cygwin.com/pipermail/cygwin/2025-March/257714.html > > Reported-by: Bruno Haible > > Thanks. What output do you now get by running I submitted v2 patch. With v2 patch, > $ ./test-c-stack; echo $?

[PATCH] Cygwin: signal: Do not copy context to stack area in call_signal_handler()

2025-03-25 Thread Takashi Yano
After the commit 0210c77311ae, the context passed to signal handler cannot be accessed from the signal handler that uses alternate stack. This is because the context locally copied is on the stack that is different area from the signal handler uses. With this patch, copy the context to malloc'ed me