File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ void padding_shrink(); // issue #209
33
33
void various_tests ();
34
34
void test_mt_shutdown ();
35
35
void fail_aslr (); // issue #372
36
+ void tsan_numa_test (); // issue #414
36
37
37
38
int main () {
38
39
mi_stats_reset (); // ignore earlier allocations
@@ -41,6 +42,8 @@ int main() {
41
42
heap_late_free ();
42
43
padding_shrink ();
43
44
various_tests ();
45
+ tsan_numa_test ();
46
+
44
47
// test_mt_shutdown();
45
48
// fail_aslr();
46
49
mi_stats_print (NULL );
@@ -216,4 +219,16 @@ void fail_aslr() {
216
219
void * p = malloc (sz);
217
220
printf (" pointer p: %p: area up to %p\n " , p, (uint8_t *)p + sz);
218
221
*(int *)0x5FFFFFFF000 = 0 ; // should segfault
222
+ }
223
+
224
+ // issues #414
225
+ void dummy_worker () {
226
+ void * p = mi_malloc (0 );
227
+ mi_free (p);
228
+ }
229
+
230
+ void tsan_numa_test () {
231
+ auto t1 = std::thread (dummy_worker);
232
+ dummy_worker ();
233
+ t1.join ();
219
234
}
You can’t perform that action at this time.
0 commit comments