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-13512] Swift REPL Fails to Launch #4460

Closed
swift-ci opened this issue Sep 5, 2020 · 5 comments
Closed

[SR-13512] Swift REPL Fails to Launch #4460

swift-ci opened this issue Sep 5, 2020 · 5 comments
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Sep 5, 2020

Previous ID SR-13512
Radar rdar://problem/85180676
Original Reporter reuschj (JIRA User)
Type Bug
Environment

Mac OS 10.15.6

XCode 11.7

Additional Detail from JIRA
Votes 1
Component/s LLDB for Swift
Labels Bug
Assignee @adrian-prantl
Priority Medium

md5: c3ea58a73839d6965692266c238b9e6a

Issue Description:

On Swift 5.2.5 Release, 5.3 Development Snapshot, and latest 5.2 Development Snapshot, when I launch the REPL by running:

swift

I get the following error:

**

error: failed to launch REPL process: process exited with status -1 (Error 1)

I tried another system, which currently had an older 5.2 development snapshot installed (01-23) and the REPL launched without issue. However, when I installed the 5.2.5 Release toolchain to that system and launched the REPL, I got the same error as above. If I switch my toolchain back to the January snapshot, the REPL works as expected.

I also tried downloading the oldest 5.2 snapshot off Swift.org (4/28), and the REPL also failed. This would indicate the REPL issue was introduced somewhere between 1/23 and 4/28.

Also, the REPL works in the current Swift for TensorFlow toolchain.

@swift-ci
Copy link
Author

swift-ci commented Sep 5, 2020

Comment by Justin Reusch (JIRA)

Possibly related: https://forums.swift.org/t/rfc-removing-the-integrated-repl/35441/13

@swift-ci
Copy link
Author

Comment by Fan Jiang (JIRA)

reuschj (JIRA User) I think this is the temporary solution to this problem.

https://forums.swift.org/t/nightly-toolchain-has-broken-lldb-support-on-macos/53151/3

The official distribution has wrong entitlements.

@swift-ci
Copy link
Author

Comment by Justin Reusch (JIRA)

Thanks!

@adrian-prantl
Copy link
Member

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
@JDevlieghere JDevlieghere self-assigned this Aug 19, 2022
@JDevlieghere
Copy link
Member

This turned out to be an issue during resigning. LLDB is correctly signing with get-task-allow but during resigning the entitlement got dropped. This was fixed yesterday and today's nightly build has the correct entitlements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

3 participants