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

WORDS-OF TRY [BREAK] crashes #1535

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Closed

WORDS-OF TRY [BREAK] crashes #1535

Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Labels
CC.resolved Issue with CureCode status built, tested or complete Status.important Test.written Type.bug

Comments

@Siskin-Bot
Copy link
Collaborator

Siskin-Bot commented Feb 15, 2020

Submitted by: meijeru

This is one of the cases where TRY yields a "special" error value (code < 100). WORDS-OF TRY [1 / 0] works normally.


Imported from: CureCode [ Version: alpha 97 Type: Bug Platform: All Category: Error Handling Reproduce: Always Fixed-in:alpha 98 ]
Imported from: metaeducation#1535

Comments:

Rebolbot commented on Mar 23, 2010:

Submitted by: BrianH

This is a side effect of bug #1509. The unwind values don't have words, so WORDS-OF shouldn't work on them. However, the unwind values should never be passed as an argument to the function in the first place; they should propagate instead. So there is no problem with the behavior of the function itself: The error is in the call to the function, as done by DO.


Rebolbot commented on Mar 24, 2010:

Submitted by: Ladislav

"However, the unwind values should never be passed as an argument to the function in the first place;" - certainly, triggered unwinds shall not be in the "Rebol value space", not being "normally manipulable" by any Rebol function, and existing only as "ghosts". If wished, untriggered unwinds can be defined as "regular Rebol values", but it probably isn't necessary.


Rebolbot commented on Mar 25, 2010:

Submitted by: BrianH

There is no such thing as an untriggered unwind value as far as REBOL code is concerned. You can't make an unwind value without triggering it. And any code which is able to treat an unwind value as if it were an untriggered error! value is a major security hole, which should be reported here. See #1004, #1509, #1515 and #1519 for other examples of that security hole.


Rebolbot commented on Apr 30, 2010:

Submitted by: Carl

In A98 it no longer crashes, but returns a new error indicating that such usage is not valid.


Rebolbot commented on Jan 30, 2013:

Submitted by: Ladislav

While not causing a crash now, the behaviour is still incorrect. See #1509


Rebolbot commented on Feb 19, 2014:

Submitted by: BrianH

#1509 is now fixed, so we can consider this one fixed as well.


Rebolbot mentioned this issue on Jan 12, 2016:
spec-of break crashes


Rebolbot added Type.bug and Status.important on Jan 12, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CC.resolved Issue with CureCode status built, tested or complete Status.important Test.written Type.bug
Projects
None yet
Development

No branches or pull requests

2 participants