Skip to content

Instantly share code, notes, and snippets.

@tshinnic
Last active April 10, 2016 11:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tshinnic/1aa5d249ceede82abf1a to your computer and use it in GitHub Desktop.
Save tshinnic/1aa5d249ceede82abf1a to your computer and use it in GitHub Desktop.
Valgrind suppression file for FontForge built with Pango
# The below suppressions suppress just about every entry that pango
# libraries could have contributed to. This is likely excessive... ;)
#
# We make good use of the wildcarding features of Valgrind. By using
# wildcarded library object filenames we can hope this source is
# portable to more systems.
# On one tested system (Ubuntu 14.04), these libraries are:
# /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.3600.3
# /usr/lib/x86_64-linux-gnu/libpangoxft-1.0.so.0.3600.3
# /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3600.3
# /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3600.3
# On the tested system (Fedora 20), these libraries are:
# /usr/lib64/libpango-1.0.so.0.3600.1
# /usr/lib64/libpangocairo-1.0.so.0.3600.1
# /usr/lib64/libpangoft2-1.0.so.0.3600.1
# /usr/lib64/libpangoxft-1.0.so.0.3600.1
# "4.4. Writing suppression files"
# http://valgrind.org/docs/manual/mc-manual.html#mc-manual.suppfiles
# match-leak-kinds: definite,possible
# definite indirect possible reachable all none
{
ff_pango_leak_calloc_lib_global
Memcheck:Leak
match-leak-kinds: definite,possible
fun:calloc
...
obj:*/libpango*
}
{
ff_pango_leak_malloc_lib_global
Memcheck:Leak
match-leak-kinds: definite,possible
fun:malloc
...
obj:*/libpango*
}
{
ff_pango_leak_realloc_lib_global
Memcheck:Leak
match-leak-kinds: definite,possible
fun:realloc
...
obj:*/libpango*
}
# On Ubuntu
# 3 ff_pango_leak_calloc_lib_global valgrind_ff_pango.supp:40 suppressed: 143 bytes in 3 blocks
# 10 ff_pango_leak_malloc_lib_global valgrind_ff_pango.supp:48 suppressed: 336 bytes in 10 blocks
# 14 ff_pango_leak_realloc_lib_global valgrind_ff_pango.supp:56 suppressed: 85,576 bytes in 24 blocks
# 27
# 4 ff_pango_leak_calloc_lib_global valgrind_ff_pango.supp:47 suppressed: 175 bytes in 4 blocks
# 22 ff_pango_leak_malloc_lib_global valgrind_ff_pango.supp:55 suppressed: 837 bytes in 34 blocks
# 14 ff_pango_leak_realloc_lib_global valgrind_ff_pango.supp:63 suppressed: 84,784 bytes in 24 blocks
# 40
# On Fedora
# 4 ff_pango_leak_calloc_lib_global valgrind_ff_pango.supp:18 suppressed: 175 bytes in 4 blocks
# 11 ff_pango_leak_malloc_lib_global valgrind_ff_pango.supp:26 suppressed: 344 bytes in 11 blocks
# 12 ff_pango_leak_realloc_lib_global valgrind_ff_pango.supp:34 suppressed: 85,145 bytes in 24 blocks
# 27
@tshinnic
Copy link
Author

tshinnic commented Aug 2, 2014

See also the associated suppression file gist
"Valgrind suppression file for FontForge built with Python 3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment