# Ruby segfaults with rails app

**URL:** <https://www.ruby-forum.com/t/ruby-segfaults-with-rails-app/54154>\
**Category:** Ruby\
**Created:** [February 24, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/ruby-segfaults-with-rails-app/54154 "2006-02-24T16:37:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Payton\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/74df32/32.png) [@Payton\_S](https://www.ruby-forum.com/u/Payton_S)\
**Post date:** [February 24, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/ruby-segfaults-with-rails-app/54154/1 "2006-02-24T16:37:40Z")

</div>

Hi, this is something of a cross-post since I think I’ve exhausted the  
ideas from the rails list and I think this may be more generally  
ruby-related. Here’s the link to the original thread:

[http://wrath.rubyonrails.org/pipermail/rails/2006-February/thread.html#19701](http://wrath.rubyonrails.org/pipermail/rails/2006-February/thread.html#19701)

On one of my linux boxes (gentoo) I recently updated some non-ruby  
packages, and now whenever I try to run a rails app (either through  
webrick or mongrel), the first page load works fine, but the second  
causes a segmentation fault.

This is the beginning of a stack trace:

rb\_eval (self=7909646,  
n=0xb75c4ba8) at eval.c:2833  
2833 eval.c: No such file or directory.  
in eval.c

I’ve also asked the Gentoo people, but I’m not sure where the fault  
lies. Here’s the Gentoo bug report, which has all my details and full  
stack traces:

[http://bugs.gentoo.org/show\_bug.cgi?id=123718](http://bugs.gentoo.org/show_bug.cgi?id=123718)

Thanks for any suggestions!  
-Payton

---

<div class="post-metadata">

**Author:** ![Payton\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/74df32/32.png) [@Payton\_S](https://www.ruby-forum.com/u/Payton_S)\
**Post date:** [February 28, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/ruby-segfaults-with-rails-app/54154/2 "2006-02-28T16:48:36Z")

</div>

The Gentoo guys have given up. Apparently this is a ruby problem or  
something to do with my setup.

Here’s my test case:

$ rails testing  
$ cd testing  
$ ruby ./script/server

# webrick starts

$ wget [http://localhost:3000/test](http://localhost:3000/test)

# ERROR 404: Not Found.

$ wget [http://localhost:3000/test](http://localhost:3000/test)

# ERROR 404: Not Found.

$ wget [http://localhost:3000/test](http://localhost:3000/test)

# ERROR 500: Internal Server Error.

$ wget [http://localhost:3000/test](http://localhost:3000/test)

# No data received.

# At this point, webrick has segfaulted.

This is perfectly reproducible.

Here’s the new ruby bug report:

[http://rubyforge.org/tracker/?func=detail&aid=3683&group\_id=426&atid=1698](http://rubyforge.org/tracker/?func=detail&aid=3683&group_id=426&atid=1698)

-Payton
