This is the mail archive of the libc-help@sourceware.org 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: libgcc_s.so.1 must be installed for pthread_cancel to work


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


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