-
Notifications
You must be signed in to change notification settings - Fork 14
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
YJIT crash at !cb.has_dropped_bytes() assertion #548
Comments
We have been using YJIT for a while with no issue, and noticed that the start of this issue matches with the upgrade of Rails from 7.0.4 to the main branch. |
Hi Jacopo, Thank you for reporting this issue, we very much appreciate it. I see from your log that you're on x86-64. Is this running on Ubuntu machines? AWS? Do you happen to have an offline reproduction? Is this an issue that only happens once deployed, or are you able to trigger it on your CI as well? Best regards,
|
Please give |
Those are Ubuntu machines running on Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz. No AWS, we run the app in our own servers.
Unfortunately, we don't have a reproduction script for it right now. The CI works fine with YJIT enabled and the issue is triggered only in the production servers. Please let me know if I can do anything more to help you in troubleshooting it. I really appreciate your help! |
Sure! I'll try the upgrade path as the first step and will let you know. Thanks! |
Hello @intrip ! Any update on whether this bug is present in preview3 as well? |
We are not live with the upgrade: We'll deploy it in a couple of days. I'll let you know if that fixes it as soon as possible 🙇♂️ |
@maximecb we just upgraded to preview3 and enabled YJIT on one of the hosts that were affected by this issue, no error so far which is a good sign but not fail-proof. Tomorrow I'll enable YJIT on more hosts, if the error won't manifest anymore we can consider it as fixed. |
Hi @intrip, thanks for taking the time to test this and report back. I'm glad to hear that it seems to be fixed so far 🤞 |
@maximecb after enabling YJIT on more hosts we encountered again the error 😞. |
Hi again @intrip, Sorry to hear that this bug is still present in preview3. On the positive side, my colleagues have just made several fixes that seem like they are very likely related to this, which are available on Ruby/master. Would you be able to build/deploy Ruby master? It should be 100% compatible with preview3 and compiled in the same way. If you do, I would recommend picking a commit sha that passed all the tests, e.g. 11d7c75 |
The backtrace was a useful information, thanks. However, I can't figure out why it happened with that version, so we might need you to run an arbitrary Ruby sha to get more information out of the crash message (since we currently have no crash in production pods that run Ruby master). In any case, it'd be nice to first run the Ruby sha Maxime mentioned, which has some YJIT bugfixes after preview3. My analysis (for YJIT team to read): This is a |
@intrip How do you go about running preview3 with your setup? It should be possible to run Ruby master in mostly the same way? As in, if you compile and build preview3 from source, we can put Ruby/master into a tarball as well. If you work from a git sha or tag, we can provide that for Ruby master too. |
I'm sorry but our team is feeling uncomfortable running the Master branch in the production servers right now. Are there any other options? Maybe there is a Ruby preview4 version coming 😅? |
There is probably not going to be a preview4 since the actual release is coming so soon. We can try to diagnose it some other way for now. |
It looks like rc1 is coming out shortly (not sure when, but at least before the release 😅), so you may try that version when it's released.
I'm also interested in hearing about it. |
Ok, we'll wait for the rc1 then.
We set We don't do any calls of |
3.3.0-rc1 has been released. Could you try that version? That has ruby#9124, so it should have been fixed. |
The full Ruby 3.3.0 release is out now. Let us know if this fixed the problem for you :) |
@intrip Happy to hear it's working well. Thanks for updating us! :) |
We are running our app with
Ruby 3.3.0-preview2
and Rails on Edge (main
branch) and we noticed multiple YJIT crashes on some of our web hosts. We are using Unicorn as web server.I've attached the full trace extracted from the unicorn crash.
error.log
Thanks for support!
The text was updated successfully, but these errors were encountered: