google / google/sanitizers

linux 5.7-rc3, gcc 9.2.1: ThreadSanitizer: unexpected memory mapping

Open
#1,237 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.