-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add UNRAVEL from HMSL #193
Comments
I have currently have -fsanitize=address turned on in my pForth build and I immediately get a "ERROR: AddressSanitizer: heap-buffer-overflow" - I assume because it's walking into memory below the return stack with the |
When I test (with unravel inside LOAD_GRAPHICS) I get this: |
From the command line:
From the command line:
Actually I prototyped it in a nested include with: Gives:
Inside first include:
Default stack = 107820859018456 |
Inside top level include (the 40 + is to adjust for the fact this is defined in an include. In my opinion, this should be a primitive). Anywhere else afterwards:
Gives:
No crash. Some questions:
|
Thanks for experimenting with this. I cannot find R0 or RP0 in the ANS standard. Do you know of any standard references?
Probably. I need to ponder this.
Not sure. It may be from the DO LOOP
I think that was from some old JForth code.
I think it is to get past the DO LOOP internal values and the call to UNRAVEL. |
Happy to merge. Did you want me to do more on this? |
Implementation at:
https://github.com/philburk/hmsl/blob/cf49471aee4543ae4dd045e5bae4693a7629b08e/hmsl/fth/errormsg.fth#L22
The text was updated successfully, but these errors were encountered: