mongrel icon indicating copy to clipboard operation
mongrel copied to clipboard

lib/mongrel.rb:122: Segmentation fault

Open ReinoutStevens opened this issue 14 years ago • 0 comments

We use mongrel to host a small network-based mediaplayer. Basicly http-requests with the media as body, that gets played with mplayer. Lately we've been having some random crashes, which really shouldn't happen as every request is wrapped in a begin-rescue clause. After starting our media-player in a screen instead of a daemon we noticed the cause was mongrel seg-faulting. Now I can't reproduce it, but it happens from time to time (every couple of days).

Fri Dec 10 00:59:23 +0100 2010: Error reading HTTP body: #<RuntimeError: Socket read returned insufficient data: 4226> /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/http_request.rb:107:in read_socket' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/http_request.rb:86:inread_body' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/http_request.rb:55:in initialize' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:149:innew' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:149:in process_client' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:inrun' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in initialize' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:innew' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in run' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:ininitialize' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in new' /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:inrun' /usr/local/mpgx/src/mpgX/mpgX.rb:21:in run' /usr/local/mpgx/src/mpgx.rb:27:inrun' /usr/local/mpgx/src/mpgx.rb:56 /opt/ruby1.8/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:122: [BUG] Segmentation fault ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

Aborted

ReinoutStevens avatar Dec 11 '10 13:12 ReinoutStevens