Ruby On Rails 503 Service Unavailable Bug

#1
Hello I have a ruby on rail application and it upload thumbnails(pictures) but when i upload the picture the picture gets uploaded to the directory but then give me the error
503 Service Unavailable

in the sterrros.log it tell me the following.

/pathtorails/name_controller.rb:35: [BUG] Segmentation fault
ruby 1.8.5 (2006-12-04) [x86_64-linux]

So i look at the source and this is what its doing not sure what it causing the problem running fine with webbrick and mongrel

pic = Magick::Image.read(tmpfile).first^M

Is it Rmagick causing the problem or what

Also the distrubution is Fedora 6 rmagick was compiles manually as the gem dosent work .
 

mistwang

LiteSpeed Staff
#2
Since Ruby LSAPI fork children process off a parent process, so the child process might hold something invalid that inherits from the parent process.
Is there any Rmagick opteration during Rails framework initialization?
Does it leave a core file somewhere? have you check the core file with GDB?
 
#5
Umm I have it setup for
Memory Soft Limit (bytes) 250M
Memory Hard Limit (bytes) 300M

Shoulden't that be plenty.

Anything else i should look into?

Thanks
 
Top