[asterisk-bugs] [Asterisk 0016007]: [patch] Clean valgrind output by suppressing false errors

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 6 04:26:15 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16007 
====================================================================== 
Reported By:                atis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16007
Category:                   Documentation
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     ready for review
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 221627 
Request Review:              
====================================================================== 
Date Submitted:             2009-10-01 13:06 CDT
Last Modified:              2009-10-06 04:26 CDT
====================================================================== 
Summary:                    [patch] Clean valgrind output by suppressing false
errors
Description: 
There are some false errors that are flooding valgrind log. 

Attached small valgrind suppression file that filters out most common
errors. It's supposed to be placed in utils/asterisk.supp but if other dir
is chosen, it should be updated in valgrind.txt

Also updated valgrind.txt so that 
* it doesn't write malloc_debug.txt from stderr (which never ever
contained anything useful).
* --log-fd is used instead of --log-file. This helps to avoid flood with
"Use --log-fd=<number> to select an alternative log fd" messages.




====================================================================== 

---------------------------------------------------------------------- 
 (0111899) atis (reporter) - 2009-10-06 04:26
 https://issues.asterisk.org/view.php?id=16007#c111899 
---------------------------------------------------------------------- 
amorsen: --log-fd means which of file descriptors valgrind will use for
output.

I'm not sure, why using --log-file creates lot of log messages saying to
use --log-fd, but using --log-fd has no real disadvantages over --log-file.
The only disadvantage would be that asterisk wis able to use one less file
descriptor, but it donesn't use more than 3 anyway.

Actually, You can control it just like any file descriptor, if You want to
append next valgrind log to previous one, just use:

valgrind --suppressions=/usr/src/asterisk/utils/asterisk.supp --log-fd=9
asterisk -vvvvcg 9>>valgrind.txt

That has two >> symbols instead of one >. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-06 04:26 atis           Note Added: 0111899                          
======================================================================




More information about the asterisk-bugs mailing list