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

[analyzer] Disable clang flags that cause major undeterminism issues #4372

Closed

Conversation

Szelethus
Copy link
Collaborator

Turn off Z3 timeouts added to the Clang Static Analyzer in llvm/llvm-project#95129. We are now aware that these options can often cause nondeterministic behaviour.

Turn off Z3 timeouts added to the Clang Static Analyzer in
llvm/llvm-project#95129. We are now aware that
these options can often cause nondeterministic behaviour.
@Szelethus Szelethus added bugfix 🔨 analyzer 📈 Related to the analyze commands (analysis driver) clang sa 🐉 The Clang Static Analyzer is a source code analysis tool that finds bugs in C-family programs. config ⚙️ labels Oct 21, 2024
@Szelethus Szelethus added this to the release 6.25.0 milestone Oct 21, 2024
@Szelethus Szelethus requested a review from dkrupp October 21, 2024 14:55
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

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

isn't this config file just an example? Will it get in effect by default?

@@ -4,6 +4,10 @@
"--enable=core.CallAndMessage",
"--analyzer-config",
"clangsa:unroll-loops=true",
"--analyzer-config",
Copy link
Member

Choose a reason for hiding this comment

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

isn't this config file just an example? Will it get in effect by default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I initially intended to put the change here, I'm just not sure whether hardcoding such a change is appropriate:
https://github.com/Ericsson/codechecker/blob/master/analyzer/codechecker_analyzer/analyzers/clangsa/analyzer.py#L392
@bruntib?

@dkrupp
Copy link
Member

dkrupp commented Nov 12, 2024

I guess this patch can be abandoned... or?

@Szelethus
Copy link
Collaborator Author

Tahts right, sorry!

@Szelethus Szelethus closed this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) bugfix 🔨 clang sa 🐉 The Clang Static Analyzer is a source code analysis tool that finds bugs in C-family programs. config ⚙️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants