[libc-commits] [libc] [libc] fix scudo integration build (PR #116979)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Wed Nov 20 12:16:26 PST 2024
SchrodingerZhu wrote:
@nickdesaulniers I am not sure why it does not reproduce on your side, but it just reproduces and the debugging story starts there.
So I just attached the debugger the found out that it errors out on a failure of `mmap`. Using `strace`, I can see that the failed `mmap` is to apply a `MAP_FIXED` on an address that is not page-aligned.
Then, it just comes to me that the allocator may get the wrong page size.
I re-run the test with debugger attached, and I tried `sysconf(1)` in the debugger (`_SC_PAGESIZE=1` in our header), and it returned a value that is apparently not correct.
So, it must be the case that the implementation does not match the header. Indeed, the test can be fixed by enforcing the symbol implementation from our side.
https://github.com/llvm/llvm-project/pull/116979
More information about the libc-commits
mailing list