apparently random loader failures on some pthread.so.0 using legacy libs

Michelangelo Calatino michelangelo.calatino at adstorino.it
Thu Jul 1 17:30:33 UTC 2004


Hi fellows, 
 
 I have a strange problem on some Linux boxes, on some other runs, 
and quite strangely I could not figure out the glibc + kernel version  combination
that are good or not good.
This is how my executable fails.
My executable is dynamically linked with third party libraries being built with 2.96  gcc tools on RH8. (kernel
version unspecified).
Here is the problem   : (relocation error --- the library is there in .../tls/..  )

/homes/xserve1b-new/c/calatino/software/hw70b9/pc54LINUX_RH82.4.20-28.8smp/hm/al
tair/hm/bin/LINUX_RH8/proe.linux242.so: relocation error: /homes/xserve1b-new/c/
calatino/software/hw70b9/pc54LINUX_RH82.4.20-28.8smp/hm/altair/hm/bin/LINUX_RH8/
proe.linux242.so: symbol __pthread_atfork, version GLIBC_2.0 not defined in file
 libpthread.so.0 with link time reference

the machine is a : 

 uname -a
Linux pc459 2.4.18-27.8.0smp #1 SMP Fri Mar 14 05:47:33 EST 2003 i686 i686 i386
GNU/Linux


gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Copyright (C) 2002 Free Software Foundation, Inc.


On this machine, instead it runs flawlessly :

Linux pc54 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686 i686 i386 GNU
/Linux


gcc (GCC) 3.2 20040316 (fixed by Mainsoft)
Copyright (C) 2002 Free Software Foundation, Inc.

Notice that the executable was built on a third machine with gnu tools 2.96, otherwise of course it would not
even link at link time.... ( 2.96 and 3.2  gnu tools have different ABIs, which make their executables incompatible...)


Also, when I launch the executable using the execve API it seems the execve itself does _not_ return any error
so I completely lose control..... something bad happens at the loader level, darn !

Can anyone out there shed some light ?


Michelangelo


---------------------------------------------------------------------------------------------------------------
ing. Michelangelo Calatino


If only God would give me some clear sign ! 
Like making a large deposit in my name in a Swiss bank.

Woody Allen, 1935- 



More information about the redhat-list mailing list