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

Add "sanitizer" sanity check for thread_safe_new #444

Open
jjwilke opened this issue May 14, 2019 · 0 comments
Open

Add "sanitizer" sanity check for thread_safe_new #444

jjwilke opened this issue May 14, 2019 · 0 comments
Milestone

Comments

@jjwilke
Copy link
Contributor

jjwilke commented May 14, 2019

Deleting the same pointer twice accidentally with thread_safe_new can cause very difficult to debug undefined behavior. In sanity check mode, set a magic number in the initial bits to track whether a pointer is getting deleted twice.

jjwilke pushed a commit that referenced this issue May 14, 2019
@jjwilke jjwilke added this to the 10.1 Release milestone Mar 17, 2020
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

No branches or pull requests

1 participant