|
From: sHo <m.s...@gm...> - 2007-04-03 11:28:35
|
i have a program that compiled using another shared library, let call they an OCI library. when i valgrind it, $ valgrind ./OCItest all of the output was error from shared library, like this ==13125== ==13125== Conditional jump or move depends on uninitialised value(s) ==13125== at 0x4008B2E: (within /lib/ld-2.3.6.so) ==13125== by 0x4FF3FF4: (within /lib/tls/libc-2.3.6.so) ==13125== by 0x400B44E: (within /lib/ld-2.3.6.so) ==13125== by 0x4FF360E: _dl_open (in /lib/tls/libc-2.3.6.so) ==13125== by 0x522AD8D: (within /lib/tls/libdl-2.3.6.so) ==13125== by 0x400B44E: (within /lib/ld-2.3.6.so) ==13125== by 0x522B42C: (within /lib/tls/libdl-2.3.6.so) ==13125== by 0x522AD20: dlopen (in /lib/tls/libdl-2.3.6.so) ==13125== by 0x4B02AB5: (within /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) ==13125== by 0x4B02C1B: slpmloc (in /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) ==13125== by 0x4B0050B: lpmloadpkg (in /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) ==13125== by 0x4AE965A: (within /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) ==13125== how to run a valgrind without print error from shared library ? (actually i have googling and read older archives, with relevant subject, ofcourse, but cannot found the answer) -- Mr. 'S'mart1 is a rivaL of Mr. KnowLedge. Mr. 'D'umb3 is a grandfather of Mr. KnowLedge. ;and i am oLd enough to know this three peopLe. |
|
From: Jason C. <co...@cc...> - 2007-04-03 12:04:52
|
sHo wrote: > i have a program that compiled using another shared library, > let call they an OCI library. > > when i valgrind it, > > $ valgrind ./OCItest > > all of the output was error from shared library, like this > > ==13125== > ==13125== Conditional jump or move depends on uninitialised value(s) > ==13125== at 0x4008B2E: (within /lib/ld-2.3.6.so <http://2.3.6.so>) > ==13125== by 0x4FF3FF4: (within /lib/tls/libc- 2.3.6.so > <http://2.3.6.so>) > ==13125== by 0x400B44E: (within /lib/ld-2.3.6.so <http://2.3.6.so>) > ==13125== by 0x4FF360E: _dl_open (in /lib/tls/libc-2.3.6.so > <http://2.3.6.so> ) > ==13125== by 0x522AD8D: (within /lib/tls/libdl-2.3.6.so > <http://2.3.6.so>) > ==13125== by 0x400B44E: (within /lib/ld-2.3.6.so <http://2.3.6.so>) > ==13125== by 0x522B42C: (within /lib/tls/libdl- 2.3.6.so > <http://2.3.6.so>) > ==13125== by 0x522AD20: dlopen (in /lib/tls/libdl-2.3.6.so > <http://2.3.6.so>) > ==13125== by 0x4B02AB5: (within > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) > > ==13125== by 0x4B02C1B: slpmloc (in > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) > ==13125== by 0x4B0050B: lpmloadpkg (in > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) > > ==13125== by 0x4AE965A: (within > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1) > ==13125== > > how to run a valgrind without print error from shared library ? > > (actually i have googling and read older archives, with relevant > subject, ofcourse, > but cannot found the answer) Hi I would have thought suppressions would nail this: read this part of the manual http://www.valgrind.org/docs/manual/manual-core.html#manual-core.suppress Jason > > -- > Mr. 'S'mart1 is a rivaL of Mr. KnowLedge. > Mr. 'D'umb3 is a grandfather of Mr. KnowLedge. > ;and i am oLd enough to know this three peopLe. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |
|
From: Fred S. <fr...@co...> - 2007-04-03 13:15:29
|
Looks like he's using Oracle 10.1 client. I've ALWAYS had a bazillion errors of that ilk emitted by valgrind when running against OCI programs, and for the most part have not been able to get suppressions to work. I've spent a few hours on it, over the course of many months, and have been able to suppress some but not most of the msgs emitted by Valgrind against the oracle libraries. Not even when I tell it to print the necessary suppressions. Wish I could help him, but if anyone else knows how to do it I'd like to hear too. Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. fr...@co... 781-275-4488x148 =0D > -----Original Message----- > From: val...@li... [mailto:valgrind-users- > bo...@li...] On Behalf Of Jason Cole > Sent: Tuesday, April 03, 2007 8:05 AM > To: val...@li... > Subject: Re: [Valgrind-users] How to NOT print error from shared library ? >=0D > sHo wrote: > > i have a program that compiled using another shared library, > > let call they an OCI library. > > > > when i valgrind it, > > > > $ valgrind ./OCItest > > > > all of the output was error from shared library, like this > > > > =3D=3D13125=3D=3D > > =3D=3D13125=3D=3D Conditional jump or move depends on uninitialised= value(s) > > =3D=3D13125=3D=3D at 0x4008B2E: (within /lib/ld-2.3.6.so <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x4FF3FF4: (within /lib/tls/libc- 2.3.6.so > > <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x400B44E: (within /lib/ld-2.3.6.so <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x4FF360E: _dl_open (in /lib/tls/libc-2.3.6.so > > <http://2.3.6.so> ) > > =3D=3D13125=3D=3D by 0x522AD8D: (within /lib/tls/libdl-2.3.6.so > > <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x400B44E: (within /lib/ld-2.3.6.so <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x522B42C: (within /lib/tls/libdl- 2.3.6.so > > <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x522AD20: dlopen (in /lib/tls/libdl-2.3.6.so > > <http://2.3.6.so>) > > =3D=3D13125=3D=3D by 0x4B02AB5: (within > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10. 1) > > > > =3D=3D13125=3D=3D by 0x4B02C1B: slpmloc (in > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10. 1) > > =3D=3D13125=3D=3D by 0x4B0050B: lpmloadpkg (in > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10. 1) > > > > =3D=3D13125=3D=3D by 0x4AE965A: (within > > > /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10. 1) > > =3D=3D13125=3D=3D > > > > how to run a valgrind without print error from shared library ? > > > > (actually i have googling and read older archives, with relevant > > subject, ofcourse, > > but cannot found the answer) >=0D > Hi >=0D > I would have thought suppressions would nail this: read this part of the > manual >=0D > http://www.valgrind.org/docs/manual/manual-core.html#manual-core.suppres s >=0D >=0D > Jason > > > > -- > > Mr. 'S'mart1 is a rivaL of Mr. KnowLedge. > > Mr. 'D'umb3 is a grandfather of Mr. KnowLedge. > > ;and i am oLd enough to know this three peopLe. > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------ > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDE V > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Valgrind-users mailing list > > Val...@li... > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > >=0D >=0D > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDE V > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users This email and any files transmitted with it are confidential and intended= solely for the use of the individual or entity to which they are= addressed. If you have received this email in error, please notify the= system manager. Please note that any views or opinions presented in this= email are solely those of the author and do not necessarily represent= those of the company. Finally, the recipient should check this email and= any attachments for the presence of viruses. The company accepts no= liability for any damage caused by any virus transmitted by this email. |
|
From: Nuno L. <nun...@sa...> - 2007-04-03 13:54:46
|
It isn't that difficult, but you need valgrind 3.2.3 though. Take a look at http://gcov.php.net/~nlopess/valgrind.supp Nuno ----- Original Message ----- From: "Fred Smith" <fr...@co...> To: <val...@li...> Sent: Tuesday, April 03, 2007 2:15 PM Subject: Re: [Valgrind-users] How to NOT print error from shared library ? > > Looks like he's using Oracle 10.1 client. > > I've ALWAYS had a bazillion errors of that ilk emitted by valgrind when > running against OCI programs, and for the most part have not been able > to get suppressions to work. I've spent a few hours on it, over the > course of many months, and have been able to suppress some but not most > of the msgs emitted by Valgrind against the oracle libraries. Not even > when I tell it to print the necessary suppressions. > > Wish I could help him, but if anyone else knows how to do it I'd like to > hear too. > > Fred Smith > Senior Applications Programmer/Analyst > Computrition, Inc. > fr...@co... > 781-275-4488x148 |
|
From: Julian S. <js...@ac...> - 2007-04-03 14:05:27
|
> I've ALWAYS had a bazillion errors of that ilk emitted by valgrind when > running against OCI programs, and for the most part have not been able > to get suppressions to work. I've spent a few hours on it, over the > course of many months, and have been able to suppress some but not most > of the msgs emitted by Valgrind against the oracle libraries. Not even > when I tell it to print the necessary suppressions. There's quite a lot of complexity in the detection and suppression of errors, so I'd need to see some examples of errors you tried and failed to suppress in order to diagnose this. One thing worth trying is the latest stable release (3.2.3). Newer compilers and libraries always have a handful of oddities which Memcheck doesn't handle so well, and in 3.2.3 quite some effort went into to handling those better. J |
|
From: sHo <m.s...@gm...> - 2007-04-04 03:15:09
|
On 4/3/07, Julian Seward <js...@ac...> wrote: > > > > I've ALWAYS had a bazillion errors of that ilk emitted by valgrind when > > running against OCI programs, and for the most part have not been able > > to get suppressions to work. I've spent a few hours on it, over the > > course of many months, and have been able to suppress some but not most > > of the msgs emitted by Valgrind against the oracle libraries. Not even > > when I tell it to print the necessary suppressions. > > There's quite a lot of complexity in the detection and suppression of > errors, > so I'd need to see some examples of errors you tried and failed to > suppress > in order to diagnose this. > > One thing worth trying is the latest stable release (3.2.3). Newer > compilers and libraries always have a handful of oddities which Memcheck > doesn't handle so well, and in 3.2.3 quite some effort went into to > handling those better. > > J > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > Thank you aLL, so the key was "suppression", not "error +"shared library"", stupid in me. ^_^ -- Mr. 'S'mart1 is a rivaL of Mr. KnowLedge. Mr. 'D'umb3 is a grandfather of Mr. KnowLedge. ;and i am oLd enough to know this three peopLe. |