Re: pthreads and sigaltstack on i386
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.
> But now try:
>
> gcc -g -Wall -o sigstack sigstack.c -lpthread
>
> This is enough to enable pthread stuff to break the
> code. Running the code under gdb confirms that
> pthreads are active.
I can confirm your SIGSEGV in pthreads. Don't know enough about threads
to be any help though (comp.os.linux.development.apps ?).
--
Eric G. Miller <egm2@jps.net>
Reply to: