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 extractor の呼び出しを確認します。ソースアーカイブにコンパイル済みの .c ファイルが含まれていない理由、または extractor がそれらを開けない理由を調査します。影響を受けるソースファイルが、報告された catastrophic error なしでデータベースに存在すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c
- 領域
- devtools, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100