Create java database error:[ERROR] dataset import> diagnostic.trap.gz, 35344: java.io.EOFException: Unexpected end of ZLIB input stream.
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 141
描述
When creating a Java database, I encountered the following error: [ERROR] dataset import> diagnostic.trap.gz, 35344: java.io.EOFException: Unexpected end of ZLIB input stream. with this error log, the Java database is successfully created, but the database does not contain any Java files. There are no Java files in src.zip.
It works well with older versions, I executed the create database command on the same Java project. When using an older version of CodeQL, the process worked normally, except for missing files related to lombok. I tried to analysis with new version to include lombok files.
I have tested every version from 1.14.4 to 1.15.5, and all of them have this issue.
The error in database-create log:

For comparison the normal log for the same java project with codeql 1.14.3:

贡献指南
调研方向
Reproduce database creation on the same Java project with CodeQL 1.14.3 and versions 1.14.4 through 1.15.5, starting with the database-create log and the generated src.zip. Compare the Java file contents and the reported diagnostic.trap.gz EOFException; done means the newer versions create a database containing the Java files without this error.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100