Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit aea8b85

Browse files
author
Hendrik van Antwerpen
committed
Ignore Valgrind warnings introduced by Rust 1.83
1 parent bba2dc4 commit aea8b85

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
- name: Run test suite under valgrind (default features)
5858
# We only need to use valgrind to test the crates that have C bindings.
5959
run: cargo valgrind test -p stack-graphs
60+
env:
61+
# Since Rust 1.83, Valgrind reports some possible leaks that cargo-valgrind
62+
# treats as fatal. The given suppressions file makes sure these are ignored.
63+
VALGRINDFLAGS: --suppressions=valgrind.supp
6064
- name: Ensure C headers are up to date
6165
run: |
6266
script/cbindgen

stack-graphs/valgrind.supp

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
rust-1.83-false-positive-1
3+
Memcheck:Param
4+
statx(file_name)
5+
fun:statx
6+
fun:statx
7+
fun:_ZN3std3sys3pal4unix2fs9try_statx17h2609435043bb8525E
8+
fun:{closure#0}
9+
fun:run_with_cstr_stack<std::sys::pal::unix::fs::FileAttr>
10+
fun:run_with_cstr<std::sys::pal::unix::fs::FileAttr>
11+
fun:run_path_with_cstr<std::sys::pal::unix::fs::FileAttr>
12+
fun:_ZN3std3sys3pal4unix2fs4stat17ha588398797a44835E
13+
fun:metadata<&std::path::PathBuf>
14+
fun:get_dbpath_for_term
15+
fun:from_name
16+
fun:_ZN4test4term8terminfo8TermInfo8from_env17h9b3ad5763ddd396cE
17+
fun:new<std::io::stdio::Stdout>
18+
fun:_ZN4test4term6stdout17hf274a19176f765bcE
19+
fun:_ZN4test7console17run_tests_console17h3d81643311f50681E
20+
fun:_ZN4test9test_main17h6c0fc3221ed0faa4E
21+
fun:_ZN4test16test_main_static17h897b969e33229363E
22+
fun:_ZN2it4main17hfbc3179ed1c35941E
23+
fun:_ZN4core3ops8function6FnOnce9call_once17h945f64a17647f84cE
24+
fun:_ZN3std3sys9backtrace28__rust_begin_short_backtrace17h41138d0332b09746E
25+
fun:_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h98fa5fc32f9b0a38E
26+
}
27+
{
28+
rust-1.83-false-positive-2
29+
Memcheck:Param
30+
statx(buf)
31+
fun:statx
32+
fun:statx
33+
fun:_ZN3std3sys3pal4unix2fs9try_statx17h2609435043bb8525E
34+
fun:{closure#0}
35+
fun:run_with_cstr_stack<std::sys::pal::unix::fs::FileAttr>
36+
fun:run_with_cstr<std::sys::pal::unix::fs::FileAttr>
37+
fun:run_path_with_cstr<std::sys::pal::unix::fs::FileAttr>
38+
fun:_ZN3std3sys3pal4unix2fs4stat17ha588398797a44835E
39+
fun:metadata<&std::path::PathBuf>
40+
fun:get_dbpath_for_term
41+
fun:from_name
42+
fun:_ZN4test4term8terminfo8TermInfo8from_env17h9b3ad5763ddd396cE
43+
fun:new<std::io::stdio::Stdout>
44+
fun:_ZN4test4term6stdout17hf274a19176f765bcE
45+
fun:_ZN4test7console17run_tests_console17h3d81643311f50681E
46+
fun:_ZN4test9test_main17h6c0fc3221ed0faa4E
47+
fun:_ZN4test16test_main_static17h897b969e33229363E
48+
fun:_ZN2it4main17hfbc3179ed1c35941E
49+
fun:_ZN4core3ops8function6FnOnce9call_once17h945f64a17647f84cE
50+
fun:_ZN3std3sys9backtrace28__rust_begin_short_backtrace17h41138d0332b09746E
51+
fun:_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h98fa5fc32f9b0a38E
52+
}
53+
{
54+
rust-1.83-false-positive-3
55+
Memcheck:Leak
56+
match-leak-kinds: possible
57+
fun:malloc
58+
fun:alloc
59+
fun:alloc_impl
60+
fun:allocate
61+
fun:{closure#0}<std::thread::Inner>
62+
fun:allocate_for_layout<core::mem::maybe_uninit::MaybeUninit<std::thread::Inner>, alloc::sync::{impl#14}::new_uninit::{closure_env#0}<std::thread::Inner>, fn(*mut u8) -> *mut alloc::sync::ArcInner<core::mem::maybe_uninit::MaybeUninit<std::thread::Inner>>>
63+
fun:new_uninit<std::thread::Inner>
64+
fun:new_inner
65+
fun:new_main
66+
fun:init
67+
fun:{closure#0}
68+
fun:do_call<std::rt::lang_start_internal::{closure_env#0}, ()>
69+
fun:try<(), std::rt::lang_start_internal::{closure_env#0}>
70+
fun:catch_unwind<std::rt::lang_start_internal::{closure_env#0}, ()>
71+
fun:_ZN3std2rt19lang_start_internal17h1c66660c99c8424cE
72+
fun:_ZN3std2rt10lang_start17hb778ad044944e8a4E
73+
fun:main
74+
}

0 commit comments

Comments
 (0)