Re: sigsegv, c-stack: Avoid compilation error with glibc >= 2.34

2021-05-16 Thread Paul Eggert
On 5/16/21 7:33 PM, Bruno Haible wrote: I don't have time to rewrite all these unit tests and autoconf tests. Can we assume you wouldn't mind if someone did take the time? (Not that I'm volunteering right just now.) (Additionally, if we were to use malloc() as a replacement, watch out that

c-stack: Catching stack overflow on most platforms without libsigsegv

2021-05-16 Thread Bruno Haible
Hi Paul, Here is a proposed patch to make use of the new 'sigsegv' module (quasi a mini libsigsegv without library dependencies), so that * On most systems, catching stack overflow becomes possible without link dependencies. (The only notable exceptions, where GNU libsigsegv are still n

sigsegv, c-stack: Avoid compilation error with glibc >= 2.34

2021-05-16 Thread Bruno Haible
With the glibc header files from a current glibc (post 2.33) and CC="gcc -I$GLIBC_INSTALL_PREFIX/include -D_GNU_SOURCE", I get this compilation error in a test of module 'sigsegv': In file included from ../../gltests/test-sigsegv-catch-stackoverflow1.c:44:0: ../../gltests/altstack-util.h:32:6: err