[Mongrel] More mongrel pre-release crashes

Zed Shaw zedshaw at zedshaw.com
Mon Aug 14 20:13:59 EDT 2006


On Mon, 2006-08-14 at 14:25 -0700, Carl Lerche wrote:
> Alright, here are some more outputs of the log for the latest pre- 
> release of mongrel. I'm just copying the relevant stuff:
> 
Carl, what the hell are you doing to my software. :-)  Nah, this is
good, but I'm really curious what your app is, it seems to really
stretch boundaries.

> ERROR reading http body: Socket closed or read failure
> Mon Aug 14 00:00:02 CDT 2006: ERROR: undefined method `rewind' for  
> nil:NilClass

Ah, right before this should have been a socket read failure message.
Can you send that on to me.  I've fixed this and will do another
pre-release.  Also, does this crash the server?  It shouldn't.

> 
> Mon Aug 14 10:39:55 CDT 2006: ERROR: failed to allocate memory
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 
> 536:in `readpartial'

Ok, you're on your own here.  You've basically run out of ram
so--kaboom!

If you have rails actions that are loading tons of data, consider
forcing that data =nil and call GC.start.  Before and after filters are
good for this.

> Also, what does it mean when I see a bunch of gibberish in the log  
> file like as follows? You mentioned base64 stuff, how is it sent to  
> the log file? I tried to decode a line and I get the following:
> '"GIF89aM\0009\000\367\000\000\000\000\000\377\377\377\037\037 \203_d 
> \304\227\235\246{\204\216kr\256\211\221\255\233\240\225nz\233u"'
> 

Looks like it's sending an image, but I've no idea why it'd put that int
here since I don't have the full log.  It could mean that your
configuration isn't setup properly since Mongrel seems to be serving
files.  I'd like to find out why you get this message, so if you can
send me a zip of your logs and maybe a detailed description of what your
app does then I can try to find out what causes those.

Send it to me off list so that you can keep it a secret (if you need
to).


-- 
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ -- Need Mongrel support?



More information about the Mongrel-users mailing list