|
From: jody <jod...@gm...> - 2010-01-31 16:32:48
|
Hi
I am using g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
and valgrind-3.5.0
When i compile this trivial program test.cpp:
int main(int iArgC, char *apArgV[]) {
return 0;
}
and run it under valgrind:
valgrind ./test
I get lots of error messages of the form:
==6443== Conditional jump or move depends on uninitialised value(s)
==6443== at 0x400A59E: ??? (in /lib/ld-2.10.1.so)
==6443== by 0x400335B: ??? (in /lib/ld-2.10.1.so)
==6443== by 0x4014A19: ??? (in /lib/ld-2.10.1.so)
==6443== by 0x4000D1F: ??? (in /lib/ld-2.10.1.so)
==6443== by 0x40008F6: ??? (in /lib/ld-2.10.1.so)
==6443==
all of them at other locations.
So i wrote a suppression file test.supp:
{
ld-2.10.1.so
Memcheck:Value1
obj:/lib/ld-2.10.1.so
}
{
ld-2.10.1.so
Memcheck:Value2
obj:/lib/ld-2.10.1.so
}
{
ld-2.10.1.so
Memcheck:Value4
obj:/lib/ld-2.10.1.so
}
{
ld-2.10.1.so
Memcheck:Value8
obj:/lib/ld-2.10.1.so
}
{
ld-2.10.1.so
Memcheck:Value16
obj:/lib/ld-2.10.1.so
}
But when i use it,
valgrind -v --suppressions=./test.supp ./test
the same errors are being displayed.
The same happens when i duplicate the line "obj:/lib/ld-2.10.1.so
Did i make an error in my suppression file?
Thank You
Jody
|
|
From: Alexander P. <gl...@go...> - 2010-02-01 08:44:27
|
You should use Memcheck:Cond rather than Memceck:ValueX.
Try looking at valgrind --gen-suppressions=all ./test
On Sun, Jan 31, 2010 at 7:32 PM, jody <jod...@gm...> wrote:
> Hi
> I am using g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
> and valgrind-3.5.0
>
> When i compile this trivial program test.cpp:
>
> int main(int iArgC, char *apArgV[]) {
> return 0;
> }
>
> and run it under valgrind:
> valgrind ./test
>
> I get lots of error messages of the form:
>
> ==6443== Conditional jump or move depends on uninitialised value(s)
> ==6443== at 0x400A59E: ??? (in /lib/ld-2.10.1.so)
> ==6443== by 0x400335B: ??? (in /lib/ld-2.10.1.so)
> ==6443== by 0x4014A19: ??? (in /lib/ld-2.10.1.so)
> ==6443== by 0x4000D1F: ??? (in /lib/ld-2.10.1.so)
> ==6443== by 0x40008F6: ??? (in /lib/ld-2.10.1.so)
> ==6443==
>
> all of them at other locations.
>
> So i wrote a suppression file test.supp:
> {
> ld-2.10.1.so
> Memcheck:Value1
> obj:/lib/ld-2.10.1.so
> }
>
> {
> ld-2.10.1.so
> Memcheck:Value2
> obj:/lib/ld-2.10.1.so
> }
>
> {
> ld-2.10.1.so
> Memcheck:Value4
> obj:/lib/ld-2.10.1.so
> }
>
> {
> ld-2.10.1.so
> Memcheck:Value8
> obj:/lib/ld-2.10.1.so
> }
>
> {
> ld-2.10.1.so
> Memcheck:Value16
> obj:/lib/ld-2.10.1.so
> }
>
> But when i use it,
> valgrind -v --suppressions=./test.supp ./test
> the same errors are being displayed.
>
> The same happens when i duplicate the line "obj:/lib/ld-2.10.1.so
> Did i make an error in my suppression file?
> Thank You
> Jody
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
--
Alexander Potapenko
Software Engineer
Google Moscow
|
|
From: jody <jod...@gm...> - 2010-02-01 12:04:23
|
Thank You!
On Mon, Feb 1, 2010 at 9:44 AM, Alexander Potapenko <gl...@go...> wrote:
> You should use Memcheck:Cond rather than Memceck:ValueX.
> Try looking at valgrind --gen-suppressions=all ./test
>
> On Sun, Jan 31, 2010 at 7:32 PM, jody <jod...@gm...> wrote:
>> Hi
>> I am using g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
>> and valgrind-3.5.0
>>
>> When i compile this trivial program test.cpp:
>>
>> int main(int iArgC, char *apArgV[]) {
>> return 0;
>> }
>>
>> and run it under valgrind:
>> valgrind ./test
>>
>> I get lots of error messages of the form:
>>
>> ==6443== Conditional jump or move depends on uninitialised value(s)
>> ==6443== at 0x400A59E: ??? (in /lib/ld-2.10.1.so)
>> ==6443== by 0x400335B: ??? (in /lib/ld-2.10.1.so)
>> ==6443== by 0x4014A19: ??? (in /lib/ld-2.10.1.so)
>> ==6443== by 0x4000D1F: ??? (in /lib/ld-2.10.1.so)
>> ==6443== by 0x40008F6: ??? (in /lib/ld-2.10.1.so)
>> ==6443==
>>
>> all of them at other locations.
>>
>> So i wrote a suppression file test.supp:
>> {
>> ld-2.10.1.so
>> Memcheck:Value1
>> obj:/lib/ld-2.10.1.so
>> }
>>
>> {
>> ld-2.10.1.so
>> Memcheck:Value2
>> obj:/lib/ld-2.10.1.so
>> }
>>
>> {
>> ld-2.10.1.so
>> Memcheck:Value4
>> obj:/lib/ld-2.10.1.so
>> }
>>
>> {
>> ld-2.10.1.so
>> Memcheck:Value8
>> obj:/lib/ld-2.10.1.so
>> }
>>
>> {
>> ld-2.10.1.so
>> Memcheck:Value16
>> obj:/lib/ld-2.10.1.so
>> }
>>
>> But when i use it,
>> valgrind -v --suppressions=./test.supp ./test
>> the same errors are being displayed.
>>
>> The same happens when i duplicate the line "obj:/lib/ld-2.10.1.so
>> Did i make an error in my suppression file?
>> Thank You
>> Jody
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>> _______________________________________________
>> Valgrind-users mailing list
>> Val...@li...
>> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>>
>
>
>
> --
> Alexander Potapenko
> Software Engineer
> Google Moscow
>
|