| 1 |
# Valgrind suppressions for the rsync test suite. |
| 2 |
# |
| 3 |
# Every stanza here is a known-benign report, not a defect in rsync's own |
| 4 |
# logic. They are suppressed so that a --valgrind run fails only on a *real* |
| 5 |
# error. Pass to valgrind with --suppressions=testsuite/valgrind.supp |
| 6 |
# (runtests.py --valgrind does this automatically). |
| 7 |
# |
| 8 |
# The valgrind CI gate runs with --leak-check=no and so checks memory *errors* |
| 9 |
# only: rsync intentionally leaves file-list/socket/option memory unfreed at |
| 10 |
# exit, which makes a full leak check inherently noisy. The two Memcheck:Leak |
| 11 |
# stanzas below therefore only matter for a manual leak audit (--leak-check= |
| 12 |
# full); they cover the two leaks that are not rsync's own at-exit slack. |
| 13 |
|
| 14 |
# popt alias strings are strdup'd while parsing arguments and only reclaimed |
| 15 |
# at process exit. One-time, bounded, unreachable-at-exit; bundled popt. |
| 16 |
{ |
| 17 |
rsync-popt-alias-leak |
| 18 |
Memcheck:Leak |
| 19 |
match-leak-kinds: definite |
| 20 |
fun:malloc |
| 21 |
fun:my_alloc |
| 22 |
fun:my_strdup |
| 23 |
fun:popt_unalias |
| 24 |
fun:parse_arguments |
| 25 |
fun:main |
| 26 |
} |
| 27 |
|
| 28 |
# libxxhash returns an internally-aligned XXH3 state whose pointer is offset |
| 29 |
# from the malloc base, so valgrind sees only an interior pointer and reports |
| 30 |
# the one-time checksum state as "possibly lost". Alignment artifact. |
| 31 |
{ |
| 32 |
xxhash-createstate-aligned |
| 33 |
Memcheck:Leak |
| 34 |
match-leak-kinds: possible |
| 35 |
fun:malloc |
| 36 |
fun:XXH3_createState |
| 37 |
} |
| 38 |
|
| 39 |
# libfakeroot's own SysV message padding in send_fakem(); the uninitialised |
| 40 |
# bytes are inside libfakeroot's mtext buffer, not rsync memory. |
| 41 |
{ |
| 42 |
fakeroot-msgsnd-padding |
| 43 |
Memcheck:Param |
| 44 |
msgsnd(msgp->mtext) |
| 45 |
fun:msgsnd |
| 46 |
... |
| 47 |
obj:*libfakeroot* |
| 48 |
} |