You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hjyamauchi opened this issue
Jan 6, 2025
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwaremacOSPlatform: macOSSIL ownershipArea → compiler → SIL: SIL ownershipSILWindowsPlatform: Windows
error: compile command failed due to signal 6 (use -v to see invocation)
Begin Error in Function: '$s5crash1BC3barSSSgyF'
Found outside of lifetime use?!
Value: %4 = begin_borrow %3 : $A // users: %7, %5
Consuming User: end_borrow %4 : $A // id: %7
Non Consuming User: %11 = mark_dependence %10 : $*_xmlNs on %5 : $*UnsafeMutablePointer<_xmlNs> // user: %12
Block: bb0
End Error in Function: '$s5crash1BC3barSSSgyF'
Found ownership error?!
<unknown>:0: error: fatal error encountered during compilation; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<unknown>:0: note: triggering standard assertion failure routine
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
A local windows build from the main branch at head 1/6/2025 snapshot crashes with:
error: compile command failed due to exception 3 (use -v to see invocation)
Begin Error in Function: '$s5crash1BC3barSSSgyF'
Found outside of lifetime use?!
Value: %4 = begin_borrow %3 : $A // users: %7, %5
Consuming User: end_borrow %4 : $A // id: %7
Non Consuming User: %11 = mark_dependence %10 : $*_xmlNs on %5 : $*UnsafeMutablePointer<_xmlNs> // user: %12
Block: bb0
End Error in Function: '$s5crash1BC3barSSSgyF'
Found ownership error?!
<unknown>:0: error: fatal error encountered during compilation; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<unknown>:0: note: triggering standard assertion failure routine
Reproduction
Here's a command line log with a small reduced test.
>cat crash.swift
import C
func foo<T> (ptr: UnsafePointer<T>?) -> String? {
return nil
}
class A {
internal let ptr: xmlNsPtr
internal init(ptr: xmlNsPtr) {
self.ptr = ptr
}
}
class B : A {
func bar() -> String? {
return foo(ptr: ptr.pointee.prefix)
}
}
>cat header.h
typedef struct _xmlNs {
const char *prefix;
} *xmlNsPtr;
>cat module.modulemap
module C {
header "header.h"
}
>swiftc crash.swift -I .
error: compile command failed due to exception 3 (use -v to see invocation)
Begin Error in Function: '$s5crash1BC3barSSSgyF'
Found outside of lifetime use?!
Value: %4 = begin_borrow %3 : $A // users: %7, %5
Consuming User: end_borrow %4 : $A // id: %7
Non Consuming User: %11 = mark_dependence %10 : $*_xmlNs on %5 : $*UnsafeMutablePointer<_xmlNs> // user: %12
Block: bb0
End Error in Function: '$s5crash1BC3barSSSgyF'
Found ownership error?!
<unknown>:0: error: fatal error encountered during compilation; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<unknown>:0: note: triggering standard assertion failure routine
compnerd.org Swift version 6.2-dev (LLVM 06a77c5cc0ff511, Swift f7fb0991b79fcda)
Target: x86_64-unknown-windows-msvc
Additional information
This seems pretty recent. The crash didn't happen on 12/31/2024 and started around ~1/4/2025.
The text was updated successfully, but these errors were encountered:
hjyamauchi
added
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
labels
Jan 6, 2025
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwaremacOSPlatform: macOSSIL ownershipArea → compiler → SIL: SIL ownershipSILWindowsPlatform: Windows
Description
On macOS, the dev snapshot build https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-01-05-a/swift-DEVELOPMENT-SNAPSHOT-2025-01-05-a-osx.pkg crashes with
A local windows build from the main branch at head 1/6/2025 snapshot crashes with:
Reproduction
Here's a command line log with a small reduced test.
Stack dump
macOS with https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-01-05-a/swift-DEVELOPMENT-SNAPSHOT-2025-01-05-a-osx.pkg
Windows main branch on 1/6/2025
Expected behavior
No crash
Environment
macos
https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-01-05-a/swift-DEVELOPMENT-SNAPSHOT-2025-01-05-a-osx.pkg
windows, our main branch build on 1/6/2025
Additional information
This seems pretty recent. The crash didn't happen on 12/31/2024 and started around ~1/4/2025.
The text was updated successfully, but these errors were encountered: