Skip to content

Commit 54f3f2e

Browse files
committed
Auto merge of #31781 - alexcrichton:wtf-segfault, r=aturon
It's unclear to me whether this test failing under valgrind is actually legit. The test only fails in valgrind when everything is dynamically linked, and it appears to work when statically linked. For now just add the `// no-prefer-dynamic` directive and let's just chalk it up to a weird valgrind issue. Closes #31328
2 parents 28a3e8b + 595d5b2 commit 54f3f2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/run-pass-valgrind/down-with-thread-dtors.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// no-prefer-dynamic
12+
1113
thread_local!(static FOO: Foo = Foo);
1214
thread_local!(static BAR: Bar = Bar(1));
1315
thread_local!(static BAZ: Baz = Baz);

0 commit comments

Comments
 (0)