| 1 |
# Valgrind may generate false positives on pthreads: https://stackoverflow.com/a/13132968 |
| 2 |
# Without these suppressions, the following tests will fail: |
| 3 |
# s2n_examples_test, s2n_fork_generation_number_test, s2n_init_test, s2n_key_update_threads_test, and s2n_random_test. |
| 4 |
{ |
| 5 |
pthread_false_positive |
| 6 |
Memcheck:Leak |
| 7 |
match-leak-kinds: possible |
| 8 |
fun:calloc |
| 9 |
... |
| 10 |
fun:allocate_dtv |
| 11 |
fun:_dl_allocate_tls |
| 12 |
fun:allocate_stack |
| 13 |
fun:pthread_create@@* |
| 14 |
... |
| 15 |
fun:main |
| 16 |
} |
| 17 |
|
| 18 |
# This memory leak is believed to be caused by backtrace() loading libgcc dynamically. |
| 19 |
# See https://man7.org/linux/man-pages/man3/backtrace_symbols_fd.3.html |
| 20 |
# We were unable to find any relevant bug reports. However, testing showed that the memory |
| 21 |
# leak didn't scale with the number of calls to backtrace(), both supporting this theory and |
| 22 |
# limiting the potential impact of the leak. |
| 23 |
{ |
| 24 |
stacktrace_suppression |
| 25 |
Memcheck:Leak |
| 26 |
match-leak-kinds: possible |
| 27 |
fun:malloc |
| 28 |
fun:malloc |
| 29 |
fun:_dlfo_mappings_segment_allocate |
| 30 |
fun:_dl_find_object_update_1 |
| 31 |
fun:_dl_find_object_update |
| 32 |
fun:dl_open_worker_begin |
| 33 |
fun:_dl_catch_exception |
| 34 |
fun:dl_open_worker |
| 35 |
fun:_dl_catch_exception |
| 36 |
fun:_dl_open |
| 37 |
fun:do_dlopen |
| 38 |
fun:_dl_catch_exception |
| 39 |
fun:_dl_catch_error |
| 40 |
fun:dlerror_run |
| 41 |
fun:__libc_dlopen_mode |
| 42 |
fun:__libc_unwind_link_get |
| 43 |
... |
| 44 |
fun:backtrace |
| 45 |
... |
| 46 |
fun:main |
| 47 |
} |
| 48 |
|
| 49 |
# TODO: fix the pedantic leak errors from s2n_fork_generation_number_test |
| 50 |
{ |
| 51 |
ignore_s2n_fork_generation_number_test |
| 52 |
Memcheck:Leak |
| 53 |
match-leak-kinds: reachable |
| 54 |
... |
| 55 |
fun:s2n_test_case_default_cb |
| 56 |
fun:main |
| 57 |
} |
| 58 |
{ |
| 59 |
ignore_s2n_fork_generation_number_test |
| 60 |
Memcheck:Leak |
| 61 |
match-leak-kinds: reachable |
| 62 |
... |
| 63 |
fun:s2n_test_case_madv_wipeonfork_cb |
| 64 |
fun:main |
| 65 |
} |