Open Godrichp opened 6 months ago
Thanks for the detailed report. I'll ask the team to look into the errors.
Hi @Godrichp,
Thanks for the report. The build-tracer.log file you've included seems to be from a database created with CodeQL 2.17.0. Would you be able to share the build-tracer.log for a database created with CodeQL 2.17.2? Some things have change related to template instantiation between 2.17.0 and 2.17.2 which might affect you, so I'd like to be sure the reported errors establish whether the same errors still occur or whether they have changed.
In addition could you share the complete database-create-xxx.log file? Preferably the one from the same database creation run that created the requested build-tracer.log file, as that will allow for matching up some file names mentioned in the log files.
Thanks for your reply. I run the building process again and the logs are attached.
build-tracer.log.1.zip database-create-20240509.095715.753.log
Hi @Godrichp,
Thanks for the logs, we'll investigate this further.
@Godrichp Apologies for not getting back earlier. A workaround for the crash was introduced in CodeQL 2.17.5. A proper fix will be part of CodeQL 2.19.2, which should be released in a few weeks.
A proper fix will be part of CodeQL 2.19.2, which should be released in a few weeks.
Unfortunately we had to back out the fix, because of some unforeseen consequences it had, and this fix will not be part of CodeQL 2.19.2. It is currently not clear when we will have a proper fix. I'm reopening this issue for now.
Note that the reported crash should in any case no longer occur.
I'm trying to create a codeql database for the openharmony project (https://github.com/openharmony/manifest). Although I can get a packed database, lots of files are not included in the database.
I checked the "database-create-xxx.log" and found lots of following exceptions as follows.
I then checked the "build-tracer.log".(build-tracer.log.zip) Lots of errors leads to the crash of the extractor. It seems that all code that uses uniqueptr in libc++ will raise exceptions. The following is a snippet of errors.
Then I checked the uniqueptr.h(unique_ptr.h.txt) But I cannot find anything wrong. I truly appreciate your help in solving this problem.
Additional Info:
Codeql version: the latest 2.17.2. Platform: Linux, Ubuntu 20.04
Reproduce procedure:
a.download the source code following the guide in this page (https://www.openharmony.cn/download/). Or just running the following commands.
b.generate gn files in the project folder.
c.run codeql commands to create database