trampgeek / jobe

jobe is a server that runs small programming jobs in a variety of programming languages
MIT License
111 stars 80 forks source link

Octave will not run #38

Closed bnmnetp closed 4 years ago

bnmnetp commented 4 years ago

Hi,

I'm getting the following error when trying to run an Octave problem with the RESTAPI

/usr/bin/octave-cli: error while loading shared libraries: libopenblas.so.0: failed to map segment from shared object

If I shell in to the server I can run octave-cli with no problems. I've even tried runguard octave-cli and that also works.

Any ideas on where I should go from here?

trampgeek commented 4 years ago

The problem is almost certainly due to hitting one of the resource limits in the Runguard sandbox on Jobe. There are several discussions on such things in the CodeRunner forum, e.g. this one. The various parameters are documented here. memorylimit, numprocs and disklimit are the usual culprits, in that order. Try a memorylimit of 0 for a start, which disables the check altogether. The environment variable OPENBLAS_NUM_THREADS might also be relevant - see this thread.

bnmnetp commented 4 years ago

Thanks, I just figured it out myself by looking at the testsubmit.py script and noticing that you were setting the memorylimit for octave. That has solved it. Thanks for the quick answer!