Release build crashes the compiler on Linux since #389 (RCodesign)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- linux, swift
- 領域
- backend, build-system
調査の方向性
Start with the release build command in the issue: swift build -c release --target XKit, using the swift:6.4.2-jammy image and commit ac40282. Compare the first bad commit, 64fe8e3, with its parent and inspect the reported DeveloperServicesAddAppGroupRequest.o compiler crash. Done when the Linux release build completes without the compiler crash; the issue leaves the triggering change unknown.
索引モデルが issue の本文から書いたものです。
説明
Since #389 (zsign replaced by RCodesign), a release build of XKit crashes the Swift compiler on Linux x86_64. Upstream CI builds debug only (build.yml), so it does not show there; the next tagged Linux release (release.yml) would hit it.
Reproduce (upstream's own image: the build-limd stage of the Dockerfile at ac40282, on swift:6.4.2-jammy)
git checkout ac40282
swift build -c release --target XKit
*** Program crashed: Bad pointer dereference at 0x… ***
Running pass "require<globals-aa>,function(invalidate<aa>),…" on module ".../XKit-t.build/Objects-normal/x86_64/DeveloperServicesAddAppGroupRequest.o"
error: Build failed
The crashing threads are in LLVM: Verifier::visitFunction, AttributeList::hasAttributeAtIndex, CodeGenPrepare::optimizeCallInst, KnownBits::getMaxValue. The other XKit objects of that batch then fail with error closing '….o' … No such file or directory.
Bisect (git bisect run between 1.24.0 (good) and ac40282 (bad), release build of the xtool product)
- First bad commit: 64fe8e3, "signer: replace zsign with RCodesign (#389)".
- Its parent, 03fb48c (#412), builds.
Same result
- with Swift 6.4.1 and 6.4.2;
- with SwiftBuild (the default) and
--build-system native; - with
-Xswiftc -num-threads -Xswiftc 0; - in upstream's image above, and in an Arch container (swift.org ubi9 toolchains).
A debug build works.
Not checked
- arm64 hosts.
- macOS.
- Which part of #389 sets it off. The crash is reported on
DeveloperServicesAddAppGroupRequest.o, a file #389 does not touch, so it may come from cross-module optimization of the new signer code.
- 主要言語
- Swift
- スター
- 5.5k
- フォーク
- 163
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 32
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xtool-org/xtool のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
xtool-org/xtool#414 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 46/100
xtool-org/xtool#407 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
xtool-org/xtool の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
VictorKildahl/cra#243 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
OneBusAway/vehicle-positions#260 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
eliasstravik/herdr-projects#789 · コメント 1 件 ·
-
Linux: Remember Password fails silently when there is no default keyring対応中かも @datlechin が今日担当しました。 オープンbug platform-linux
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
TableProApp/TablePro#4098 ·
メンテナーはふだん 1 日以内に返信