Closed as duplicate of#80999
Description
https://ci-external.swift.org/job/swift-6.2-windows-toolchain/28/console
FAILED: lib/libSwiftInspectLinux.a CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/ElfFile.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/LinkMap.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/MemoryMap.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/Process.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/ProcFS.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/PTrace.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/RegisterSet.swift.o CMakeFiles/SwiftInspectLinux.dir/Sources/SwiftInspectLinux/SymbolCache.swift.o SwiftInspectLinux.swiftmodule
C:\Windows\system32\cmd.exe /C "cd . && T:\5\bin\swiftc.exe -target aarch64-unknown-linux-android -j 36 -num-threads 36 -emit-library -static -o lib\libSwiftInspectLinux.a -module-name SwiftInspectLinux -module-link-name SwiftInspectLinux -emit-module -emit-module-path SwiftInspectLinux.swiftmodule -emit-dependencies -Xcc "-IT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/include" -Xcc "-IT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/lib/swift" -Xcc "-IT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/include/swift/SwiftRemoteMirror" "-LT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/lib/swift/Android/aarch64" -sdk "T:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk" -sysroot T:/android-ndk-r27c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -target -Xclang-linker aarch64-unknown-linux-android28 -Xclang-linker --sysroot -Xclang-linker T:/android-ndk-r27c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -resource-dir -Xclang-linker T:/android-ndk-r27c/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/18 -gnone -O -Xcc -D_GNU_SOURCE -output-file-map CMakeFiles\SwiftInspectLinux.dir\Release\output-file-map.json -I C:/Users/swift-ci/jenkins/workspace/swift-6.2-windows-toolchain/swift/tools/swift-inspect/Sources/SwiftInspectLinux/SystemHeaders C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\ElfFile.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\LinkMap.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\MemoryMap.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\Process.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\ProcFS.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\PTrace.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\RegisterSet.swift C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\SymbolCache.swift && cd ."
<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swift-driver-new.exe'
SIL memory lifetime failure in @$s17SwiftInspectLinux6PTraceVyACs5Int32VKc33_A4C256B9F4B5CA92CAF7C0E7824B424BLlfC: memory is not initialized, but should be
memory location: %67 = struct_element_addr %2 : $*PTrace, #PTrace.pid // user: %68
at instruction: %33 = load [take] %2 : $*PTrace // user: %34
in function:
// PTrace.init(_:)
// Isolation: unspecified
sil private [ossa] @$s17SwiftInspectLinux6PTraceVyACs5Int32VKc33_A4C256B9F4B5CA92CAF7C0E7824B424BLlfC : $@convention(method) (Int32, @thin PTrace.Type) -> (@owned PTrace, @error any Error) {
[global: read,write,copy,destroy,allocate,deinit_barrier]
// %0 "pid" // users: %56, %68, %48, %20, %6, %94, %3
// %1 "$metatype"
bb0(%0 : $Int32, %1 : $@thin PTrace.Type):
%2 = alloc_stack [lexical] [var_decl] $PTrace, var, name "self", type $PTrace // users: %76, %33, %67, %70, %69, %102, %72
debug_value %0, let, name "pid", argno 1 // id: %3
debug_value undef : $any Error, var, name "$error", argno 2 // id: %4
// function_ref ptrace_attach
%5 = function_ref @ptrace_attach : $@convention(c) (Int32) -> Int32 // user: %6
%6 = apply %5(%0) : $@convention(c) (Int32) -> Int32 // user: %8
%7 = integer_literal $Builtin.Int32, -1 // users: %23, %9
%8 = struct_extract %6, #Int32._value // user: %9
%9 = builtin "cmp_eq_Int32"(%8, %7) : $Builtin.Int1 // user: %10
cond_br %9, bb9, bb1 // id: %10
bb1: // Preds: bb0
%11 = integer_literal $Builtin.Int32, 0 // user: %12
%12 = struct $Int32 (%11) // users: %20, %16
// function_ref waitpid
%13 = function_ref @waitpid : $@convention(c) (Int32, Optional<UnsafeMutablePointer<Int32>>, Int32) -> Int32 // user: %20
br bb2 // id: %14
bb2: // Preds: bb8 bb4 bb1
%15 = alloc_stack [var_decl] $Int32, var, name "status", type $Int32 // users: %17, %61, %74, %66, %54, %31, %16
store %12 to [trivial] %15 // id: %16
%17 = address_to_pointer [stack_protection] %15 to $Builtin.RawPointer // user: %18
%18 = struct $UnsafeMutablePointer<Int32> (%17) // user: %19
%19 = enum $Optional<UnsafeMutablePointer<Int32>>, #Optional.some!enumelt, %18 // user: %20
%20 = apply %13(%0, %19, %12) : $@convention(c) (Int32, Optional<UnsafeMutablePointer<Int32>>, Int32) -> Int32 // users: %22, %21
debug_value %20, let, name "result" // id: %21
%22 = struct_extract %20, #Int32._value // users: %57, %23
%23 = builtin "cmp_eq_Int32"(%22, %7) : $Builtin.Int1 // user: %24
cond_br %23, bb3, bb6 // id: %24
bb3: // Preds: bb2
// function_ref get_errno
%25 = function_ref @get_errno : $@convention(c) () -> Int32 // users: %47, %26
%26 = apply %25() : $@convention(c) () -> Int32 // user: %28
%27 = integer_literal $Builtin.Int32, 4 // user: %29
%28 = struct_extract %26, #Int32._value // user: %29
%29 = builtin "cmp_eq_Int32"(%28, %27) : $Builtin.Int1 // user: %30
cond_br %29, bb4, bb5 // id: %30
bb4: // Preds: bb3
dealloc_stack %15 // id: %31
br bb2 // id: %32
bb5: // Preds: bb3
%33 = load [take] %2 // user: %34
%34 = move_value [lexical] %33 // user: %36
%35 = alloc_stack $PTrace, let, name "self", argno 1 // users: %45, %37, %36
store %34 to [init] %35 // id: %36
%37 = drop_deinit %35 // users: %40, %39
debug_value undef : $*PTrace, let, name "self", argno 1 // id: %38
debug_value %37, let, name "self", argno 1, expr op_deref // id: %39
%40 = struct_element_addr %37, #PTrace.pid // user: %41
%41 = load [trivial] %40 // user: %44
debug_value undef : $*PTrace, let, name "self", argno 1 // id: %42
// function_ref ptrace_detach
%43 = function_ref @ptrace_detach : $@convention(c) (Int32) -> Int32 // user: %44
%44 = apply %43(%41) : $@convention(c) (Int32) -> Int32
dealloc_stack %35 // id: %45
debug_value undef : $*PTrace, var, name "self" // id: %46
%47 = apply %25() : $@convention(c) () -> Int32 // user: %48
%48 = tuple $(pid: Int32, errno: Int32) (%0, %47) // user: %49
%49 = enum $PTrace.PTraceError, #PTrace.PTraceError.waitFailure!enumelt, %48 // user: %52
%50 = alloc_existential_box $any Error, $PTrace.PTraceError // users: %53, %55, %51
%51 = project_existential_box $PTrace.PTraceError in %50 // user: %52
store %49 to [trivial] %51 // id: %52
%53 = builtin "willThrow"(%50) : $()
dealloc_stack %15 // id: %54
br bb10(%50) // id: %55
bb6: // Preds: bb2
%56 = struct_extract %0, #Int32._value // user: %57
%57 = builtin "cmp_eq_Int32"(%56, %22) : $Builtin.Int1 // user: %59
%58 = integer_literal $Builtin.Int1, -1 // user: %59
%59 = builtin "xor_Int1"(%57, %58) : $Builtin.Int1 // user: %60
cond_fail %59, "precondition failure" // id: %60
%61 = load [trivial] %15 // user: %63
// function_ref wIfStopped
%62 = function_ref @wIfStopped : $@convention(c) (Int32) -> Bool // user: %63
%63 = apply %62(%61) : $@convention(c) (Int32) -> Bool // user: %64
%64 = struct_extract %63, #Bool._value // user: %65
cond_br %64, bb7, bb8 // id: %65
bb7: // Preds: bb6
dealloc_stack %15 // id: %66
%67 = struct_element_addr %2, #PTrace.pid // user: %68
store %0 to [trivial] %67 // id: %68
debug_value %2, var, name "self" // id: %69
%70 = load [take] %2 // user: %73
debug_value undef : $*PTrace, var, name "self" // id: %71
dealloc_stack %2 // id: %72
return %70 // id: %73
bb8: // Preds: bb6
dealloc_stack %15 // id: %74
br bb2 // id: %75
bb9: // Preds: bb0
%76 = load [take] %2 // user: %77
%77 = move_value [lexical] %76 // user: %79
%78 = alloc_stack $PTrace, let, name "self", argno 1 // users: %88, %80, %79
store %77 to [init] %78 // id: %79
%80 = drop_deinit %78 // users: %83, %82
debug_value undef : $*PTrace, let, name "self", argno 1 // id: %81
debug_value %80, let, name "self", argno 1, expr op_deref // id: %82
%83 = struct_element_addr %80, #PTrace.pid // user: %84
%84 = load [trivial] %83 // user: %87
debug_value undef : $*PTrace, let, name "self", argno 1 // id: %85
// function_ref ptrace_detach
%86 = function_ref @ptrace_detach : $@convention(c) (Int32) -> Int32 // user: %87
%87 = apply %86(%84) : $@convention(c) (Int32) -> Int32
dealloc_stack %78 // id: %88
debug_value undef : $*PTrace, var, name "self" // id: %89
%90 = integer_literal $Builtin.Int32, 16 // user: %91
%91 = struct $Int32 (%90) // user: %94
// function_ref get_errno
%92 = function_ref @get_errno : $@convention(c) () -> Int32 // user: %93
%93 = apply %92() : $@convention(c) () -> Int32 // user: %94
%94 = tuple $(Int32, pid: Int32, errno: Int32) (%91, %0, %93) // user: %95
%95 = enum $PTrace.PTraceError, #PTrace.PTraceError.operationFailure!enumelt, %94 // user: %98
%96 = alloc_existential_box $any Error, $PTrace.PTraceError // users: %99, %100, %97
%97 = project_existential_box $PTrace.PTraceError in %96 // user: %98
store %95 to [trivial] %97 // id: %98
%99 = builtin "willThrow"(%96) : $()
br bb10(%96) // id: %100
// %101 // user: %103
bb10(%101 : @owned $any Error): // Preds: bb5 bb9
dealloc_stack %2 // id: %102
throw %101 // id: %103
} // end sil function '$s17SwiftInspectLinux6PTraceVyACs5Int32VKc33_A4C256B9F4B5CA92CAF7C0E7824B424BLlfC'
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\build\\5\\bin\\swiftc.exe -frontend -c C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\ElfFile.swift C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\LinkMap.swift C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\MemoryMap.swift C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\Process.swift C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\ProcFS.swift -primary-file C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\PTrace.swift C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\RegisterSet.swift C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\swift\\tools\\swift-inspect\\Sources\\SwiftInspectLinux\\SymbolCache.swift -emit-module-path CMakeFiles\\SwiftInspectLinux.dir\\Sources\\SwiftInspectLinux\\PTrace.swift.swiftmodule -emit-module-doc-path CMakeFiles\\SwiftInspectLinux.dir\\Sources\\SwiftInspectLinux\\PTrace.swift.swiftdoc -emit-module-source-info-path CMakeFiles\\SwiftInspectLinux.dir\\Sources\\SwiftInspectLinux\\PTrace.swift.swiftsourceinfo -emit-dependencies-path CMakeFiles\\SwiftInspectLinux.dir\\Sources\\SwiftInspectLinux\\PTrace.swift.o.d -target aarch64-unknown-linux-android -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk "T:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk" -sysroot T:/android-ndk-r27c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -I C:/Users/swift-ci/jenkins/workspace/swift-6.2-windows-toolchain/swift/tools/swift-inspect/Sources/SwiftInspectLinux/SystemHeaders -gnone -module-link-name SwiftInspectLinux -static -O -in-process-plugin-server-path C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\build\\5\\bin\\SwiftInProcPluginServer.dll -plugin-path C:\\Users\\swift-ci\\jenkins\\workspace\\swift-6.2-windows-toolchain\\build\\5\\bin -Xcc "-IT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/include" -Xcc "-IT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/lib/swift" -Xcc "-IT:/Program Files/Swift/Platforms/Android.platform/Developer/SDKs/Android.sdk/usr/include/swift/SwiftRemoteMirror" -Xcc -D_GNU_SOURCE -parse-as-library -module-name SwiftInspectLinux -num-threads 36 -o CMakeFiles\\SwiftInspectLinux.dir\\Sources\\SwiftInspectLinux\\PTrace.swift.o
1. Swift version 6.2-dev (LLVM 088d3dc67a1af72, Swift 592398fc3d35f6f)
2. Compiling with effective version 5.10
3. While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote, MidLevel,Function, ClosureSpecialize, LowLevel,Function, LateLoopOpt, SIL Debug Info Generator } on SIL for SwiftInspectLinux)
4. While running pass #12955 SILFunctionTransform "OwnershipModelEliminator" on SILFunction "@$s17SwiftInspectLinux6PTraceVyACs5Int32VKc33_A4C256B9F4B5CA92CAF7C0E7824B424BLlfC".
for 'init(_:)' (at C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\PTrace.swift:35:15)
5. Found verification error when verifying before lowering ownership. Please re-run with -sil-verify-all to identify the actual pass that introduced the verification error.
6. While verifying SIL function "@$s17SwiftInspectLinux6PTraceVyACs5Int32VKc33_A4C256B9F4B5CA92CAF7C0E7824B424BLlfC".
for 'init(_:)' (at C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\swift\tools\swift-inspect\Sources\SwiftInspectLinux\PTrace.swift:35:15)
Exception Code: 0x80000003
#0 0x00007ff7d85bc675 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x6ecc675)
#1 0x00007ff8e4e0d88d (C:\Windows\System32\ucrtbase.dll+0x6d88d)
#2 0x00007ff8e4e0e761 (C:\Windows\System32\ucrtbase.dll+0x6e761)
#3 0x00007ff7d2fe3f39 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x18f3f39)
#4 0x00007ff7d2fe4353 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x18f4353)
#5 0x00007ff7d2fdf6ee (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x18ef6ee)
#6 0x00007ff7d2fe1107 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x18f1107)
#7 0x00007ff7d2fe509e (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x18f509e)
#8 0x00007ff7d2e13d18 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x1723d18)
#9 0x00007ff7d2e0410c (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x171410c)
#10 0x00007ff7d29184c3 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x12284c3)
#11 0x00007ff7d260111d (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf1111d)
#12 0x00007ff7d2600317 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf10317)
#13 0x00007ff7d25fddb7 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf0ddb7)
#14 0x00007ff7d25fe096 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf0e096)
#15 0x00007ff7d25fdaa7 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf0daa7)
#16 0x00007ff7d265a85d (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf6a85d)
#17 0x00007ff7d25fe22f (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xf0e22f)
#18 0x00007ff7d25eb895 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0xefb895)
#19 0x00007ff7d1fcc0c5 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x8dc0c5)
#20 0x00007ff7d1d31a7d (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x641a7d)
#21 0x00007ff7d1d3255f (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x64255f)
#22 0x00007ff7d1d312c4 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x6412c4)
#23 0x00007ff7d1d3177b (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x64177b)
#24 0x00007ff7d1d336ca (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x6436ca)
#25 0x00007ff7d1b7e440 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x48e440)
#26 0x00007ff7d1b7dfd7 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x48dfd7)
#27 0x00007ff7d861b718 (C:\Users\swift-ci\jenkins\workspace\swift-6.2-windows-toolchain\build\5\bin\swiftc.exe+0x6f2b718)
#28 0x00007ff8e6387ac4 (C:\Windows\System32\KERNEL32.DLL+0x17ac4)
#29 0x00007ff8e7cda8c1 (C:\Windows\SYSTEM32\ntdll.dll+0x5a8c1)
<unknown>:0: error: compile command failed due to signal -2147483645 (use -v to see invocation)