-
Notifications
You must be signed in to change notification settings - Fork 630
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
Crashes with "Abort trap 6" for rails + thin site #698
Comments
Thanks for reporting this - what version of ruby and what platform are you on? Is ssl enabled in thin?
|
It's happening for me with:
As far as ssl being enabled, I'm not sure, but I didn't take any special action to enable it. I'm just using the default configuration with Rails. |
Thanks for reporting as well, oh my!
|
I am not able to reproduce this locally with the same versions of OS X El Capitan and Ruby 2.2.4, with a a minimal sinatra + thin + eventmachine application. I can run apachebench for thousands of requests without a problem. Could you help by looking for a backtrace in the Console application? Look for something like this: |
I'm seeing the same problem. It seems to be triggered specifically by trying to download assets from ::1 rather than 127.0.0.1. For example, I see this in my Guard output:
I can also reproduce it by running Here's a Console log of the crash: backtrace.txt Edit: I should probably mention I'm also on OS X 10.11.3, and this project uses ruby 2.1.5 |
I'm not using SSL locally, so I'm opening Attaching a copy of the last crash from Console: |
Here's the backtrace from my console. |
IPv6 is the culprit - I was able to reproduce locally. The failure without line numbers is
Next up I'll need to get line numbers to confirm the exact location, but my hunch is here:
At a glance, this looks correct; using |
Glad you were able to find the (likely) culprit so quickly! Will look forward to 1.2.1 to re-test. |
Wait, no it's not the right struct! I even reminded myself of this a few months ago!
|
I just confirmed that #699 resolves the problem. I'll push an updated gem to rubygems.org tonight. Test/confirm my results by adding to your Gemfile:
Sidenote: need to use sockaddr_in6 because this struct gets memcpy-ied onto the ReturnAddress class member which is presently defined as sockaddr_in6. |
Fix worked for me. Thanks! |
Same here, thanks! |
Worked for me too. |
EventMachine 1.2.0.1 is posted: https://rubygems.org/gems/eventmachine/versions/1.2.0.1 |
After upgrading from eventmachine 1.0.9.1 to 1.2.0, my rails site (running on thin) exits with
Abort trap: 6
on the first request from my browser.I'm not familiar with eventmachine. It's a dependency of thin 1.6.4:
When I can downgrade to eventmachine 1.0.9.1 and I no longer get an error. I can work around by locking my Gemfile to 1.0.9.1, but letting you know in case this is an eventmachine bug. I'd be happy to add more details, just let me know what would be helpful.
Details
The text was updated successfully, but these errors were encountered: