Release build crashes the compiler on Linux since #389 (RCodesign)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- linux, swift
- Área
- backend, build-system
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Swift
- Estrellas
- 5.5k
- Forks
- 163
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 32
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de xtool-org/xtool
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
xtool-org/xtool#414 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 46/100
xtool-org/xtool#407 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de xtool-org/xtool
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
Bug: on hover a tab's name in Cra stops ~16 pt short of Arc's, with 24 pt of air before the ✕Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
VictorKildahl/cra#243 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
OneBusAway/vehicle-positions#260 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
eliasstravik/herdr-projects#789 · 1 comentario ·
-
Linux: Remember Password fails silently when there is no default keyringPosiblemente ocupada @datlechin la tomó hoy. Abiertobug platform-linux
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
TableProApp/TablePro#4098 ·
Los mantenedores suelen responder en 1 día