I've got ruby 1.8.4, fastcgi, apache 2. Everything was installed by the book - no apache tuning options or anything just a stock install. With webrick, things seem to run fine but after a few clicks it will always crash with the following error:

http://localhost:3000/articles/new -> /articles/create - - [21/May/2006:15:26:58 GMT Daylight Time] "GET / HTTP/1.1" 200 652
http://localhost:3000/articles/new -> /
c:/ruby/lib/ruby/1.8/timeout.rb:52: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
This happens sporadically, and the place where it crashes is never the same.

I've checked the obvious problems, the shebang line is set up correctly, ruby fcgi bindings are installed as well as the ruby mysql module.

Similar symptoms then occur in apache+fastcgi, it seems to work for a few clicks and will then crash with the following errors:

application server.log:

[Sun May 21 15:33:21 2006] [error] [client] (OS 109)The pipe has been ended.  : FastCGI: comm with server "C:/dev/tfm/public/dispatch.fcgi" aborted: GetOverlappedResult() failed, referer: http://tfm/
[Sun May 21 15:33:21 2006] [error] [client] FastCGI: incomplete headers (0 bytes) received from server "C:/dev/tfm/public/dispatch.fcgi"
application fastcgi.crash.log:

[21/May/2006:15:33:24 :: 2504] Ignoring unsupported signal USR1.
[21/May/2006:15:33:24 :: 2504] Ignoring unsupported signal USR2.
[21/May/2006:15:33:24 :: 2504] Ignoring unsupported signal HUP.
[21/May/2006:15:33:24 :: 2504] Ignoring unsupported signal SIGTRAP.
[21/May/2006:15:33:24 :: 2504] starting
apache error.log:

[Sun May 21 15:29:13 2006] [warn] FastCGI: (dynamic) server "C:/dev/tfm/public/dispatch.fcgi" (pid 3212) termination signaled
[Sun May 21 15:29:13 2006] [warn] FastCGI: (dynamic) server "C:/dev/tfm/public/dispatch.fcgi" (pid 3212) terminated with exit with status '0'
[Sun May 21 15:33:21 2006] [warn] FastCGI: (dynamic) server "C:/dev/tfm/public/dispatch.fcgi" (pid 3552) terminated with exit with status '3'
[Sun May 21 15:33:21 2006] [warn] FastCGI: (dynamic) server "C:/dev/tfm/public/dispatch.fcgi" restarted (pid 2504)
This is driving me nuts as it's immensely difficult to debug and there is very little literature detailing these kinds of problems. I've now spent almost 5 days trying to get windows work with rails so any help would be massively appreciated.