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

Valgrind and apr help

From: Blair Zajac <blair_at_orcaware.com>
Date: 2004-01-19 19:43:54 CET

This problem is probably best answered by Philip since he uses
valgrind all the time.

I didn't use to have this problem with valgrind, but now I do.

Trying to find a core dump in time-test:

% cd subversion/tests/libsvn_subr/.libs
% ./lt-time-test
PASS: lt-time-test 1: test svn_time_to_cstring
PASS: lt-time-test 2: test svn_time_from_cstring
PASS: lt-time-test 3: test svn_time_from_cstring (old format)
PASS: lt-time-test 4: test svn_time_[to/from]_cstring() invariant
Segmentation fault (core dumped)
% valgrind ./lt-time-test
./lt-time-test:
/opt/i386-linux/installed/valgrind-2.1.0/lib/valgrind/libpthread.so.0:
version `GLIBC_2.1.1' not found
(required by /opt/i386-linux/installed/apache-2.1-cvs-2004011900/lib/libapr-1.so.0)

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)

Best,
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 19 19:44:42 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.