Commit ba4e372
fix(valgrind): suppress libstdc++ static-init exception pool
ctest -T memcheck flagged "Defects: 1 (Potential Memory Leak)" on every
test binary — including HeapLogTest, which has no real memory defect
(ERROR SUMMARY: 0). The block is the 72,704-byte libstdc++ emergency
exception pool allocated once by eh_alloc.cc's static initializer and
intentionally never freed; with -static-libstdc++ the frame appears as
_GLOBAL__sub_I_eh_alloc.cc in the binary itself, so the existing
__cxa_get_globals suppression never matched.
Suppression stack captured with --gen-suppressions=all in the exact CI
environment (Ubuntu 22.04, clang-16, Valgrind 3.18 via the map2check-dev
Docker image). With it, the full 6-test ctest -T memcheck suite reports
0 defects and exits 0.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent ca2692c commit ba4e372
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
| |||
0 commit comments