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

can't trap excess use of ram without assert #1056

Open
gchiu opened this issue Feb 28, 2020 · 1 comment
Open

can't trap excess use of ram without assert #1056

gchiu opened this issue Feb 28, 2020 · 1 comment

Comments

@gchiu
Copy link

gchiu commented Feb 28, 2020

>> elide file: to text! read http://www.rebol.com

>> err: trap [loop 20 [append file file ""]]
Assertion failed!

Program: C:\Users\anon_\Downloads\rebol3\r3.exe
File: ../src/include/datatypes/sys-series.h, Line 780

Expression: SER_TOTAL(s) == size
@hostilefork
Copy link
Member

Note that this issue is more likely related to exceeding 32-bit counter space (or 31-bit when using signed numbers) than exhausting the virtual memory of your system.

R3-Alpha was retrofitted to be able to build as 64-bit, e.g. the binaries could run on 64-bit systems without a 32-bit subsystem to enable it. These changes were formalized over time in Ren-C to respect alignments better.

Yet there are still places in the code that use 32-bit numbers and assume you won't exceed that. This requires review on what the policy is going to be for the system w.r.t. what should be allowed to crash the system and what should be trappable errors. Similar questions exist for a formal policy on stack overflows--which is more pressing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants