This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: Signal handling broken with -lpthread
- To: "Akos Szalkai" <akos@is.s.u-tokyo.ac.jp>
- Subject: Re: Signal handling broken with -lpthread
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 02 Sep 1998 10:13:17 +0200
- Cc: libc-alpha@cygnus.com
- Mail-Copies-To: never
- References: <19980901185712.19089.qmail@vader.empire.org>
>>>>> Akos Szalkai writes:
>> Description:
> It seems that any program using the sigaction function
> segfaults if it is linked with -lpthread. The segmentation
> fault does not occur with glibc-2.0.94 or if -lpthread is not
> used.
>> How-To-Repeat:
> Consider the following trivial program:
> -----cut here-----
> #include <signal.h>
> int
> main (void)
> {
> struct sigaction old_action;
> sigaction (SIGINT, 0, &old_action);
> return 0;
> }
> -----cut here-----
> Linking it with -lpthread, it causes a segfault when run. The
> segfault does not occur if it is not linked with -lpthread.
I can't reproduce this with the current development version of glibc
2.1 (2.0.95 plus lot's of patches). I see the following explanations:
- you're linking against an old version of libpthread (check you link
command line with e.g. gcc -Wl,--verbose)
- this has been fixed already
- some kind of compiler error
Can anybody else reproduce this?
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de