|
From: Vaddula, R. R. (R. Reddy)** C. **
<vr...@lu...> - 2004-06-25 07:40:52
|
Thanks for ur reply hughes.
When i replace systems's libpthread.so with valgrind's libpthread.so,
it says relocation error: /lib/libpthread.so.0: undefined symbol:
vgPlain_startup.
on my PC even iam not able to use any comamnds and for every command(even
for ls) it says the same ls: relocation error: /lib/libpthread.so.0:
undefined symbol: vgPlain_startup.
any clue of what is happening.?
thanks
Ramakoti Reddy Vaddula
Lucent Technologies India Ltd
Golf View Campus
Wind Tunnel Road
Bangalore 560 017
Phone: 080-2505 2171 (O)
98459 47299 (M)
-----Original Message-----
From: Tom Hughes [mailto:th...@cy...]
Sent: Friday, June 25, 2004 12:40 PM
To: val...@li...
Subject: Re: [Valgrind-users] Regarding Clone implementation in valgrind
In message
<673...@ii...>
Ramakoti Reddy Vaddula <vr...@lu...> wrote:
> my program uses clone system call. when i try to use valgrind it
complians
> witht the following errors.
> could anyone one of you let me know if valgrind supports clone or not?
Not directly, no. It does support pthreads however, which is what
you appear to be using judging by your stack trace. In fact valgrind
appears to have told you that:
> ==8781== Valgrind detected that your program requires
> ==8781== the following unimplemented functionality:
> ==8781== clone(): not supported by Valgrind.
> We do now support programs linked against
> libpthread.so, though. Re-run with -v and ensure that
> you are picking up Valgrind's implementation of libpthread.so.
Given that you appear to be using pthreads but you haven't picked up
valgrind's pthread implementation you need to try and work out why it
is preferring the system pthread library. One reason would be that you
are linking statically again pthreads.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Valgrind-users mailing list
Val...@li...
https://lists.sourceforge.net/lists/listinfo/valgrind-users
|
|
From: Tom H. <th...@cy...> - 2004-06-25 08:05:51
|
In message <673...@ii...>
Ramakoti Reddy Vaddula <vr...@lu...> wrote:
> Thanks for ur reply hughes.
> When i replace systems's libpthread.so with valgrind's libpthread.so,
> it says relocation error: /lib/libpthread.so.0: undefined symbol:
> vgPlain_startup.
>
> on my PC even iam not able to use any comamnds and for every command(even
> for ls) it says the same ls: relocation error: /lib/libpthread.so.0:
> undefined symbol: vgPlain_startup.
You're not supposed to replace the system libpthread.so!
The valgrind one will only work with programs running under valgrind
and they should find it automatically if valgrind is installed correctly
as valgrind will adjust LD_LIBRARY_PATH to include it's library directory.
Likely reasons for that not happening are that the program you are
running is statically linked or the DT_RPATH attribute is set in the
program's header due to the -rpath option having been used when it was
linked.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|