Sinatra:Base rackup: rubyeventmachine.bundle: [BUG] Segmentation fault ruby 1.8.7
I was just saying yesterday that I haven’t run into any strange errors lately. I guess I forgot to knock on wood!
Today I started a brand new sinatra app. I haven’t written my own sinatra app from scratch before, so I’m copying pieces from some other apps that I have cloned on my machine. Here’s what my code looked like:
Then I bundled and ended up with this Gemfile.lock:
Also note that I’m using rvm with ruby 1.9.2-p290 and a brand new gemset for this project.
When I ran rackup
to start the server, I got this error message:
Why is it doing something with 1.8.7??? Who knows! Right after that I did an rvm list
:
Yep, using 1.9.2…
The one thing I changed in the code before running rackup
again was in salmon_test.rb:
Then the next time I ran rackup everything worked fine. shrug Hope this helps someone else.