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

Rails segmentation fault when no argument is passed #565

Closed
Asmoddym opened this issue Oct 29, 2019 · 6 comments
Closed

Rails segmentation fault when no argument is passed #565

Asmoddym opened this issue Oct 29, 2019 · 6 comments

Comments

@Asmoddym
Copy link

Rails 4.2.7.1, Ruby 2.3.3
When I type Oj.dump() without any parameter on a Rails console, the server segfaults.

Screenshot 2019-10-29 at 10 32 07

@ohler55
Copy link
Owner

ohler55 commented Oct 29, 2019

I'll look into it. It is just supposed to raise an exception like it does when not in rails although you are using a very old version of Ruby.

@ohler55
Copy link
Owner

ohler55 commented Oct 30, 2019

I was not able to install ruby 2.3.3 on macOS. I'll try on a linux machine tomorrow.

@ohler55
Copy link
Owner

ohler55 commented Nov 2, 2019

No success getting 2.3.3 installed. I did have 2.3.7 installed on an older machine I could use though. By itself, without rails there is no issue. I was not able to install an older version of rails.

What confuses me is how the console would even be able to call a function with the wrong number of arguments. More recent versions of the rails console raises an exception before even calling Oj.dump with no arguments.

I'm afraid there's not much else I can do since I can't install the versions you are running into issues with. If you are not able to upgrade you could test by trying to call another function that requires an argument with no arguments and see if the console has the same issue.

@Asmoddym
Copy link
Author

Asmoddym commented Nov 4, 2019

Ok, thanks anyway! Btw, I tested this on some other functions requiring arguments, but I have the "wrong number of arguments" message.

@ohler55
Copy link
Owner

ohler55 commented Nov 13, 2019

Can this be closed?

@Asmoddym
Copy link
Author

yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants