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

connection.rb:11: [BUG] Segmentation fault at 0x0000000000000000 #229

Closed
rgaufman opened this issue Apr 9, 2018 · 5 comments
Closed

connection.rb:11: [BUG] Segmentation fault at 0x0000000000000000 #229

rgaufman opened this issue Apr 9, 2018 · 5 comments

Comments

@rgaufman
Copy link

rgaufman commented Apr 9, 2018

I'm not sure if this is ohm or redic related, when I run .first or [0] I get a segmentation fault, e.g.

$ irb
irb(main):001:0> require "ohm"
irb(main):001:0> Ohm.redis = Redic.new("redis://127.0.0.1:6379")
irb(main):001:0> Ohm.redis.call "SET", "Foo", "Bar"
/usr/local/lib/ruby/gems/2.5.0/gems/redic-1.5.0/lib/redic/connection.rb:11: [BUG] Segmentation fault at 0x0000000000000000
...

The full details and log file is here: amakawa/redic#12

Any ideas why this is happening?

My Ruby/Redis/Redic/Ohm versions are:

  • ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
  • Redis server v=4.0.9 sha=00000000:0 malloc=libc bits=64 build=e0c8d37381c486c6
  • redic (1.5.0
  • ohm (3.1.1)
@soveran
Copy link
Owner

soveran commented Apr 9, 2018

Hello, thanks for the report. Do you have hiredis installed?

I was unable to reproduce it with ruby 2.5.0 but I'm upgrading it right now to test against the version you have.

@soveran
Copy link
Owner

soveran commented Apr 9, 2018

OK, I could reproduce it with ruby 2.5.1p57, now I have to find out what's going on :-)

@soveran
Copy link
Owner

soveran commented Apr 9, 2018

Can you try reinstalling hiredis? It should be gem uninstall hiredis and then gem install hiredis. It solved the problem for me, let me know how it goes.

@rgaufman
Copy link
Author

rgaufman commented Apr 9, 2018

That worked, I also tried installing ruby2.6.0-preview1 which worked too :)

@soveran
Copy link
Owner

soveran commented Apr 9, 2018

Excellent! Yes, it was scary but it has to do with the compiled extension of hiredis. I guess many users will run into the same issue, so thanks a lot for bringing this up.

@soveran soveran closed this as completed Apr 9, 2018
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