-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Closed
Copy link
Labels
clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]
Description
clang-tidy check modernize-use-constraints crashes sporadically (approximately in 5% of the runs) when given this program to analyze:
#include <boost/filesystem/path.hpp>
int main(int argc, char** argv)
{
return EXIT_FAILURE;
}boost/filesystem/path.hpp was taken from the current version Boost 1.87.0.
Script to run clang-tidy in a loop:
for i in {0001..1000}
do
echo "Iteration $i"
clang-tidy --extra-arg=-I/usr/local/clang20el9/include/c++/v1 --checks=-*,modernize-use-constraints --header-filter=^/home/user/devel/PROJECTS/.* -p /home/user/devel /home/user/devel/PROJECTS/FileWriter/UnityBuild.cpp
doneA dump of the crash:
ClangTidyCrash.txt
The last commit included in my clang 20 build from branch master is 106c483 from 2025-01-19.
The crash does not occur in clang-tidy 19 with the same Boost header file.
Metadata
Metadata
Assignees
Labels
clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]