-
Notifications
You must be signed in to change notification settings - Fork 844
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
gcc --sanitize doesnt work (missing stuff from procfs prevents address-sanitizer from working) #1898
Comments
Hi again @LewisPringle -- it looks like you haven't yet had a chance to fill out the ticket description. Could you please do when you get a chance? clang's implementation of AddressSanitizer is briefly discussed on #120 (comment) , for what it's worth. That's a rather old comment; it may no longer be relevant with recent builds. But it's described as having different issues; not this particular issue. |
Sorry - new to your process ;-) Note - the reason this is an IMPORTANT bug to fix (or missing feature if you prefer) - is because one of the primary target audiences for unix on windows - are developers, and this is a basic developer tool. |
Using build 16299 the compilation now works for me. But the program fails to run. My code looks like this
Using the following command-line
|
Update 2019: The gcc flag
I was following this blog post from Daniel Lemire.
|
I wasn't able to reproduce the previous post's testcase here. The OP for this issue was with respect a malformed In principle you could open a new issue regarding your demonstrable lack of output from the sanitizer (a different problem), but to be actionable it would (from a practical standpoint) need some kind of reproduction steps from a clean install. My test was done on Insider 18865, but it is unlikely that will be of difference (with the usual caveat anything possible). I don't think you are doing anything wrong, but at the moment I can't divine the difference between our runs either. |
Thanks for your feedback. |
Also see #3589 which was fixed after 1809. |
Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!
A brief description
Compiling a program with gcc --sanitize=address doesn't work
(https://en.wikipedia.org/wiki/AddressSanitizer -fsanitize=address
Expected results
Actual results (with terminal output if applicable)
sanitizer_procmaps_linux.cc:55 "((IsOneOf(*current_, 's', 'p'))) != (0)" (0x0, 0x0)
Your Windows build number
16170
Steps / All commands required to reproduce the error from a brand new installation
compile any program with gcc --sanitize=address and run it.
Strace of the failing command
Required packages and commands to install
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: