This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with pthreads and sigaltstack


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
> wrong.
> 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
> tolerate?
> 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.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]