This is the mail archive of the libc-alpha@cygnus.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]

Re: Signal handling broken with -lpthread


>>>>> 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


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