New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod/perlhacktips.pod: misleading instructions for AddressSanitizer #16910
Comments
From @jkeenanToday Karl Williamson and I were discussing some as yet inexplicable ##### To build perl with AddressSanitizer, your Configure sh Configure -des -Dcc=clang \ where these arguments mean: * -Dcc=clang This should be replaced by the full path to your clang * -Accflags=-faddress-sanitizer Compile perl and extensions sources with * -Aldflags=-faddress-sanitizer Link the perl executable with AddressSanitizer. * -Alddlflags=-shared\ -faddress-sanitizer Link dynamic extensions with AddressSanitizer. You Note the repeated use of the string 'address-sanitizer'. Based on that, ##### ./Configure quickly failed. ##### [snip unproblematic output] Operating system name? [freebsd] I consulted the AddressSanitizer github page cited above as well as some ##### Note that the string used in 3 places is now: '-fsanitize=address'. The The documentation in pod/perlhacktips.pod was written in 2012. It is Thank you very much. perl perl perl |
From @jkeenanOn Fri, 29 Mar 2019 21:44:22 GMT, jkeenan@pobox.com wrote:
Is there anyone familiar with address-sanitizer who could confirm my evaluation of our documentation above? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Sun, Oct 13, 2019 at 11:10:04AM -0700, James E Keenan via RT wrote:
It should indeed be -fsanitize=address -- |
Addresses Perl#16910 plus other minor updates.
Addresses #16910 plus other minor updates.
Yes, as long as the code examples are correct, then my immediate concerns are satisfied. I have just now built perl with AddressSanitizer in the same FreeBSD-13 VM from which I submitted my original report.
We could, of course, mention that AddressSanitizer is also available on FreeBSD, as documented here and shown by the fact that I just build with it there. |
Clang website shows the supported OS: https://clang.llvm.org/docs/AddressSanitizer.html#supported-platforms OpenBSD is not one, but FreeBSD and NetBSD are supported, as well as Android ARM. What I want to avoid is having to play "catch-up" with the documentation on what's supported with the risk of being obsolete. (If OpenBSD introduces it prior to 5.32.1, we need to chase it down with the documentation. I would much rather have the docs saying "ASan is supported on several major operating system. Please review the list provided by compilers, such as Clang (link)." There also seems to be the official documentation (including supported OS) here: https://github.com/google/sanitizers/wiki/AddressSanitizer so that's probably better to point to. (Hopefully, it's maintained.) |
Migrated from rt.perl.org#133965 (status was 'open')
Searchable as RT133965$
The text was updated successfully, but these errors were encountered: