-
Notifications
You must be signed in to change notification settings - Fork 49
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
Stack Overflow results in crash instead of SystemStackError #66
Comments
This one's interesting. Do you have any leads on why this might be the case? |
This is fixed with the most recent Pry version: |
This is happening for me again, now:
|
Also, trying to run
test.rb: def crash
crash
end
crash @ConradIrwin: any thoughts? this one is pretty tricky. |
There used to be a guard in the code to avoid calling any methods if the exception was a stack overflow — someone should try and find that code and check whether it works ;) |
https://github.com/ConradIrwin/pry-rescue/blob/master/lib/pry-rescue/core_ext.rb#L42 tries to catch SystemStackError, but at that point it is already a fatal for me. I guess what you're saying is that post rescue if any method is executed at all, we'll fatal out? |
In pry, if I purposely overflow the stack with infinite recursion, the expected exception is raised:
However, if pry-rescue is installed, the following happens, and pry crashes to the shell
The text was updated successfully, but these errors were encountered: