Skip to content

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