[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

ruby segfaults with rails app

Payton Swick

2/24/2006 3:37:00 PM

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....

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...

Thanks for any suggestions!
-Payton


1 Answer

Payton Swick

2/28/2006 3:48:00 PM

0

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
# ERROR 404: Not Found.
$ wget http://localhost:3000/test
# ERROR 404: Not Found.
$ wget http://localhost:3000/test
# ERROR 500: Internal Server Error.
$ wget 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&...

-Payton


Payton Swick wrote:
> 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....
>
>
> 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...
>
> Thanks for any suggestions!
> -Payton