Skip to content

Turn on UBSAN in the OSS build.#7643

Closed
ezyang wants to merge 3 commits intopytorch:masterfrom
ezyang:pr/ubsan
Closed

Turn on UBSAN in the OSS build.#7643
ezyang wants to merge 3 commits intopytorch:masterfrom
ezyang:pr/ubsan

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented May 17, 2018

This will probably fail without some fixes for casting during type conversions @apaszke has the patch

Signed-off-by: Edward Z. Yang ezyang@fb.com

@apaszke
Copy link
Contributor

apaszke commented May 17, 2018

The relevant patch is #7644.

@ezyang
Copy link
Contributor Author

ezyang commented May 29, 2018

It passed... I wonder if it is actually working...

ezyang added 2 commits May 31, 2018 10:41
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Copy link
Contributor

@igorsugak igorsugak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Just one comment that should help to catch more bugs as well as make the reports more readable.

# TODO: Make the ASAN flags a more unified env var
CC="clang" CXX="clang++" LDSHARED="clang --shared" \
CFLAGS="-fsanitize=address -shared-libasan" \
CFLAGS="-fsanitize=address -fsanitize=undefined -shared-libasan" \

This comment was marked as off-topic.

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.

3 participants