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

Missing kernel feature - debugging processes #688

Closed
jhoareau opened this issue Jul 25, 2016 · 11 comments
Closed

Missing kernel feature - debugging processes #688

jhoareau opened this issue Jul 25, 2016 · 11 comments

Comments

@jhoareau
Copy link

Hi,

  • The Apple Swift REPL cannot run on BashOnWindows because of a missing kernel feature - I believe the missing feature is the one associated with debugging processes.
  • Expected results:
$ swift
  >
  • Actual results:
$ swift
  error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8
  • Windows Build number: 14393.0
  • How to reproduce: Install the latest swift snapshot for Ubuntu 14.04 on https://swift.org with required dependencies (clang and libicu-dev), add swift to path, then try to run swift. Compiling a file does work correctly though, but not the REPL.
@stehufntdev
Copy link
Collaborator

Thanks for reporting the issue. Can you please collect an strace of the failing process so we can see why the application is failing?

@therealkenc
Copy link
Collaborator

therealkenc commented Jul 26, 2016

#555 dup possibly.

@jhoareau
Copy link
Author

@therealkenc Indeed, I believe it is the same issue. You can mark it as duplicate.

@therealkenc
Copy link
Collaborator

The failing syscall appears to be:

ptrace(PTRACE_TRACEME, 0, 0, 0) = -1 EPERM (Operation not permitted)

@sunitjoshi
Copy link

I've the same issue on Windows 10, with Ubuntu 14.04.5 LTS

@sunilmut
Copy link
Member

sunilmut commented Mar 2, 2017

Marking it duplicate as per the above comments.

@yanite
Copy link

yanite commented Apr 29, 2019

I've the same issue on Windows 10, with Ubuntu 18.04 swift 5.0.1

@PseudonymPatel
Copy link

Still having this issue, it would be nice to see if something could be done about it

@viegasfh
Copy link

viegasfh commented Jan 6, 2022

Any update on this?

@jhoareau
Copy link
Author

jhoareau commented Jan 6, 2022

This was fixed with WSL2 using a virtual machine instead of rewriting system calls.

@viegasfh
Copy link

viegasfh commented Jan 6, 2022

Hi, @jhoareau !

Do you have a link I can follow to update this? O native Windows it does nothing. It runs and returns to the command prompt. On Ubuntu 20.04 on WSL2 it hangs.

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

No branches or pull requests

9 participants