Date: Tue, 20 Dec 2016 21:21:20 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 215455] AdressSanitizer provides memalign() confusing consumers Message-ID: <bug-215455-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215455 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: jbeich@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 w= ith ASan. The code can be unwrapped into the following: $ cat a.c char memalign(); int main() { memalign(); return 0; } $ cc a.c -fsanitize=3Daddress $ echo $? 0 $ cc a.c /tmp/a-294bd8.o: In function `main': a.c:(.text+0x12): undefined reference to `memalign' $ echo $? 1 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215455-29464>