aras-p / ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace
The Unlicense
970 stars 61 forks source link

Assertion failure on --stop command #26

Closed nickaleks closed 4 years ago

nickaleks commented 4 years ago

Command: ~/ClangBuildAnalyzer/build/ClangBuildAnalyzer --stop ~/build-Debug profile_result.json

Result:

ERROR: String ".PropertyMover1DTo3DDataFlowTest" too long to copy on line 231 in file src/external/cute_files.h (max length of 32).
ClangBuildAnalyzer: src/external/cute_files.h:215: int cf_safe_strcpy_internal(char *, const char *, int, int, const char *, int): Assertion `0' failed.
./profile_compilation.sh: line 4: 165782 Aborted                 (core dumped) ~/ClangBuildAnalyzer/build/ClangBuildAnalyzer --stop ~/build-Debug profile_result.json

ubuntu 18.04 with clang9

nickaleks commented 4 years ago

After looking at cute_files source, it appears that it limits file extension size to 32 characters set by a macro. This is a strange limitation.

aras-p commented 4 years ago

Yeah strange limitation indeed. Should be fixed by #27 (or at least the max extension length is bumped up).