linux 5.7-rc3, gcc 9.2.1: ThreadSanitizer: unexpected memory mapping
- Dominant language
- C
- Stars
- 12.5k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Using this simple program:
```
int main(){}
```
compiled with:
```
gcc -fsanitize=thread test.c
```
Results in the following error:
```
oipo@oipo-X570-AORUS-ELITE:/home/oipo-unencrypted/Programming/celix/build$ ./a.out
FATAL: ThreadSanitizer: unexpected memory mapping 0x5f08789ff000-0x5f0878a00000
oipo@oipo-X570-AORUS-ELITE:/home/oipo-unencrypted/Programming/celix/build$ ./a.out
FATAL: ThreadSanitizer: unexpected memory mapping 0x57702f3a0000-0x57702f3a1000
oipo@oipo-X570-AORUS-ELITE:/home/oipo-unencrypted/Programming/celix/build$ ./a.out
FATAL: ThreadSanitizer: unexpected memory mapping 0x5a5423613000-0x5a5423614000
oipo@oipo-X570-AORUS-ELITE:/home/oipo-unencrypted/Programming/celix/build$ ./a.out
FATAL: ThreadSanitizer: unexpected memory mapping 0x58382453e000-0x58382453f000
```
I've tried looking in my kernel configuration for any suspects what may cause this, but MEMORY_RANDOMIZATION and KASLR disabled doesn't change anything.
Contributor guide
Assessment
This issue has not been assessed yet.