You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An undefined symbol typically means that something went wrong loading libpython. The simplest workaround is to set the env var LD_PRELOAD to the location of the libpython which contains the missing symbol. On your system I think that would be '/usr/local/lib/libpython3.9.so'
Describe the bug
lib/python3.9/lib-dynload/resource.cpython-39-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type
To Reproduce
MEMORY_LIMIT_CODE = "import resource\n" +
"\n" +
"soft, hard = resource.getrlimit(resource.RLIMIT_AS)\n" +
"resource.setrlimit(resource.RLIMIT_AS, (maxSize, hard))";
interceptor.set("maxSize", maxMemorySize);
interceptor.exec(MEMORY_LIMIT_CODE);
Expected behavior
limit python code memory usage
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: