-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[TySan] False positive related to structs in structs? #122517
Comments
I forgot to say that the clang I built is from the #120412 PR. |
@seanm thanks jumping in head first, the feedback is extremely valuable. TySan is experimental at this stage, and any issues reported help a lot getting it in good shape quickly.
This is the terminology Clang uses to encode the type information for LLVM, which tysan uses verbatim. We could probably try better to translate the types to something closer related to the types in source |
Thanks. I've created #122522 to suggest some documentation ideas. I think I'll have to stop playing with it for now, as best as I can tell at least 3/4 of the reports I'm seeing from TySan are variants of this reduced case. It's just too much noise for now. Excited to try more later! |
Confirmed fixed. That got me down from 827 The first of the 61 looks like a false positive to me too... I'll creduce it now... |
|
Maybe I'm just not using it right, or not understanding something, but OTOH TySan is new, and thus probably a bit buggy... I used creduce to create a C test case showing, I think, a false positive.
then I run:
(xcrun /Users/sean/llvm/llvm-install/bin/clang -w -g -fsanitize=type test.c && ./a.out)
and I get:
Aside:
The text was updated successfully, but these errors were encountered: