-
Notifications
You must be signed in to change notification settings - Fork 90
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
hiredis-rb is not GC-safe #42
Comments
Thanks for the report. I'm quite busy this and the coming week, but I will look into this. |
Thanks @badboy - At first read, does the addition of |
@badboy - Get a chance to look at this? |
Hey. Currently I'm the only maintainer, so there's no one else to take a look. I'm trying to find the right solution today. |
@findchris Do you have a test case that triggers the bug reliably? Would be nice to know that any fix we apply actually solves the problem (the other option for me would be to read the assembly and I'm really not good at that) |
@badboy I don't have a test case, sadly. It seems to be GC-related, and I have been able to reproduce consistently. @ohler55 Did this comment make sense to you? I just don't know enough to respond intelligently. |
Glad to get involved. Do you have a set of changes? Need a some help and a PR? |
I don't have any code yet. |
ok, I'll put together some change and attempt to put together a test. It will be a step at a time. |
Thanks in advance! |
Thanks guys; I really appreciate you stepping up on this @ohler55 👏 |
I am not having much success reproducing the failure here. @findchris, can you run tests on changes we make to verify when the changes work? You can be our tester. Less than ideal but it should be enough. |
I can lock production to a particular commit, which should work. |
It would help a lot. I put up a PR. Maybe batboy can help get everything squared away on branches. |
Checking in @badboy #squeakywheel |
I'm sorry this is post-poned so long, but I have to shift it a bit again (upcoming holiday and I just need a break from this). I take a fresh look when I'm back in 2 weeks. |
Totally understandable. Enjoy your holiday! |
This is still an issue for us. @badboy - Did you get a chance to look at this issue? |
I merged, but never pushed a new release. Will take care of that ASAP |
Hey there! Did anyone managed to reproduce the issue described by @findchris since the latest release? Is it still open? |
Bump - what is the status of this @badboy? Should this be closes or is this still an issue? |
I'm not working on hiredis-rb anymore. |
Hi there.
While investigating a GC-related issue (ohler55/oj#265 (comment)), @ohler55 mentioned that he looked at the
hiredis-rb
C code and saw some stuff that wasn't GC safe and might be the source of the bug I'm investigating (NotImplementedError: method ... called on terminated object
). He pointed out that:See the linked-to github issue above, but I'm only seeing this issue a few times per day on an app that gets significant traffic, so it's tough to reproduce, but all signs point to it being GC-related.
I look forward to your reply here.
The text was updated successfully, but these errors were encountered: