Giter VIP home page Giter VIP logo

Comments (4)

KareemAlaa2001 avatar KareemAlaa2001 commented on July 22, 2024 1

So having done that, we realised that the passed in paths for python3 to the run command were not exactly correct 😅 updating that fixed our issue. Thanks!

from code_contests.

davidhchoi avatar davidhchoi commented on July 22, 2024

It looks like it's making a syscall that the sandbox doesn't allow. Does it work if you explicitly add that syscall to what's allowed by the sandbox? Adding builder.AllowSyscall(__NR_arch_prctl); to here and here.

from code_contests.

KareemAlaa2001 avatar KareemAlaa2001 commented on July 22, 2024

This seems to make that specific error go away, however we are now running into a separate issue where the compilation fails for all three examples without any error message:

We will try to solve "Gregor and Cryptography":
https://codeforces.com/problemset/problem/1549/A

We will run:
  1. A program that does not compile.
  2. A program that runs successfully, but gives the wrong answer sometimes.
  3. A correct solution.

--------------------------------------------------------------------------------
An invalid program is reported as not compiling:

[global_forkclient.cc : 122] RAW: Starting global forkserver
Compilation failed

--------------------------------------------------------------------------------
The bad solution passes a few tests but then fails.
Because we set stop_on_first_failure to True, we stop once we see a failure.
We are running on 4 threads, so it's possible that more than one failure occurs
before all threads stop.

Compilation failed

--------------------------------------------------------------------------------
The good solution passes all tests.

Compilation failed

The syscall was added to both specified locations with everything else being kept as is

from code_contests.

davidhchoi avatar davidhchoi commented on July 22, 2024

Ok, can you print out more information to where it prints compilation failed here? In particular, multi_result.compilation_result.stdoutand multi_result.compilation_result.stderr.

from code_contests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.