ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.05k stars 157 forks source link

An error occurred when I compiled with GCC #99

Closed Zeng1998 closed 3 years ago

Zeng1998 commented 3 years ago

ubuntu 20.04 isolate latest

The following are my operations and errors, I have no idea what happened

isolate --init
isolate -b 0 --run /usr/bin/gcc main.c

main.c

int main(){
    printf("hello world\n");
    return 0;
}

the error

gcc: error: vfork: Resource temporarily unavailable
Exited with error status 1
hermanzdosilovic commented 3 years ago

I think you should add the -p flag to allow GCC to fork.

Thus, your command would be: isolate -b 0 -p --run /usr/bin/gcc main.c.

Zeng1998 commented 3 years ago

I think you should add the -p flag to allow GCC to fork.

Thus, your command would be: isolate -b 0 -p --run /usr/bin/gcc main.c.

Yes, you're right. Thanks