-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands,
swift build
,swift test
,swift package
etc.
Description
The packageInitExecutable test in SwiftPMTests, attempts to build then execute a binary. When building using the native build system, the build succeeds but then fails to execute. The TSCBasic/Paths AbsolutePath extension is asserting causing a failure.
[2025-05-01T15:00:18.097Z] TSCBasic/Path.swift:969: Assertion failed
[2025-05-01T15:00:18.097Z]
[2025-05-01T15:00:18.097Z] Current stack trace:
[2025-05-01T15:00:18.097Z]
[2025-05-01T15:00:18.097Z] 0 swiftCore.dll 0x00007ffc00908a80 swift_reportError + 94
[2025-05-01T15:00:18.097Z]
[2025-05-01T15:00:18.097Z] 1 swiftCore.dll 0x00007ffc009a5bb0 swift_stdlib_reportFatalErrorInFile + 132
[2025-05-01T15:00:18.097Z]
[2025-05-01T15:00:18.097Z] 2 swiftCore.dll 0x00007ffc00618900 StaticString.withUTF8Buffer<A>(_:) + 1828
[2025-05-01T15:00:18.097Z]
[2025-05-01T15:00:18.097Z] 3 swiftCore.dll 0x00007ffc00618900 StaticString.withUTF8Buffer<A>(_:) + 1239
[2025-05-01T15:00:18.097Z]
[2025-05-01T15:00:18.097Z] 4 swiftCore.dll 0x00007ffc00618900 StaticString.withUTF8Buffer<A>(_:) + 917
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 5 swiftCore.dll 0x00007ffc00617ab0 _assertionFailure(_:_:file:line:flags:) + 326
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 6 swift-run.exe 0x00007ff79d8480d0 AbsolutePath.relative(to:) + 3703
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 7 swift-run.exe 0x00007ff799db1c4b <unavailable> + 990283
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 8 swift-run.exe 0x00007ff79a54a7ff <unavailable> + 8955903
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 9 swift-run.exe 0x00007ff79a546831 <unavailable> + 8939569
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 10 swift_Concurrency.dll 0x00007ffc0710e5d0 AsyncMapSequence.transform.getter + 20830
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 11 swift_Concurrency.dll 0x00007ffc071141a0 swift_job_run + 114
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 12 dispatch.dll 0x00007ffc02efa920 dispatch_assert_queue_barrier + 1008
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 13 dispatch.dll 0x00007ffc02efa920 dispatch_assert_queue_barrier + 632
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 14 dispatch.dll 0x00007ffc02f02d80 dispatch_prohibit_transition_to_multithreaded + 8323
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 15 ucrtbase.dll 0x00007ffc20da6af0 recalloc + 92
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 16 KERNEL32.DLL 0x00007ffc21504ca0 BaseThreadInitThunk + 16
[2025-05-01T15:00:18.098Z]
[2025-05-01T15:00:18.098Z] 17 ntdll.dll 0x00007ffc22fdeda0 RtlUserThreadStart + 43
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
cd IntegrationTests
swift test --filter packageInitExecutable
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a
)
No response