valgrind.supp raw

   1  # This valgrind suppressions file includes known Valgrind warnings in our
   2  # dependencies that cannot be fixed in-tree.
   3  #
   4  # Example use:
   5  # $ valgrind --suppressions=contrib/valgrind.supp build/bin/test_limenka
   6  # $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
   7  #       --show-leak-kinds=all build/bin/test_limenka
   8  #
   9  # To create suppressions for found issues, use the --gen-suppressions=all option:
  10  # $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
  11  #       --show-leak-kinds=all --gen-suppressions=all --show-reachable=yes \
  12  #       --error-limit=no build/bin/test_limenka
  13  #
  14  # Note that suppressions may depend on OS and/or library versions.
  15  # Tested on:
  16  # * aarch64 (Ubuntu Noble system libs, clang, without gui)
  17  # * x86_64  (Ubuntu Noble system libs, clang, without gui)
  18  {
  19     Suppress libdb warning - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662917
  20     Memcheck:Cond
  21     obj:*/libdb_cxx-*.so
  22     fun:__log_put
  23  }
  24  {
  25     Suppress libdb warning
  26     Memcheck:Param
  27     pwrite64(buf)
  28     fun:pwrite
  29     fun:__os_io
  30  }
  31  {
  32     Suppress libdb warning
  33     Memcheck:Cond
  34     fun:__log_putr.isra.1
  35  }
  36  {
  37     Suppress libdb warning
  38     Memcheck:Param
  39     pwrite64(buf)
  40     ...
  41     obj:*/libdb_cxx-*.so
  42  }
  43  {
  44     Suppress uninitialized bytes warning in compat code
  45     Memcheck:Param
  46     ioctl(TCSET{S,SW,SF})
  47     fun:tcsetattr
  48  }
  49  {
  50     Suppress libdb warning
  51     Memcheck:Leak
  52     fun:malloc
  53     ...
  54     obj:*/libdb_cxx-*.so
  55  }
  56  {
  57     Suppress leaks on shutdown
  58     Memcheck:Leak
  59     ...
  60     fun:_Z8ShutdownR11NodeContext
  61  }
  62  {
  63     Suppress leveldb leak
  64     Memcheck:Leak
  65     match-leak-kinds: reachable
  66     fun:_Znwm
  67     ...
  68     fun:_ZN7leveldb6DBImpl14BackgroundCallEv
  69  }
  70  {
  71     Suppress leveldb leak
  72     Memcheck:Leak
  73     fun:_Znwm
  74     ...
  75     fun:GetCoin
  76  }
  77  {
  78     Suppress LogInstance still reachable memory warning
  79     Memcheck:Leak
  80     match-leak-kinds: reachable
  81     fun:_Znwm
  82     fun:_Z11LogInstancev
  83  }
  84  {
  85     Suppress BCLog::Logger::StartLogging() still reachable memory warning
  86     Memcheck:Leak
  87     match-leak-kinds: reachable
  88     fun:malloc
  89     ...
  90     fun:_ZN5BCLog6Logger12StartLoggingEv
  91  }
  92  {
  93     Suppress https://bugs.kde.org/show_bug.cgi?id=472219 - fixed in Valgrind 3.22.
  94     Memcheck:Param
  95     ppoll(ufds.events)
  96     obj:/lib/ld-musl-aarch64.so.1
  97  }
  98