Skip to content
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

Implement --enable-sanitizers[=sanitizers] #429

Merged
merged 1 commit into from Aug 14, 2014
Merged

Implement --enable-sanitizers[=sanitizers] #429

merged 1 commit into from Aug 14, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jul 11, 2014

Similar to debugging with Valgrind, it's very useful to enable
-fsanitize= switches to catch bugs at runtime.

$ ./configure
Result: no sanitizer enabled

$ ./configure --enable-sanitizers
Result: -fsanitize=address,undefined

$ ./configure --enable-sanitizers=address,thread,undefined
Result: -fsanitize=address,thread,undefined

$ ./configure --enable-sanitizers=undefined
Result: -fsanitize=undefined

Similar to debugging with Valgrind, it's very useful to enable
-fsanitize= switches to catch bugs at runtime.

$ ./configure
Result: no sanitizer enabled

$ ./configure --enable-sanitizers
Result: -fsanitize=address,undefined

$ ./configure --enable-sanitizers=address,thread,undefined
Result: -fsanitize=address,thread,undefined

$ ./configure --enable-sanitizers=undefined
Result: -fsanitize=undefined
@OTP-Maintainer
Copy link

Patch has passed first testings and has been assigned to be reviewed


I am a script, I am not human


@tomas-abrahamsson
Copy link
Contributor

I think it would be very useful if this patch was included in OTP. For example, it was extremely easy to pinpoint the issue in http://erlang.org/pipermail/erlang-bugs/2014-July/004513.html

@garazdawi garazdawi merged commit cc894a7 into erlang:maint Aug 14, 2014
@ghost ghost deleted the sanitizers branch August 14, 2014 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants