Ensure stack overflows don't kill Ludus #27

Open
opened 2024-01-21 22:59:36 +00:00 by scott · 3 comments
Owner

I don't know if this is actually an issue, but test it and ensure it's not:

  • If somebody overflows the stack with a recursive call, make sure it's recoverable by the ludus-web environment
  • In particular, make sure it's caught inside Ludus itself.
I don't know if this is actually an issue, but test it and ensure it's not: * If somebody overflows the stack with a recursive call, make sure it's recoverable by the `ludus-web` environment * In particular, make sure it's caught inside Ludus itself.
scott added the
bug
enhancement
errors
now
labels 2024-01-21 22:59:36 +00:00
scott self-assigned this 2024-01-21 22:59:44 +00:00
scott added this to the Computer Class milestone 2024-04-26 21:14:42 +00:00
scott added a new dependency 2024-05-06 16:41:01 +00:00
Author
Owner

#29 helps but does not fix this. If recursive calls are in tail position, we won't get stack overflows. But beginners may overflow the stack by non-tail recursive calls, and we don't want that to crash ludus-web.

#29 helps but does not fix this. If recursive calls are in tail position, we won't get stack overflows. But beginners may overflow the stack by non-tail recursive calls, and we don't want that to crash ludus-web.
scott added
next
and removed
now
labels 2024-05-19 19:32:53 +00:00
Author
Owner

At current, a stack overflow will cause a wasm out of memory issue; not sure how to recover that.

Meanwhile, an infinite loop will also hang.

Neither of these are recoverable, but hitting reload now automagically puts your code back in the browser, so you won't lose work.

Bumping to next milestone.

At current, a stack overflow will cause a wasm out of memory issue; not sure how to recover that. Meanwhile, an infinite loop will also hang. Neither of these are recoverable, but hitting reload now automagically puts your code back in the browser, so you won't lose work. Bumping to next milestone.
scott modified the milestone from Computer Class to 0.2.0 2024-06-14 19:58:19 +00:00
Author
Owner

This will be possible with the new actor model.

This will be possible with the new actor model.
scott added this to the Actors project 2024-07-03 00:26:11 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#27
No description provided.