diff options
Diffstat (limited to 'src/documentation/content/xdocs/ValgrindBadSuppressions.html')
-rwxr-xr-x | src/documentation/content/xdocs/ValgrindBadSuppressions.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/ValgrindBadSuppressions.html b/src/documentation/content/xdocs/ValgrindBadSuppressions.html new file mode 100755 index 0000000000..d7c8221b47 --- /dev/null +++ b/src/documentation/content/xdocs/ValgrindBadSuppressions.html @@ -0,0 +1,61 @@ +<html> + <head> + <title>Apache Qpid : ValgrindBadSuppressions</title> + <link rel="stylesheet" href="styles/site.css" type="text/css" /> + <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> + </head> + + <body> + <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff"> + <tr> + <td valign="top" class="pagebody"> + <div class="pageheader"> + <span class="pagetitle"> + Apache Qpid : ValgrindBadSuppressions + </span> + </div> + <div class="pagesubheading"> + This page last changed on Mar 28, 2007 by <font color="#0050B2">aconway</font>. + </div> + + <p>(Observed with valgrind 3.2.1, fixed in 3.2.3)<br/> +Valgrind 3.2.1 sometimes produces supressions that don't work, like this:</p> +<div class="code"><div class="codeContent"> +<pre class="code-java">{
+ <insert a suppression name here>
+ Memcheck:Free
+ fun:_vgrZU_libcZdsoZa_free
+ fun:main
+}</pre> +</div></div> +<p>The identifying characteristic is that they begin with fun:_vg<something></p> + +<p><a href="http://article.gmane.org/gmane.comp.debugging.valgrind/5939" title="Visit page outside Confluence">http://article.gmane.org/gmane.comp.debugging.valgrind/5939</a> explains what these symbols are.</p> + +<p>The workaround is to replace fun:<em>vg*_lib*</em><something> with fun:<something>, where something<br/> +should be a valid C or C++ mangled symbol.</p> + +<p>The following test program demonstrates the problem</p> +<div class="code"><div class="codeContent"> +<pre class="code-java">#include <stdlib.h>
+<span class="code-object">int</span> main(<span class="code-object">int</span> argc,<span class="code-object">char</span>**argv) {
+ <span class="code-object">char</span>*p = malloc(10);
+ free(p);
+ free(p);
+}</pre> +</div></div> + + + </td> + </tr> + </table> + <table border="0" cellpadding="0" cellspacing="0" width="100%"> + <tr> + <td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td> + </tr> + <tr> + <td align="center"><font color="grey">Document generated by Confluence on Apr 22, 2008 02:47</font></td> + </tr> + </table> + </body> +</html>
\ No newline at end of file |