Re: pthreads and sigaltstack on i386

2001-07-23 Thread Eric G. Miller
On Mon, Jul 23, 2001 at 09:27:07PM -0700, Bob Smith wrote: [snip] > > I compiled as: > > $ gcc -g -Wall -o sigstack sigstack.c > > I left out the pthread stuff for simplicity since it > doesn't appear essential to demonstrate the problem. > And indeed, I know that the above compile line works. >

Re: pthreads and sigaltstack on i386

2001-07-23 Thread Bob Smith
>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

Re: pthreads and sigaltstack on i386

2001-07-23 Thread Eric G. Miller
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?