Comments (4)
This seems like a problem in the instruction encoding check. As this is caused by the check and not by the process execution, the execution timeout does not apply.
In particular, execution of line 148 of checks.py
takes an exorbitant amount of time:
Lines 145 to 148 in e113d85
Interestingly, while debugging using PDB, it seems like the check determined the code length to be 25,769,803,777 bytes long (approx. 24GiB), which is way off from the the actual size:
Furthermore, if Selfie returned a non-zero code, the check would immediately return a failure:
Line 124
in
e113d85
Lines 161 to 163
in
e113d85
Line 124 in e113d85
Lines 161 to 163 in e113d85
It seems like there is one definitive and potential issue there:
- The instruction encoding check seems to read an invalid code length from the ELF header. This needs some fixing and possibly a refactor.
- Selfie does not terminate with a non-zero return code to indicate compilation issues. Unexpected symbol handling seems somewhat inconsistent as sometimes Selfie does exit with a non-zero code immediately, and some other times Selfie does print a message, but continues compilation.
Lines 4435 to 4442 in e113d85
Lines 4546 to 4559 in e113d85
from selfie.
@Blazefrost Interesting! Does gcc return a non-zero exit code if there were warnings but no errors? In that case we may want to mimic that behavior.
from selfie.
I opened a new issue regarding the inconsistent handling of unexpected symbol syntax errors because the underlying problem on the grader is that the code length is parsed incorrectly. The exit code short-circuiting works fine on the grader side, but the exit code may need fixing on the compiler side: #280
from selfie.
Ah I know, where that bug was introduced. It was introduced, when we separated the code and data segment in the ELF output of Selfie. @Blazefrost are you working on a fix for that? Or should I take care of it?
from selfie.
Related Issues (20)
- Docker Build on Mac
- Clean up gcc/clang toolchain in Dockerselfie image to support 32-bit and 64-bit x86 and RISC-V HOT 10
- `self-assembler` assignment results in timeout HOT 7
- ELF file integrity
- Grader: Replace `threads` task `shared-heap` with thread-safe task HOT 4
- Suggestion: -Werror when self-grading HOT 7
- `characters of assembly` count in disassembler output is incorrect in `printf` branch HOT 10
- Order in list of assignments out of sync HOT 1
- Inconsistent handling of unexpected symbol syntax errors HOT 4
- Compiler warnings with GCC 11.1.0 HOT 4
- Residual files in selfie root directory in the selfie docker image after machine build HOT 1
- Multiplatform AMD64/ARM64 Support HOT 2
- "palloc out of physical memory" problem with changed "make os" HOT 7
- modeler returns "maximum code size exceeded" or "4712 expected between -4096 and 4095" if code size is increased HOT 7
- 32-bit + mipster + self-self-self [+ gc] is failing HOT 1
- Naming the programming language C* causes some confusion HOT 1
- Collisions between student code and Rotor [cc24] HOT 5
- Rotor disassembly produces incorrect immediate values for certain instructions HOT 2
- Rotor disassembly fails with "Floating point exception" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selfie.