amosbird / ldb_toolchain_gen

MIT License
66 stars 21 forks source link

Fix mmap errors reported by ASAN on aarch64 platform #17

Closed adonis0147 closed 1 year ago

adonis0147 commented 1 year ago

Background

Address sanitizer (ASAN) calls GetPageSizeCached to get the size of page when a program starts. On aarch64 platform, the function GetPageSizeCached depends on the function getauxval.

Problem

glibc-compatibility masks the function getauxval and it seems that the masked function doesn't do well. See Apache Doris#13026, Apache Doris#13031.

amosbird commented 1 year ago

Thank you for reporting this. Instead of removing getauxval from glibc-compatibility, let's try to figure out what's going wrong in the first place. This doesn't looks like a complex issue.

amosbird commented 1 year ago

@adonis0147 Please help check if https://github.com/amosbird/ldb_toolchain_gen/releases/tag/v0.14.1 can resolve the issue. I don't have an AArch64 environment to play with.

amosbird commented 1 year ago

e8c899c