# Seg fault on Thread.new with ruby 1.8.6

**URL:** <https://www.ruby-forum.com/t/seg-fault-on-thread-new-with-ruby-1-8-6/167382>\
**Category:** Ruby\
**Created:** [May 7, 2009, 10:22am UTC](https://www.ruby-forum.com/t/seg-fault-on-thread-new-with-ruby-1-8-6/167382 "2009-05-07T10:22:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiddler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@fiddler](https://www.ruby-forum.com/u/fiddler)\
**Post date:** [May 7, 2009, 10:22am UTC](https://www.ruby-forum.com/t/seg-fault-on-thread-new-with-ruby-1-8-6/167382/1 "2009-05-07T10:22:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fiddler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@fiddler](https://www.ruby-forum.com/u/fiddler)\
**Post date:** [May 8, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/seg-fault-on-thread-new-with-ruby-1-8-6/167382/2 "2009-05-08T14:53:56Z")

</div>

> 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+introspection](http://eigenclass.org/hiki.rb?ruby+live+process+introspection)  
might help.  
Good luck.  
-=r

---

<div class="post-metadata">

**Author:** ![fiddler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@fiddler](https://www.ruby-forum.com/u/fiddler)\
**Post date:** [May 11, 2009, 9:43am UTC](https://www.ruby-forum.com/t/seg-fault-on-thread-new-with-ruby-1-8-6/167382/3 "2009-05-11T09:43:43Z")

</div>

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
