aws/aws-nitro-enclaves-samples

vsock sample with nitro-cli console not printing "Hello World!"

magoo opened this issue · 2 comments

magoo commented

I am running the python vsock-sample. I'm using the parent as client and enclave as server. It is not displaying "Hello World" from the server, and I think this is the buggy loc:

  • print is instructed to flush, but it does not send a \n, as instructed. This does not display anything through console.
  • However, "Hello World" will display if print has a newline, which fixes the issue.
  • I suspect that nitro-cli console is not flushing output until it sees a newline
  • print is clearly being instructed to flush stdout
  • This recent commit removed the newline, so I presume this worked previously.

Testing on an EC2 instance with AWS linux 2.

Hi @magoo,

I opened a PR for the issue, can you please check whether it solves this for you?

Closing this issue. Please reopen if it persists.