[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Seg fault on Thread.new with ruby 1.8.6

Sébastien Dabet

5/7/2009 8:22:00 AM

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
--
Posted via http://www.ruby-....

2 Answers

Roger Pack

5/8/2009 12:54:00 PM

0


> 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+int...
might help.
Good luck.
-=r
--
Posted via http://www.ruby-....

Sébastien Dabet

5/11/2009 7:44:00 AM

0

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
--
Posted via http://www.ruby-....