trampgeek / jobe

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

testsubmit "Memory limit exceeded in C (seg faults)" #53

Closed jpschneiders closed 2 years ago

jpschneiders commented 2 years ago

Hi,

I have updated Jobe to version 1.6.6 on an up to date Debian 10 server. When I launch python3 ./testsubmit.py to test the install the test "Memory limit exceeded in C (seg faults)" fails since the requested malloc call succeeds. After investigating it seems to me that the new default memory limit for C tasks is 500MB. If I edit testsubmit.py and change the #define CHUNKSIZE 500000000 line to for example #define CHUNKSIZE 550000000 the malloc fails as expected and the test succeeds. It would be nice if you could patch the code accordingly.

Best regards, Jean-Pierre

trampgeek commented 2 years ago

Thanks for reporting. I just pushed an update (with a 2GB malloc for future proofing).