Unusual REPL failure on Linux

We’re trying to put Swift inside Docker, and it works for compilation, but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let us know. We’re tracking the issue here: https://github.com/swiftdocker/docker-swift/issues/9

(I left work early for this. I am so very happy Swift is OSS now!)

Tom

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

···

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co> wrote:

We’re trying to put Swift inside Docker, and it works for compilation, but
crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet
returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let
us know. We’re tracking the issue here:
Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

(I left work early for this. I am so very happy Swift is OSS now!)

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

I haven’t seen this before. What version of Linux is being used?

- mish

···

On Dec 3, 2015, at 8:08 PM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co <mailto:me@swizzlr.co>> wrote:
We’re trying to put Swift inside Docker, and it works for compilation, but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let us know. We’re tracking the issue here: https://github.com/swiftdocker/docker-swift/issues/9

(I left work early for this. I am so very happy Swift is OSS now!)

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>>*/

Ubuntu 14.04 LTS, but the dockerized version so presumably missing deps.

···

Sent from my iPhone

On 4 Dec 2015, at 18:06, Mish Awadah <mawadah@apple.com> wrote:

I haven’t seen this before. What version of Linux is being used?

- mish

On Dec 3, 2015, at 8:08 PM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co> wrote:
We’re trying to put Swift inside Docker, and it works for compilation, but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let us know. We’re tracking the issue here: Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

(I left work early for this. I am so very happy Swift is OSS now!)

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

Did you install all the deps listed in the Swift README?

- mish

···

On Dec 4, 2015, at 1:41 PM, Thomas Catterall <me@swizzlr.co> wrote:

Ubuntu 14.04 LTS, but the dockerized version so presumably missing deps.

Sent from my iPhone

On 4 Dec 2015, at 18:06, Mish Awadah <mawadah@apple.com <mailto:mawadah@apple.com>> wrote:

I haven’t seen this before. What version of Linux is being used?

- mish

On Dec 3, 2015, at 8:08 PM, Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>> wrote:

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co <mailto:me@swizzlr.co>> wrote:
We’re trying to put Swift inside Docker, and it works for compilation, but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let us know. We’re tracking the issue here: Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

(I left work early for this. I am so very happy Swift is OSS now!)

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>>*/

Not that they are essential. But perhaps might give us a clue.

Did you install clang? That is definitely a required dependency for using Swift.

- mish

···

On Dec 4, 2015, at 1:49 PM, Mish Awadah <mawadah@apple.com> wrote:

Did you install all the deps listed in the Swift README?

- mish

On Dec 4, 2015, at 1:41 PM, Thomas Catterall <me@swizzlr.co <mailto:me@swizzlr.co>> wrote:

Ubuntu 14.04 LTS, but the dockerized version so presumably missing deps.

Sent from my iPhone

On 4 Dec 2015, at 18:06, Mish Awadah <mawadah@apple.com <mailto:mawadah@apple.com>> wrote:

I haven’t seen this before. What version of Linux is being used?

- mish

On Dec 3, 2015, at 8:08 PM, Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>> wrote:

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co <mailto:me@swizzlr.co>> wrote:
We’re trying to put Swift inside Docker, and it works for compilation, but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let us know. We’re tracking the issue here: Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

(I left work early for this. I am so very happy Swift is OSS now!)

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>>*/

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Update:

Works on a local VM, fails on most cloud VMs. Apparently there's a particular restricted flag that needs to be set. Looks like I won't need any more help on this, but thanks for all your input thus far!

···

Sent from my iPhone

On 4 Dec 2015, at 21:41, Thomas Catterall <me@swizzlr.co> wrote:

Ubuntu 14.04 LTS, but the dockerized version so presumably missing deps.

Sent from my iPhone

On 4 Dec 2015, at 18:06, Mish Awadah <mawadah@apple.com> wrote:

I haven’t seen this before. What version of Linux is being used?

- mish

On Dec 3, 2015, at 8:08 PM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co> wrote:
We’re trying to put Swift inside Docker, and it works for compilation, but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do let us know. We’re tracking the issue here: Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

(I left work early for this. I am so very happy Swift is OSS now!)

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

I got Swift REPL works just fine on my Koding VM (koding.com). I even
succesfully made an online Swift REPL here:
beeography.koding.io/webswift.cgi

--Bee

Minggu, 06 Desember 2015, Thomas Catterall <me@swizzlr.co> menulis:

···

Update:

Works on a local VM, fails on most cloud VMs. Apparently there's a
particular restricted flag that needs to be set. Looks like I won't need
any more help on this, but thanks for all your input thus far!

Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

Sent from my iPhone

On 4 Dec 2015, at 21:41, Thomas Catterall <me@swizzlr.co > <javascript:_e(%7B%7D,'cvml','me@swizzlr.co');>> wrote:

Ubuntu 14.04 LTS, but the dockerized version so presumably missing deps.

Sent from my iPhone

On 4 Dec 2015, at 18:06, Mish Awadah <mawadah@apple.com > <javascript:_e(%7B%7D,'cvml','mawadah@apple.com');>> wrote:

I haven’t seen this before. What version of Linux is being used?

- mish

On Dec 3, 2015, at 8:08 PM, Dmitri Gribenko <gribozavr@gmail.com > <javascript:_e(%7B%7D,'cvml','gribozavr@gmail.com');>> wrote:

On Thu, Dec 3, 2015 at 4:31 PM, swizzlr <me@swizzlr.co > <javascript:_e(%7B%7D,'cvml','me@swizzlr.co');>> wrote:

We’re trying to put Swift inside Docker, and it works for compilation,
but crucially the REPL does not:

`error: failed to launch REPL process: process launch failed: 'A' packet
returned an error: 8`

If anyone has any suspicions as to the origin of this error, please do
let us know. We’re tracking the issue here:
Update documentation to clarify REPL usage and security implications · Issue #9 · apple/swift-docker · GitHub

(I left work early for this. I am so very happy Swift is OSS now!)

+ Sean, Enrico, Mish -- have you seen this?

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com
<javascript:_e(%7B%7D,'cvml','gribozavr@gmail.com');>>*/

--
-Bee

_____
Sent from GMail Mobile via iPod