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

Swift REPL does not start #4030

Closed
thorsteneb opened this issue May 10, 2019 · 8 comments
Closed

Swift REPL does not start #4030

thorsteneb opened this issue May 10, 2019 · 8 comments

Comments

@thorsteneb
Copy link

thorsteneb commented May 10, 2019

  • Your Windows build number: 18894 20H1 Insider build - same behavior on 1809 release
    WSL 1, Ubuntu 18.04
    Swift 5.01 installed from https://swift.org/download/
    Please note this NOT a duplicate of fis-gtm does not run due to missing support for executable stack #286 , the execstack issue has since been solved upstream in Swift

  • What you're doing and what's happening:
    Execute 'swift'
    Terminal does not show further output, Ctrl-C does not end swift REPL. strace shows "process launch failed: 'A' packet returned an error: 8"

tbehrens@WSL-INSIDERTEST:~$ swift -version
Swift version 5.0.1 (swift-5.0.1-RELEASE)
Target: x86_64-unknown-linux-gnu
tbehrens@WSL-INSIDERTEST:~$ swift


^C


^C
  • What's wrong / what should be happening instead:
    swift REPL should start, output along the lines of:
Welcome to Apple Swift version 5.01. Type :help for assistance.
  1>
  • Strace of the failing command, if applicable:

swift-strace.txt

From roughly line 4340 in strace, a number of EBADF, then on line 6383, a failed ptrace with EPERM followed by an fseek with ESPIPE.

Same behavior with "sudo /path/to/swift/usr/bin/swift"

@the-provost
Copy link

I encountered the same issue. Any fixes or workarounds?

@thorsteneb
Copy link
Author

Workaround: Use WSL 2.

@bmaciag
Copy link

bmaciag commented Aug 22, 2019

Same issue here.

@yostane
Copy link

yostane commented Nov 22, 2019

Same issue

@yostane
Copy link

yostane commented Nov 25, 2019

Workaround: Use WSL 2.

I confirm. Debugging and REPL do not function on WSL1. On WSL2 we can do both REPL and debugging.

@yostane
Copy link

yostane commented Nov 28, 2019

Maybe we can close this issue ? @thorsteneb

@thorsteneb
Copy link
Author

Certainly. I think closing it says something about ongoing WSL 1 development - and, I am perfectly fine by that.
Go ahead and close!

@yostane
Copy link

yostane commented Nov 29, 2019

Certainly. I think closing it says something about ongoing WSL 1 development - and, I am perfectly fine by that.
Go ahead and close!

Sorry, I am not a contributor so I can't close tickets. Maybe someone from WSL team can close it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants