This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: libgcc_s.so.1 must be installed for pthread_cancel to work
- From: Ryan Arnold <ryan dot arnold at gmail dot com>
- To: "Gabor Z. Papp" <gzp at papp dot hu>
- Cc: libc-help at sourceware dot org
- Date: Fri, 5 Feb 2010 09:44:06 -0600
- Subject: Re: libgcc_s.so.1 must be installed for pthread_cancel to work
- References: <x6sk9fwwa7@gzp>
On Fri, Feb 5, 2010 at 9:13 AM, Gabor Z. Papp <gzp@papp.hu> wrote:
> lo lo,
>
> http://www.cygwin.com/ml/glibc-bugs/2004-10/msg00057.html
>
> Its clear, but I have a question.
>
> Whats, if glibc built with a compiler that doesn't have shared
> libgcc_s.so, and applications built with the same compiler too?
>
> Is that a mistake?
>
> gcc built with --enable-shared=libstdc++ --enable-static options, that
> doesn't generate shared libgcc_s.so lib.
>
> Ran into a problem, where an application crashed from time to
> time with signal 6 printing this "libgcc_s.so.1 must be installed for
> pthread_cancel to work" error message. The system doesn't have such
> lib.
Gabor,
The pthread code dlopens libgcc_s for unwind support in a relaxed
manner, i.e. when necessary:
nptl/sysdeps/pthread/unwind-forcedunwind.c
__libc_fatal (LIBGCC_S_SO " must be installed for
pthread_cancel to work\n");
As far as I know, this can not be circumvented.
Ryan S. Arnold