[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#442858: libc6-prof: programs linked agains libc_p.a crash with a SEGV



On Mon, Sep 17, 2007 at 02:25:24PM +0100, Stephane Chazelas wrote:
> Package: libc6-prof
> Version: 2.6.1-4
> Severity: grave
> Justification: renders package unusable
> 
> 
> Hi,
> 
> I don't seem to able build any program linked against the
> profiled version of the glibc.
> 
> I can reproduce the problem with any version of gcc (3.3, 3.4,
> 4.0, 4.1, 4.2), with 2.6.1-1 and 2.6.1-4. Manually linking
> against libc6-prof_2.3.6.ds1-13etch4_i386.deb using the crt's in
> libc6-dev_2.3.6.ds1-13etch4_i386.deb (on the same unstable
> debian host) is OK.
> 

The problem is that the new glibc needs libgcc_s.so.1 for exceptions
handling, which needs in turn libc.so.6. Linking with -lc_p means the
glibc is linked statically, while it is also linked dynamically via
libgcc.

The solution is to link with -static-libgcc -lc_p.

I will add a README to the libc6-prof package to explain how to use it.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: