https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215455
Bug ID: 215455 Summary: AdressSanitizer provides memalign() confusing consumers Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-toolchain@FreeBSD.org Reporter: jbe...@freebsd.org Some build systems test symbol availability without prototypes in case of broken/incomplete headers or due to simplicity. For one, Firefox has AC_CHECK_FUNCS(memalign) which fails on FreeBSD but defines HAVE_MEMALIGN with ASan. The code can be unwrapped into the following: $ cat a.c char memalign(); int main() { memalign(); return 0; } $ cc a.c -fsanitize=address $ echo $? 0 $ cc a.c /tmp/a-294bd8.o: In function `main': a.c:(.text+0x12): undefined reference to `memalign' $ echo $? 1 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"