github / github/codeql-cli-binaries
Missing Source Files from Database for XNU
- 主要语言
- 没有语言数据
- 星标
- 1k
- 派生
- 184
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
Most of the `.c` files are missing after compilation of XNU in DB.
### Log entry:
```
/opt/homebrew/Caskroom/codeql/2.11.4/codeql/cpp/tools/osx64/extractor --trapfolder /private/tmp/xnu/build-xnu-xnu-8792.41.9/xnu-xnu-8792.41.9/xnu-database/trap/cpp --src_archive /private/tmp/xnu/build-xnu-xnu-8792.41.9/xnu-xnu-8792.41.9/xnu-database/src --mimic_config /private/tmp/xnu/build-xnu-xnu-8792.41.9/xnu-xnu-8792.41.9/xnu-database/working/compiler_mimic_cache/0bf1e9bd38ad --executable_filename /private/tmp/xnu/build-xnu-xnu-8792.41.9/xnu-xnu-8792.41.9/BUILD/obj/SETUP/installfile/installfile.o -w --error_limit 1000 --disable_system_macros --variadic_macros --gcc --gnu_version 40000 --clang --isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -I/tmp/xnu/build-xnu-xnu-8792.41.9/xnu-xnu-8792.41.9/SETUP/installfile/ -I. --blocks -D__GCC_HAVE_DWARF2_CFI_ASM=1 -- installfile.c /tmp/xnu/build-xnu-xnu-8792.41.9/xnu-xnu-8792.41.9/SETUP/installfile/installfile.c
[E 02:03:00 36601] Warning[extractor-c++]: In construct_message: Catastrophic error: cannot open source file "installfile.c"
```
### Env:
* Builder script: https://gist.github.com/qu0dy/57145e3ca850536169566c1560fd23cd
* XNU: https://github.com/apple-oss-distributions/xnu/releases/tag/xnu-8792.41.9
* OS: MacOS Ventura 13.1 Beta 4
* Clang: 14.0.0
* CodeQL: 2.11.4
* CPU: M1 Pro
贡献指南
调研方向
首先,使用链接的构建脚本重现 XNU xnu-8792.41.9 的构建,并检查针对 installfile.c 的 CodeQL 提取器调用。调查源代码归档不包含已编译的 .c 文件,或提取器无法打开这些文件的原因。当受影响的源文件存在于数据库中且没有报告的灾难性错误时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c
- 领域
- devtools, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100