On Mon, Jul 23, 2001 at 01:46:05PM -0700, Bob Smith wrote: > I'm using Debian potato. I can't get this program to > use sigaltstack and pthreads at the same time on i386. > I get a SIGSEGV in pthread_sighandler. The program > works fine on Alpha Linux and Solaris. Is this a known > i386 problem? Is there a cure?
How are you compiling it? Seems to work okay under unstable. Sends itself SIGUSR1, goes into sigsuspend, is woken up, handles the signal, and exits (by the way, main always returns an int ;). I don't see any threads stuff, so how the pthread_sighandler error? I compiled as: $ gcc -g -Wall -o sigstack sigstack.c -- Eric G. Miller <egm2@jps.net>