]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Yet another attempt to quash the assertions in the pthread forwarding code.
authorTom Hughes <tom@compton.nu>
Thu, 28 Oct 2004 08:16:38 +0000 (08:16 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 28 Oct 2004 08:16:38 +0000 (08:16 +0000)
commit2865b47d86f6a614d1575beddc52c0f95352a8da
treeb4de548f22ca6a5a2b09add2511626e3480e33c6
parente83328bcd639824ee7815ff8fc05adf17864a3e3
Yet another attempt to quash the assertions in the pthread forwarding code.

It appears that the resolution of the address is to forward to is now
working properly but that on some systems the second part of the assertion
fails because the dynamic linker resolves the name of the function being
forwarded to the glibc version rather than the version in valgrind's pthread
library.

The solution is to use dlopen to explicitly obtain a handle to valgrind's
pthread library and then lookup the symbol with dlsym when doing the
comparison in the assertion.

MERGED FROM HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2865
coregrind/vg_libpthread.c