|
From: Vaddula, R. R. (R. Reddy)** C. **
<vr...@lu...> - 2004-06-25 05:59:58
|
Hi ,
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?
==8781== Conditional jump or move depends on uninitialised value(s)
==8781== at 0x402A1184: strstr (in /lib/libc.so.6)
==8781== by 0x817E3A2: is_smp_system (pthread.c:370)
==8781== by 0x817E558: pthread_initialize (pthread.c:507)
==8781== by 0x81888CB: (within /home/udev/vrreddy/libexec/tune_dsn)
tune_dsn: Redirected stdout to file dsn_log
==8781==
==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.
==8781== This may be because the functionality is hard to implement,
==8781== or because no reasonable program would behave this way,
==8781== or because nobody has yet needed it. In any case, let me know
==8781== (js...@ac...) and/or try to work around the problem, if you
can.
==8781==
==8781== Valgrind has to exit now. Sorry. Bye!
==8781==
sched status:
Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
==8781== at 0x402F8E3E: __clone (in /lib/libc.so.6)
==8781== by 0x817E858: __pthread_create_2_1 (pthread.c:648)
==8781== by 0x8153287: TASK::TASK(char const *, int, int (*)(...), int,
int, int, int, int, int, int, int, int, int) (evxworks/taskLib.C:208)
==8781== by 0x815365B: taskSpawn(char *, int, int, int, int (*)(...),
int, int, int, int, int, int, int, int, int, int) (evxworks/taskLib.C:369)
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)
|
|
From: Tom H. <th...@cy...> - 2004-06-25 07:10:36
|
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/
|