dynamic library version crashes but static version works

Ted Sung teds@intex.com
Tue Jan 18 22:30:00 GMT 2005


>
>
>Hi,
>
>I build a dynamic library with gcc 3.2 (glibc 2.3.2-4.80.8) running Red 
>Hat Linux 8.0 3.2-7).
>I copy this library over to another machine running Red Hat Enterprise 
>Linux ES release 3 (Taroon)
>2,  gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-20) , glibc-2.3.2-95.3 
>and rebuild my executable.
>
>My program crashes in a very strange place in my library code.  Linking to 
>the static version of my library
>works.
>
>Is this a known bug?  It seems it has to do with the dynamic loading of my 
>dynamic library but
>I'm not sure how to proceed to figure this out.
>
>Ted



More information about the Gcc mailing list