View Issue Details

IDProjectCategoryView StatusLast Update
0000561ascendgeneralpublic2017-04-23 18:27
Reporterben 
Assigned Toben 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Platformx86+OSLinuxOS Versionany
Product VersionSVN 
Target VersionSVNFixed in Version 
Summary0000561: valgrind usage (permanently open)
Descriptionvalgrind is a very handy tool to detect programming errors. This issue documents a simple example and steps to make it more useful by suppressing certain messages in common libraries.

Ideally this should also be captured by putting ascend/pyascend specific suppression files in svn and using them as part of nightly testing.

Example:

valgrind --suppressions=/tmp/a4supp --leak-check=full --track-origins=yes --gen-suppressions=all -v ./ascend4

and the content of /tmp/a4supp should be something like:{
   memtclv
   Memcheck:Value8
   ...
   obj:/usr/lib/libtcl8.5.so.0
   ...
}
{
   memtkv
   Memcheck:Value8
   ...
   obj:/usr/lib/libtk8.5.so.0
   ...
}
{
   memtclc
   Memcheck:Cond
   ...
   obj:/usr/lib/libtcl8.5.so.0
   ...
}
{
   memtkc
   Memcheck:Cond
   ...
   obj:/usr/lib/libtk8.5.so.0
   ...
}
{
   memtcl
   Memcheck:Leak
   ...
   obj:/usr/lib/libtcl8.5.so.0
   ...
}
{
   memtk
   Memcheck:Leak
   ...
   obj:/usr/lib/libtk8.5.so.0
   ...
}
{
   fontconfig
   Memcheck:Leak
   ...
   obj:/usr/lib/libfontconfig.so.1.4.4
   ...
}

Steps To Reproducerun valgrind during all C development.
Additional Informationsee also man page for valgrind and valgrind online documentation.
TagsNo tags attached.

Relationships

Activities

john

2012-08-09 09:53

administrator   ~0000892

Last edited: 2012-08-09 09:54

View 2 revisions

Hi Ben

You might like to include the above suppressions in our trunk suppressions file, code/trunk/tools/valgrind/suppressions as detailed here:

[[Valgrind]]

Cheers
JP

john

2017-04-23 18:27

administrator   ~0001019

closed; tcl-tk GUI is only minimally used now.

Issue History

Date Modified Username Field Change
2012-08-09 09:17 ben New Issue
2012-08-09 09:17 ben Status new => assigned
2012-08-09 09:17 ben Assigned To => ben
2012-08-09 09:53 john Note Added: 0000892
2012-08-09 09:54 john Note Edited: 0000892 View Revisions
2017-04-23 18:27 john Status assigned => closed
2017-04-23 18:27 john Resolution open => fixed
2017-04-23 18:27 john Note Added: 0001019