Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13336] [Beta 2 Regression] JIT session error: Failed to materialize symbols #55776

Open
swift-ci opened this issue Aug 1, 2020 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Aug 1, 2020

Previous ID SR-13336
Radar None
Original Reporter Sherlouk (JIRA User)
Type Bug
Environment

Broken in Xcode 12 Beta 3 (12A8169g)

macOS Catalina 10.15.4

Run via Command Line

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, RunTimeCrash
Assignee None
Priority Medium

md5: b3aec3260d4e03faf3e20de6a408e266

is duplicated by:

  • SR-13338 Cannot use empty array syntax for options for PropertyListSerialization when running as script

relates to:

  • SR-13247 Crash when using enum case as protocol witness

Issue Description:

The code below when saved as bug.swift and run via Terminal using swift bug.swift causes the error at the bottom to be logged rather than the script from being executed.

enum ValidatorError: Error {
    case invalidURLNew(String)
    case networkingError(Error)
}
JIT session error: No symbol covering address 0x0000000000000486


Failed to materialize symbols: { (0x7fd71dd26090, { _got.$ss5ErrorP7_domainSSvgTq, _got.$ss5ErrorP9_userInfoyXlSgvgTq, _got.$ss5ErrorP5_codeSivgTq, _got.$ss5ErrorMp, _$s8Contents14ValidatorErrorOWOe, _$s8Contents14ValidatorErrorOWOy, _symbolic ______p s5ErrorP, _symbolic _____ 8Contents14ValidatorErrorO, _$s8ContentsMXM, _$s8Contents14ValidatorErrorOMa, _got.$ss5ErrorP19_getEmbeddedNSErroryXlSgyFTq, _$s8Contents14ValidatorErrorON, _$s8Contents14ValidatorErrorOs0C0AAMc, _$s8Contents14ValidatorErrorOMn, ___swift_memcpy17_8, _main, _symbolic SS }) }

This was found originally in this script https://github.com/SwiftPackageIndex/PackageList/blob/main/validate.swift but the exact code which causes the error appears to change.

The script worked fine with Xcode 12 Beta 1 and 2 but broke when Beta 3 was released.

Unable to reproduce using Playgrounds or via Xcode - only via command line

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution
Projects
None yet
Development

No branches or pull requests

2 participants