Release build crashes the compiler on Linux since #389 (RCodesign)

オープン
#431 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@c4software がすでに取り組んでいます。

2026年11月6日 から。

  • #432 @c4software による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
linux, swift

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

xtool-org/xtool のほかの issue

xtool-org/xtool の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。