The limitations of running python in Gramine

24 views
Skip to first unread message

Caiqishen

unread,
Sep 8, 2022, 4:20:35 AMSep 8
to us...@gramineproject.io

Hi, I have some questions about running python in Gramine.

I have tried helloworld.py in gramine/CI-Examples/python, and then I want to make some changes. Specifically, I want to load a binary executeable.

For example, I wrote a helloworld.c, then

  1. gcc helloworld.c -o helloworld

In helloworld.py, I want to load it

  1. #!/usr/bin/env python3
  2. import subprocess
  3.  
  4. output = subprocess.call("./helloworld")
  5. print(output)
  6. print("Hello World")

Then I got the following errors:

  1. Gramine is starting. Parsing TOML manifest file, this may take some time...
  2. error: Unexpected memory fault occurred inside PAL (0x1edb83e8)

And open any file will also fail. So,

1.     how to import a file into gramine so that the main program can open it ?

2.     Does gramine support load a binary executeable in a python code and how?

3.     Is there other limitations of running python in Gramine or is there any docs about it ?

 

Thanks!

Dmitrii Kuvaiskii

unread,
Sep 8, 2022, 4:23:08 AMSep 8
to Caiqishen, us...@gramineproject.io
What version of Gramine are you using? Is it v1.2 release, or the
latest master version from GitHub?

The error "Unexpected memory fault occurred inside PAL (0x1edb83e8)"
is not good, and it indicates some problem inside Gramine codebase.

I would recommend to create a GitHub issue on this and specify all the
details so we (Gramine developers) can reproduce this issue. In
particular, we'd like to see the manifest.template file you used, as
well as the Makefile/build steps that you used.
> --
> You received this message because you are subscribed to the Google Groups "Gramine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gramine-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gramine-users/ff63ac70cd5a4b939dfb80073f231d18%40huawei.com.



--
Yours sincerely,
Dmitrii Kuvaiskii
Reply all
Reply to author
Forward
0 new messages