Forum: Ruby Seg fault on Thread.new with ruby 1.8.6

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sébastien D. (Guest)
on 2009-05-07 12:22
Hi all,

Since my rails app crashed, I cannot restart it and get the following
error at startup:

/local2/ruby/gems/gems/rails-2.1.1/lib/commands/servers/base.rb:4: [BUG]
Segmentation fault
ruby 1.8.6 (2008-08-11) [i386-linux]

I have ruby 1.8.6 on 32-bit linux and found out that the error actually
occurs when attempting to create a new thread with 'Thread.new do ...'.

Do you have any idea on how to debug/solve this problem ?

Thx
Roger P. (Guest)
on 2009-05-08 16:53
> I have ruby 1.8.6 on 32-bit linux and found out that the error actually
> occurs when attempting to create a new thread with 'Thread.new do ...'.
>
> Do you have any idea on how to debug/solve this problem ?

which version of ruby?
ideas: debug it with gdb :) [run gdb ruby ...]
try different version of rails.
follow its progress with strace.

http://eigenclass.org/hiki.rb?ruby+live+process+in...
might help.
Good luck.
-=r
Sébastien D. (Guest)
on 2009-05-11 11:43
Thank you for the link, i'll try to invistigate. The problem is i have
rebooted the machine and cannot reproduce the error so far.
Thanks again
This topic is locked and can not be replied to.