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-7114] REPL hangs for no apparent reason #4377

Closed
xwu opened this issue Mar 4, 2018 · 2 comments
Closed

[SR-7114] REPL hangs for no apparent reason #4377

xwu opened this issue Mar 4, 2018 · 2 comments
Labels
bug Something isn't working LLDB for Swift REPL

Comments

@xwu
Copy link

xwu commented Mar 4, 2018

Previous ID SR-7114
Radar rdar://problem/38142243
Original Reporter @xwu
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift version 4.1 (swiftlang-902.0.34 clang-902.0.30)

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug, REPL
Assignee None
Priority Medium

md5: f41adada05af25ed38dd6e5c1b56d8d1

duplicates:

  • SR-7193 Segfaults after using KeyPath on array in REPL

Issue Description:

Here are three lines of code (rather fun and educational ones, but besides the point):

let a = 9007199254740991.0
(a * a - a * a).squareRoot()
(a * a).addingProduct(-a, a).squareRoot()

If I enter these line-by-line into a REPL, it'll just hang after line 3.

But it's not the content of line 3 that's the problem. I can enter line 1, line 3, then line 2, and it'll hang after I press enter the third time (line 2).

I've notice this lately experimenting with various other expressions; the REPL will just hang, and I'll start over in a new Terminal tab and the same expression will be fine. But it's annoying.

@belkadan
Copy link

belkadan commented Mar 5, 2018

@swift-ci create

@belkadan
Copy link

Whoops, turns out this was the same as SR-7193.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
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 REPL
Projects
None yet
Development

No branches or pull requests

2 participants