[Linux-ia64] Seg. fault in malloc with pthreads on Red Hat R2.4.3

From: Robboy, David G <david.g.robboy_at_intel.com>
Date: 2001-05-25 15:27:56
A 4-threaded fft program  runs on a 4P Lion when built under Turbolinux
R2.4.1, but gets a segmentation fault in malloc when built under Red Hat
R2.4.3. 

The compiler on the system where it works is:
gcc version 2.96-ia64-000717 snap 001117
On the system where it doesn't work:
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)

The program is statically linked. 
4 threads call malloc, 3 threads return from malloc and one thread gets a
seg. fault.  Gdb says the fault occurred in pthread_handle_create() and says
it was a SIGILL.

Is there something special you have to do in order to link to thread-safe
libraries, other than include "-lpthread" in the command line?

Is this a bug in Red Hat's C library?  If so, is there a way to report it to
Red Hat?

Thanks,
David Robboy
Received on Wed May 30 20:06:31 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:04 EST