Skip to content

Instantly share code, notes, and snippets.

@rousskov
Created December 23, 2021 14:18
Show Gist options
  • Save rousskov/a1f503981b4a3832ab44221b0b615b5a to your computer and use it in GitHub Desktop.
Save rousskov/a1f503981b4a3832ab44221b0b615b5a to your computer and use it in GitHub Desktop.
Poorly maintained Valgrind suppressions for Squid
# Invalid read of size 4
{
mainInitialize-addr4
Memcheck:Addr4
...
fun:_ZL14mainInitializev
...
fun:main
}
{
mainInitialize-leak
Memcheck:Leak
...
fun:_ZL14mainInitializev
...
fun:main
}
{
cbdata-initType-leak1
Memcheck:Leak
...
fun:_ZL22cbdataInternalInitType11cbdata_typePKciPFvPvE
...
}
{
cbdata-initType-leak2
Memcheck:Leak
...
fun:_ZL22cbdataInternalInitTypeiPKciPFvPvE
...
}
{
cbdata-initType-leak3
Memcheck:Leak
...
fun:_ZL22cbdataInternalInitTypeiPKci
...
}
# Initial configuration allocations that are often never freed
{
firstConfig-leak
Memcheck:Leak
...
fun:_Z15parseConfigFilePKc
fun:_Z9SquidMainiPPc
...
fun:main
}
# OpenSSL never deletes this (from valgrind point of view anyway)
{
openssl-internal-data-SSL_get_ex_data_X509_STORE_CTX_idx
Memcheck:Leak
fun:malloc
...
fun:X509_STORE_CTX_get_ex_new_index
...
fun:main
}
# Static Registry Runners registrations
{
RegisterRunner-register
Memcheck:Leak
...
fun:_Z14RegisterRunnerRK14RunnerRegistryP16RegisteredRunner
fun:_Z41__static_initialization_and_destruction_0ii
...
fun:(below main)
}
# Static initializations
{
static-init-catchall
Memcheck:Leak
...
fun:_Z41__static_initialization_and_destruction_0ii
...
fun:(below main)
}
# Conditional jump or move depends on uninitialised value(s)
# Uninitialised value was created by a stack allocation
# aesni_cbc_encrypt (aesni-x86_64.s:2081)
{
jump-after-openssl-aesni_cbc_encrypt-hack
Memcheck:Cond
...
fun:tls1_enc
...
fun:SSL_read
}
# These may be true leaks that should be eventually fixed (think reconfigure)
#{
# parseConfigFile-leak
# Memcheck:Leak
# ...
# fun:_Z15parseConfigFilePKc
# ...
# fun:main
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment