Blair Zajac <blair@orcaware.com> writes:
> This problem is probably best answered by Philip since he uses
> valgrind all the time.
I don't think I can.
> 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)
I cannot reproduce that problem.
> 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.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 21 22:49:28 2004