This is the mail archive of the
mailing list for the glibc project.
Re: problem with pthreads and sigaltstack
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Stas Sergeev <stsp at users dot sourceforge dot net>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sat, 15 Nov 2003 20:28:41 -0500
- Subject: Re: problem with pthreads and sigaltstack
- References: <200311160121.hAG1LJl71180@ns4.hoster.ru>
On Sun, Nov 16, 2003 at 04:21:19AM +0300, Stas Sergeev wrote:
> I am using the rather old glibc-2.2.4-19(RH) and
> probably the problem will go away if I upgrade,
> but I strongly suspect that I am doing something
> Any ideas where the real problem can be? Is it
> the problem with pthreads and I have to upgrade,
> or does it look more like a problem somewhere in
> an app and it is doing something pthreads can't
> I could probably use something like
> pthread_attr_setstackaddr() and then pthread_create(),
> but I only want to make my program to not crash
> when it is linked with the libpthread. What is
> the proper way of doing that?
> My linux kernel is 2.4.22 and is running on an
> AMD Athlon, if that matters.
You can not use sigaltstack with LinuxThreads, in general. On
i686-optimized versions I believe it will work because the segment
registers are used to find thread storage; and NPTL probably does not
have this problem.
MontaVista Software Debian GNU/Linux Developer