Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, January 2007
valgrind: any way to fix or suppress these errors?


Message 1 in thread

Valgrind is a great tool, however the most annoying part 
about it is when the things its reporting come from libraries
not owned by ones-self.  That being said, is there a way
to suppress certain reportings in Valgrind, especially:

==15824== Conditional jump or move depends on uninitialised value(s)

Im getting hundreds, if not thousands of these coming from QT's libs
(not my own) and its downright annoying trying to wade through them
to find my real problems.

Workarounds? Suggestions?

I looked at the valgrind pages and didnt see anything, but its
possible I may have missed something.

Thanks
Jeff

--
 [ signature omitted ] 

Message 2 in thread

Jeff Lacki wrote:

> I looked at the valgrind pages and didnt see anything, but its
> possible I may have missed something.
> 

You can use suppression files:

http://www.valgrind.org/docs/manual/manual-core.html#manual-core.suppress

Christoph

--
 [ signature omitted ] 

Message 3 in thread

Jeff,

I'm no expert and haven't tried this...but there is a suppression mechanism 
and and option called "gen-suppressions" which looks promising.

from "man valgrind"......


     --gen-suppressions=<yes|no|all> [default: no]
              When set to yes, valgrind will pause  after  every
              error shown and print the line:


              ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ----


              Pressing  Y  Ret or y Ret will cause a suppression
              for this error to be printed. This suppression can
              be  cut-and-paste  into a custom suppressions file
              and used to  suppress  this  error  in  subsequent
              runs.

Amit

On Sunday 28 January 2007 22:44, Jeff Lacki wrote:

> Valgrind is a great tool, however the most annoying part
> about it is when the things its reporting come from libraries
> not owned by ones-self.  That being said, is there a way
> to suppress certain reportings in Valgrind, especially:
>
> ==15824== Conditional jump or move depends on uninitialised value(s)
>
> Im getting hundreds, if not thousands of these coming from QT's libs
> (not my own) and its downright annoying trying to wade through them
> to find my real problems.
>
> Workarounds? Suggestions?
>
> I looked at the valgrind pages and didnt see anything, but its
> possible I may have missed something.
>
> Thanks
> Jeff
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/

--
 [ signature omitted ]