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

[C++] UBSAN error "applying non-zero offset to null pointer" #29107

Closed
asfimport opened this issue Jul 23, 2021 · 4 comments
Closed

[C++] UBSAN error "applying non-zero offset to null pointer" #29107

asfimport opened this issue Jul 23, 2021 · 4 comments

Comments

@asfimport
Copy link

Clang's ubsan considers a non-zero offset being added to a null pointer to be undefined behavior.  This causes ubsan violations in our test suites if you are using clang-10 or higher.

This was not detected by CI since CI uses clang-8 and this check was added in clang-10 [1][2].

 

 [1] https://reviews.llvm.org/D67122

 [2] https://releases.llvm.org/10.0.0/tools/clang/docs/ReleaseNotes.html#undefined-behavior-sanitizer-ubsan

 

Reporter: Weston Pace / @westonpace
Assignee: Weston Pace / @westonpace

PRs and other links:

Note: This issue was originally created as ARROW-13440. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Antoine Pitrou / @pitrou:
Is this fixed or not? The linked PRs don't seem very informative.

@asfimport
Copy link
Author

Antoine Pitrou / @pitrou:
@westonpace  What is the status on this?

@asfimport
Copy link
Author

Weston Pace / @westonpace:
This was fixed incidentally as part of ARROW-13444

@asfimport
Copy link
Author

Weston Pace / @westonpace:
Thanks for bringing it to my attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants