arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
675 stars 29 forks source link

REPL should not finish when get a Segfault #1560

Open RickBarretto opened 5 months ago

RickBarretto commented 5 months ago

Right now, when we get a Segmentation Fault (SIGSEGV), the REPL stops and returns to the shell. This simply should not happen. The REPL should handle this error.


Discussion

My first thought was to restart the REPL, that would not solve all the problem itself, but would help a lot, at least. This would be the quickest approach, I suppose.

But, talking about long term, the right way would be to not suppress these errors, but instead, cover them, or properly handle them.

Other idea that cames in my mind is: when we get a Segmentation fault, the REPL handles or restart and then ask for the user to open an issue here. So we can track and know about these errors.


Well, what do you think, @drkameleon?


Related

btiffin @ discord.com