Skip to content

Fix #13852 (GUI does not finish analysis properly) #7633

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

Merged
merged 3 commits into from
Jun 27, 2025
Merged

Conversation

glankk
Copy link
Collaborator

@glankk glankk commented Jun 27, 2025

Create new QThreads for each check, as well as for whole-program analysis, instead of restarting finished threads which is undefined behavior (see https://doc.qt.io/qt-6/qthread.html#create). Fixes Trac #13852.

@danmar danmar merged commit b6dd286 into danmar:main Jun 27, 2025
53 checks passed
@glankk glankk deleted the 13852 branch June 27, 2025 12:23
@firewave
Copy link
Collaborator

Were you actually able to reproduce this? Or was this an pre-emptive fix?

@glankk
Copy link
Collaborator Author

glankk commented Jun 29, 2025

Yes, I was able to quite reliably reproduce it by selecting Analyze, Files... on a project with about 60 c files, on both windows and linux.

winterz pushed a commit to winterz/cppcheck that referenced this pull request Jun 30, 2025
Create new `QThread`s for each check, as well as for whole-program
analysis, instead of restarting finished threads which is undefined
behavior (see https://doc.qt.io/qt-6/qthread.html#create). Fixes Trac
#13852.
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