The limitations of running python in Gramine

Skip to first unread message


Sep 8, 2022, 4:20:35 AM9/8/22

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

I have tried 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, I want to load it

  1. #!/usr/bin/env python3
  2. import subprocess
  4. output ="./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 ?



Dmitrii Kuvaiskii

Sep 8, 2022, 4:23:08 AM9/8/22
to Caiqishen,
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
> To view this discussion on the web visit

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