Build Information
Successful build of swift-backtrace, reference pretty-print (c3d60f
), with Swift 6.1 for Linux on 27 Apr 2025 07:37:48 UTC.
Swift 6 data race errors: 4
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/natinusala/swift-backtrace.git
Reference: pretty-print
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/natinusala/swift-backtrace
* branch pretty-print -> FETCH_HEAD
* [new branch] pretty-print -> origin/pretty-print
HEAD is now at c3d60fe Surround the function name in red
Cloned https://github.com/natinusala/swift-backtrace.git
Revision (git rev-parse @):
c3d60fe020e980902994397d87f54c34b8937787
SUCCESS checkout https://github.com/natinusala/swift-backtrace.git at pretty-print
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/natinusala/swift-backtrace.git
https://github.com/natinusala/swift-backtrace.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-backtrace",
"name" : "swift-backtrace",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Backtrace",
"targets" : [
"Backtrace"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Sample",
"targets" : [
"Sample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Sample",
"module_type" : "SwiftTarget",
"name" : "Sample",
"path" : "Sources/Sample",
"product_memberships" : [
"Sample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Backtrace"
],
"type" : "executable"
},
{
"c99name" : "CBacktrace",
"module_type" : "ClangTarget",
"name" : "CBacktrace",
"path" : "Sources/CBacktrace",
"product_memberships" : [
"Backtrace",
"Sample"
],
"sources" : [
"atomic.c",
"backtrace.c",
"dwarf.c",
"elf.c",
"fileline.c",
"mmap.c",
"mmapio.c",
"posix.c",
"print.c",
"simple.c",
"sort.c",
"state.c"
],
"type" : "library"
},
{
"c99name" : "BacktraceTests",
"module_type" : "SwiftTarget",
"name" : "BacktraceTests",
"path" : "Tests/BacktraceTests",
"sources" : [
"BacktraceTests+XCTest.swift",
"BacktraceTests.swift"
],
"target_dependencies" : [
"Backtrace"
],
"type" : "test"
},
{
"c99name" : "Backtrace",
"module_type" : "SwiftTarget",
"name" : "Backtrace",
"path" : "Sources/Backtrace",
"product_memberships" : [
"Backtrace",
"Sample"
],
"sources" : [
"Backtrace.swift",
"Demangle.swift"
],
"target_dependencies" : [
"CBacktrace"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/19] Write sources
[1/19] Compiling CBacktrace atomic.c
[2/19] Compiling CBacktrace fileline.c
[3/19] Compiling CBacktrace sort.c
[4/19] Compiling CBacktrace state.c
[5/19] Compiling CBacktrace simple.c
[6/19] Compiling CBacktrace elf.c
[6/19] Write sources
[8/19] Compiling CBacktrace print.c
[9/19] Compiling CBacktrace mmapio.c
[10/19] Compiling CBacktrace posix.c
[11/19] Compiling CBacktrace dwarf.c
[12/19] Compiling CBacktrace mmap.c
[13/19] Compiling CBacktrace backtrace.c
[14/19] Write swift-version-24593BA9C3E375BF.txt
[16/22] Compiling Backtrace Demangle.swift
[17/22] Compiling Backtrace Backtrace.swift
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:24:13: warning: let 'state' is not concurrency-safe because non-'Sendable' type 'OpaquePointer?' may have shared mutable state; this is an error in the Swift 6 language mode
22 | typealias CBacktraceSyminfoCallback = @convention(c) (_ data: UnsafeMutableRawPointer?, _ pc: UInt, _ filename: UnsafePointer<CChar>?, _ symval: UInt, _ symsize: UInt) -> Void
23 |
24 | private let state = backtrace_create_state(nil, /* BACKTRACE_SUPPORTS_THREADS */ 1, nil, nil)
| |- warning: let 'state' is not concurrency-safe because non-'Sendable' type 'OpaquePointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'state' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | private let fullCallback: CBacktraceFullCallback? = {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:49:22: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 | str.withCString { ptr in
48 | _ = withVaList([ptr]) { vaList in
49 | vfprintf(stderr, "%s", vaList)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:85:22: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
83 | str.withCString { ptr in
84 | _ = withVaList([ptr]) { vaList in
85 | vfprintf(stderr, "%s", vaList)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
86 | }
87 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:96:22: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | if let msg = msg {
95 | _ = withVaList([msg, errNo]) { vaList in
96 | vfprintf(stderr, "SwiftBacktrace ERROR: %s (errno: %d)\n", vaList)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:102:58: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | private func printBacktrace(signal: CInt) {
102 | _ = fputs("Received signal \(signal). Backtrace:\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | backtrace_full(state, /* skip */ 4, prettyCallback, errorCallback, nil)
104 | fflush(stderr)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:104:12: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
102 | _ = fputs("Received signal \(signal). Backtrace:\n", stderr)
103 | backtrace_full(state, /* skip */ 4, prettyCallback, errorCallback, nil)
104 | fflush(stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 | }
106 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[18/22] Emitting module Backtrace
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:24:13: warning: let 'state' is not concurrency-safe because non-'Sendable' type 'OpaquePointer?' may have shared mutable state; this is an error in the Swift 6 language mode
22 | typealias CBacktraceSyminfoCallback = @convention(c) (_ data: UnsafeMutableRawPointer?, _ pc: UInt, _ filename: UnsafePointer<CChar>?, _ symval: UInt, _ symsize: UInt) -> Void
23 |
24 | private let state = backtrace_create_state(nil, /* BACKTRACE_SUPPORTS_THREADS */ 1, nil, nil)
| |- warning: let 'state' is not concurrency-safe because non-'Sendable' type 'OpaquePointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'state' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | private let fullCallback: CBacktraceFullCallback? = {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:49:22: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 | str.withCString { ptr in
48 | _ = withVaList([ptr]) { vaList in
49 | vfprintf(stderr, "%s", vaList)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:85:22: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
83 | str.withCString { ptr in
84 | _ = withVaList([ptr]) { vaList in
85 | vfprintf(stderr, "%s", vaList)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
86 | }
87 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/Backtrace/Backtrace.swift:96:22: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
94 | if let msg = msg {
95 | _ = withVaList([msg, errNo]) { vaList in
96 | vfprintf(stderr, "SwiftBacktrace ERROR: %s (errno: %d)\n", vaList)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
97 | }
98 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[19/23] Wrapping AST for Backtrace for debugging
[21/25] Emitting module Sample
[22/25] Compiling Sample main.swift
[23/26] Wrapping AST for Sample for debugging
[24/26] Write Objects.LinkFileList
[25/26] Linking Sample
Build complete! (7.96s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-backtrace",
"name" : "swift-backtrace",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Backtrace",
"targets" : [
"Backtrace"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Sample",
"targets" : [
"Sample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Sample",
"module_type" : "SwiftTarget",
"name" : "Sample",
"path" : "Sources/Sample",
"product_memberships" : [
"Sample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Backtrace"
],
"type" : "executable"
},
{
"c99name" : "CBacktrace",
"module_type" : "ClangTarget",
"name" : "CBacktrace",
"path" : "Sources/CBacktrace",
"product_memberships" : [
"Backtrace",
"Sample"
],
"sources" : [
"atomic.c",
"backtrace.c",
"dwarf.c",
"elf.c",
"fileline.c",
"mmap.c",
"mmapio.c",
"posix.c",
"print.c",
"simple.c",
"sort.c",
"state.c"
],
"type" : "library"
},
{
"c99name" : "BacktraceTests",
"module_type" : "SwiftTarget",
"name" : "BacktraceTests",
"path" : "Tests/BacktraceTests",
"sources" : [
"BacktraceTests+XCTest.swift",
"BacktraceTests.swift"
],
"target_dependencies" : [
"Backtrace"
],
"type" : "test"
},
{
"c99name" : "Backtrace",
"module_type" : "SwiftTarget",
"name" : "Backtrace",
"path" : "Sources/Backtrace",
"product_memberships" : [
"Backtrace",
"Sample"
],
"sources" : [
"Backtrace.swift",
"Demangle.swift"
],
"target_dependencies" : [
"CBacktrace"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.