[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Valgrind and apr help

From: Blair Zajac <blair_at_orcaware.com>
Date: 2004-01-26 21:47:07 CET

Philip Martin wrote:
> > It looks like it also happens with apr. Trying to run valgrind on
> > apr's testall program gives me this output:
> >
> > % cd srclib/apr/test
> > % valgrind ./testall
> > ./testall: /opt/i386-linux/installed/valgrind-2.1.0/lib/valgrind/libpthread.so.0:
> > version `GLIBC_2.1.1' not found (required by
> > /export/home1/blair/Code/Apache/2.0/h/srclib/apr/.libs/libapr-1.so.0)
> >
> > This is with valgrind 2.1.0 on RedHat 9 with apr and apr-util
> > compiled inside httpd-2.1.
> >
> > Ldd shows that pthread is linked against /lib/tls/libpthread.so.0.
> > instead of
> > % ldd testall
> > libapr-1.so.0 => /export/home1/blair/Code/Apache/2.0/h/srclib/apr/.libs/libapr-1.so.0 (0x40017000)
> > librt.so.1 => /lib/tls/librt.so.1 (0x40046000)
> > libcrypt.so.1 => /lib/libcrypt.so.1 (0x40058000)
> > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40085000)
> > libdl.so.2 => /lib/libdl.so.2 (0x40093000)
> > libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
> I just guessing but I think the /lib/tls/libpthread.so.0 is the new
> NPTL pthreads library. valgrind supplies it's own threading stuff,
> perhaps it doesn't yet support NPTL. Can you force the build to use
> the LinuxThreads library (set LD_ASSUME_KERNEL perhaps)? You may have
> to recompile, I don't use a NNPTL system so I can't really help.

I tried the various LD_ASSUME_KERNEL values and they made no difference.
This is only a runtime environmental variable, right? Changing this
during a compile and line won't change the binary???

Berst,
Blair

-- 
Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 26 21:47:40 2004

This is an archived mail posted to the Subversion Dev mailing list.