Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault with "big" numbers #403

Closed
2 tasks done
Tracked by #415
SuperFola opened this issue Sep 24, 2022 · 2 comments
Closed
2 tasks done
Tracked by #415

Segfault with "big" numbers #403

SuperFola opened this issue Sep 24, 2022 · 2 comments
Labels
🔥 bug Something isn't working 🤔 help wanted Extra attention is needed

Comments

@SuperFola
Copy link
Member

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

  • I have read existing related documentation before submitting this report
  • I have searched for an existing issue before posting
@SuperFola SuperFola added 🔥 bug Something isn't working hacktoberfest labels Sep 24, 2022
@SuperFola
Copy link
Member Author

Couldn't replicate with Linux/GCC 10 (64bits) and MacOS/Clang 14 (64bits)

@SuperFola SuperFola added the 🤔 help wanted Extra attention is needed label Oct 2, 2022
@SuperFola
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 bug Something isn't working 🤔 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant