Forum: Rails deployment problem: segfault in ruby with fastcgi

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.
20e319c200e666e4883b4a0a57563a75?d=identicon&s=25 Cornelius Lippert (cornelius)
on 2007-03-27 09:58
i'm trying to get fastcgi to work on solaris. my rails application works
fine with normal cgi, but with fastcgi i always get a segmentationfault.
the app runs normally with fastcgi under linux but that doesnt really
help :)

tested systems:
uname -a
=>
SunOS ... 5.10 Generic_118833-17 sun4v sparc SUNW,Sun-Fire-T200
or
SunOS ... 5.10 Generic sun4u sparc SUNW,Sun-Blade-100
or
SunOS ... 5.10 Generic sun4u sparc SUNW,Sun-Fire-280R


i've tried several rubyversions with the same error (1.8.x), some
selfcompiled with sun-compiler or gcc, some precompiled (blastwave).
as httpserver i aim for apache 1.3 (included in oracle applicationserver
with mod_fastcgi), but tried apache 2.2 as well (with mod_fcgid,
selfcompiled).
i followed several instructions on the net, eg
http://developers.sun.com/prodtech/webserver/refer...
i've also tried a simple test-application to rule out a problem in the
rails application.

the actual errormessage looks like this:
/usr/local/lib/ruby/1.8/timeout.rb:52: [BUG] Segmentation fault
ruby 1.8.5 (2007-03-13) [sparc-solaris2.10]

[Mon Mar 19 08:41:58 2007] [error] [client 10.0.0.68] [ecid:
1174290116:10.0.0.168:22842:0:15,0] FastCGI: incomplete headers (0 by
tes) received from server "<rails-app>/public/dispatch.fcgi"
[Mon Mar 19 08:41:58 2007] [warn] FastCGI: (dynamic) server
"<rails-app>/public/dispatch.fcgi" (pid 22852) terminated due
 to uncaught signal '6' (Abort), a core file may have been generated


the line in timeout.rb is Thread.start.
at some times (other versions of ruby, gems etc...) i've got a
segmentationfault in another rubyclass, also at a line with Thread.start

what else should i try? or does it look like a bug in ruby? i don't
really have the know-how to debug the coredump but if you think it to be
rewarding, maybe i should consider trying...

gem query
=>
*** LOCAL GEMS ***

actionmailer (1.3.3)
    Service layer for easy email delivery and testing.

actionpack (1.13.3)
    Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.2.3)
    Web service support for Action Pack.

activerecord (1.15.3)
    Implements the ActiveRecord pattern for ORM.

activesupport (1.4.2)
    Support and utility classes used by the Rails framework.

fcgi (0.8.7)
    FastCGI library for Ruby.

rails (1.2.3)
    Web-application framework with template engine, control-flow layer,
    and ORM.

rake (0.7.2)
    Ruby based make-like utility.

soap4r (1.5.5.20061022)
    An implementation of SOAP 1.1 for Ruby.

sources (0.0.1)
    This package provides download sources for remote gem installation



thanks, cornelius
This topic is locked and can not be replied to.