On Thu, 2012-05-03 at 23:37 -0400, Zheng Da wrote:

> Is this normal? Is it because my program is written in C++? How do I
> suppress these errors very effectively? or these errors are actually
> caused by some bugs of my program?
C++ is supported by Valgrind.
Valgrind reports some errors in glibc which are normally suppressed
using a suppression file.


> ==32701== Conditional jump or move depends on uninitialised value(s)
> ==32701==    at 0x4FB3D9: fillin_rpath
> (in /home/zhengda/Dropbox/research/read-test/rand-read)
> ==32701==    by 0x4FDBCB: _dl_init_paths
> (in /home/zhengda/Dropbox/research/read-test/rand-read)
> ==32701==    by 0x4CCC58: _dl_non_dynamic_init
> (in /home/zhengda/Dropbox/research/read-test/rand-read)
> ==32701==    by 0x4CD762: __libc_init_first
> (in /home/zhengda/Dropbox/research/read-test/rand-read)
> ==32701==    by 0x47F795: (below main)
> (in /home/zhengda/Dropbox/research/read-test/rand-read)
> ==32701== 
The above error for example looks to somewhat match a suppression in
glibc-2.3.supp

It is however not clear what is the cause of all these errors
not being suppressed. 
Note that usually, having more info such as Valgrind version,
OS and distribution version, cpu etc might only help to guess
what it is :).

If you have an old version of Valgrind, you could try to 
upgrade to a newer one.

Philippe




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to