You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This came out of #121 where address sanitizer doesn't work out of the box under WSL, requiring setting /proc/sys/vm/overcommit_memory to 1. This is because asan tries to map a large memory region with MAP_NORESERVE and PROT_READ|PROT_WRITE and this map fails (curiously, mapping the region with PROT_NONE and doing a following mprotect succeeds).
Prints a valid pointer on a real Linux system with overcommit_memory set to 0. Under WSL, mmap returns -1. Setting overcommit_memory to 1 fixes this but the expected behavior is that this code works without changes under WSL.
The text was updated successfully, but these errors were encountered:
This came out of #121 where address sanitizer doesn't work out of the box under WSL, requiring setting
/proc/sys/vm/overcommit_memory
to 1. This is because asan tries to map a large memory region with MAP_NORESERVE and PROT_READ|PROT_WRITE and this map fails (curiously, mapping the region with PROT_NONE and doing a following mprotect succeeds).This program:
Prints a valid pointer on a real Linux system with overcommit_memory set to 0. Under WSL, mmap returns -1. Setting overcommit_memory to 1 fixes this but the expected behavior is that this code works without changes under WSL.
The text was updated successfully, but these errors were encountered: