0

I'm a beginner in Ruby and I've just imported a ruby code into my workspace. But I'm getting an error just when I try to start rails server on localhost. (I'm using Aptana Studio and working on windows.)

The error says -

C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31: [BUG] Segmentation fault ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32].

I'm using rails - 2.3.9, ruby, ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32].

Anyone has encountered this error before? If yes, can you please help me what you had to do to get rid of this. Let me know if you need any more details.

Below is the stack trace for clarification.

=> Booting Mongrel
=> Rails 2.3.9 application starting on <localhost 127.0.0.1 and port 3000>
<another non related warning>
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

Thanks in advance!

Akshay M
  • 29
  • 1
  • 8
  • Segmentation fault is the well known error you're gonna get when you do Ruby development on Windows and then use Aptana(which is pretty heavy IDE and consumes a lot of memory) on top of it. – Surya Oct 15 '14 at 09:49
  • Hi Surya, Thanks for the reply! Just wished to confirm with you, so this error has nothing to do with - custom_require.rb line number 31, as mentioned in the error? Or anything could be related to Ruby/GEMS/RAILS version - like somewhere conflict of versions? – Akshay M Oct 16 '14 at 03:56
  • Not that I know of, but you can try to rebuild your gems.Try: `gem pristine --all`. Are you using RVM by any chance? – Surya Oct 16 '14 at 06:21
  • Already tried- gem pristine --all, it couldn't help either. and I'm not using rvm. As a last resort, I'm going to add RAM to my PC and re-install everything from scratch again. Hope it works! – Akshay M Oct 16 '14 at 10:38
  • Also, Do you have any personal recommendations of IDE for ruby dev? and is it okay to use older versions like ruby 1.8.7 and rails 2.3.9. hope that is not causing problem because something like support has been discontinued etc. reason – Akshay M Oct 16 '14 at 10:46
  • You can use text-mate, sublime, or Atom(which is open source, made by github team). You will have to use ruby 1.8.7 and rails 2.3.9 if your project is built on it and is a constraint, if you're doing a new project then consider using the latest version. Also, try to use Ubuntu or some other linux distro for development, Windows for open source development is kind of doesn't sound good or taken seriously. – Surya Oct 16 '14 at 11:02
  • Hi Surya, thanks for this. btw could you please let me know apart from development.log is there any other tool / logs to understand what might be causing segmentation fault. i get no stacktrace in error message either and development.log look clean too. – Akshay M Nov 05 '14 at 06:39
  • I got it sorted out. Issue was with Sybase adapter. I can't pinpoint to a specific reason (because there were multiple things gone wrong) but if you first set up and test connection to Sybase from your PC with the help of Sybase drivers, SQLDbx/Command line, then you may be able to catch the culprit. The only solution while setting up ruby on rails dev env on windows is -to go cautiously and have ample number of checkpoints at every step otherwise you'll run into a lot of unpredictable and time consuming issues. – Akshay M Dec 09 '14 at 05:08

0 Answers0