Commit ab63f7a
authored
Ensure lsan is initialized (#20790)
This fixes lsan.test_pthread_exit_main_stub.
I think this a bug upstream bug hasn't been noticed because it only
shows up in some rare circumstances.
- no dynamic memory allocation function is called (e.g. malloc/free)
- pthread_create is not called
- pthread_exit (or some other pthread API) *is* called
- SANITIZER_CAN_USE_PREINIT_ARRAY is not defined1 parent 1efebf3 commit ab63f7a
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
| 527 | + | |
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments