-
Notifications
You must be signed in to change notification settings - Fork 261
Internal memory fault at 0x00000000 when using python numpy library. #602
Comments
Hi @Seb5ferrari, in order to run NumPy in Graphene, you should allocate more than 1G memory. |
I've increased it to 1G still no luck. Please see the attached files for more info. hello_world_log.txt Thanks in advance. |
@Seb5ferrari, can you paste the source code with NumPy script? |
@ihepburn Same problem, any progress on this? |
I've cloned the latest repo and built it again. But no luck. addr2line -e libm.so.6 0x1e423 addr2line -e libpal-Linux-SGX.so 0x1e423 addr2line -e libsysdb.so 0x1e423 Still stuck. @lanhaoxiang any progress? |
@dimakuv Please look into this. Thanks in advance. |
Any idea why this error is occurring? I am getting a similar error while importing TensorFlow. Numpy and scipy work fine. This happens in normal Linux and not with SGX, I tried increasing enclave size to 8G, but no luck. |
@Seb5ferrari @kamathhrishi Have you looked into your examples provided with Graphene? Please check:
If you experience problems on these examples, please tell us. If you experience problems on your own versions of NumPy and TensorFlow, please provide more details: attach logs in debug mode, attach the manifest, describe the OS/CPU and specific versions of all relevant software. |
@dimakuv I did try those examples. I am running it on Ubuntu 16.04 and all I ran inside python was a program that imported tensorflow (just a .py file with import tensorflow) I got the error while trying to import tensorflow inside Python. I had got the following error Internal memory fault at 0x78d6f4b7e000 (IP = +0x31f49, VMID = 1456744796, TID = 1) below being the debug log before the error occured.
|
This was my manifest file |
I am confused by your two statements:
So what are using? Is it a VM with Ubuntu 16.04 on a MacOS being a VMM? Or did you try it on two different computers? Or do you use Ubuntu 16.04 on a Mac machine? |
@dimakuv Sorry for the confusion, its a Ubuntu 16.04 itself. |
I see that you have stack size of 100MB. This seems like a very big number. Could you decrease it to 1-2MB and rebuild your Python example again? It could be the reason for this bug you see. |
No luck :/ |
Any progress on this issue? we have the same error when we run TensorFlow. @dimakuv @kamathhrishi |
@duanbing: Would you be able to produce a small repro for this? |
@mkow I fixed it by increasing the enclave_size as far as I recall. |
Ok, let's close this issue then. |
Hi,
I am using graphene for sgx to run python scripts. I'm able to run all the native apps and bash scripts. Even python worked fine until I tried to import packages like numpy and pandas. I've changed my manifest by adding all the suggested file here #244 (comment), here #267, and here #308 (comment). None of them worked for me.
The files in the scripts folder 1) HelloWorld, 2) Test http, 3) Fibonacci, 4) Dummy web server are working fine and gives the required output. I get Internal memory fault only when I use numpy or panda. To test numpy, I used this file given by @ihepburn
Here are the log files. Thanks in advance.
fork_output.txt
HelloWorld_output.txt
Pyhton_dummy_webServer.txt
Python_csv.txt
Python_Fibonacci.txt
Python_Hello_world.txt
Python_numpy_output.txt
Python_Test_Http.txt
The text was updated successfully, but these errors were encountered: