Ark
Ark copied to clipboard
Segfault with "big" numbers
What happened?
The VM is either segfaulting or giving "corrupted size vs previous size" on those lines of code
https://github.com/ArkScript-lang/std/blob/fc8e2e9a74f78b19666b3fb5032d902b7ce6cc2c/tests/math-tests.ark#L88-L90
What ArkScript version are you seeing the problem on?
dev
Relevant code & log output
Run ./arkscript --version
./arkscript --version
for f in tests/*.ark; do
./arkscript $f -L ./
done
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Version 3.4.0
Events tests passed (10) in 0.136137008666992ms
Exceptions tests passed (2) in 0.0369548797607422ms
Functional tests passed (4) in 0.0400543212890625ms
Lazy tests passed (4) in 50.186872482299805ms
List tests passed (47) in 0.381231307983398ms
Macros tests passed (5) in 0.0398159027099609ms
corrupted size vs. prev_size
/home/runner/work/_temp/320c4b6e-410c-4290-909b-2d1366ed84c0.sh: line 2: 1800 Aborted (core dumped) ./arkscript $f -L ./
Error: Process completed with exit code 134.
Documentation
- [X] I have read existing related documentation before submitting this report
- [X] I have searched for an existing issue before posting
Couldn't replicate with Linux/GCC 10 (64bits) and MacOS/Clang 14 (64bits)
Closing as it's now working with ArkScript v4 RC4 https://github.com/ArkScript-lang/std/blob/e3fdc80f31985fe79eb23e4790811660f35203f1/tests/math-tests.ark#L85-L86