Project

General

Profile

Actions

Bug #11986

closed

Segmentation fault

Added by fabioin (Fabio Inguaggiato) over 8 years ago. Updated almost 5 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
[ruby-core:72841]

Description

I've got the attached segmentation fault every time I shut down a web app. The web app is made with Sinatra and supports WebSockets with faye-websocket gem. The app runs with Passenger in standalone mode. I've already tried more Ruby versions (2.1.1, 2.2.3, 2.2.4 and 2.3.0) and I've always got segmentation fault closing the web app. The server is Debian GNU/Linux 8.2, kernel version 4.1.5-x86_64.

This error always occur consistently, so I can do other tests if someone has suggestions. If necessary I can provide more information about the running environment.

This issue has been sent also to eventmachine gem issue tracker system.

App 8681 stderr: /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/eventmachine-1.0.9/lib/eventmachine.rb:202: [BUG] Segmentation fault at 0x00000000000911
App 8681 stderr: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
App 8681 stderr: 
App 8681 stderr: -- Control frame information -----------------------------------------------
App 8681 stderr: c:0005 
App 8681 stderr: p:---- s:0017 e:000016 CFUNC  :release_machine
App 8681 stderr: c:0004 p:0038 s:0014 e:000013 RESCUE /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/eventmachine-1.0.9/lib/eventmachine.rb:202
App 8681 stderr: c:0003 p:0432 s:0011 e:000010 METHOD /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/eventmachine-1.0.9/lib/eventmachine.rb:226
App 8681 stderr: c:0002 p:0014 s:0004 e:000003 BLOCK  /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/faye-websocket-0.10.2/lib/faye/websocket.rb:36 [FINISH]
App 8681 stderr: c:0001 p:---- s:0002 e:000001 (none) [FINISH]
App 8681 stderr: 
App 8681 stderr: -- Ruby level backtrace information ----------------------------------------
App 8681 stderr: /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/faye-websocket-0.10.2/lib/faye/websocket.rb:36:in `block in ensure_reactor_running'
App 8681 stderr: /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/eventmachine-1.0.9/lib/eventmachine.rb:226:in `run'
App 8681 stderr: /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/eventmachine-1.0.9/lib/eventmachine.rb:202:in `ensure in run'
App 8681 stderr: /home/amc-prod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/eventmachine-1.0.9/lib/eventmachine.rb:202:in `release_machine'
App 8681 stderr: 
App 8681 stderr: -- Machine register context ------------------------------------------------
App 8681 stderr:  RIP: 0x00007fbd6afefa2c RBP: 0x0000000000000000 RSP: 0x00007fbd121203d0
App 8681 stderr:  RAX: 0x0000000000000909 RBX: 0x000055d2600f4a00 RCX: 0x000055d26164d558
App 8681 stderr:  RDX: 0x000055d26164cb80 RDI: 0x000055d25f46dde0 RSI: 0x000055d25e2a7750
App 8681 stderr:   R8: 0x0000000000000003  R9: 0x000055d25e29da20 R10: 0x00007fbd121201b0
App 8681 stderr:  R11: 0x00007fbd6afef990 R12: 0x000055d25ef5e640 R13: 0x000055d25e29da20
App 8681 stderr:  R14: 0x000055d25e2a7750 R15: 0x0000000000000000 EFL: 0x0000000000010202

[...see the full dump attached for C level backtrace, other runtime information and process memory map...]

Files

segfault.log (93.2 KB) segfault.log fabioin (Fabio Inguaggiato), 01/13/2016 10:14 AM

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

  • Status changed from Open to Third Party's Issue

This crash occurs in a 3rd party C extension (EventMachine), probably inside this function: https://github.com/eventmachine/eventmachine/blob/v1.0.9/ext/rubymain.cpp#L775. It appears to be the same issue as https://github.com/eventmachine/eventmachine/issues/670, which was resolved in EventMachine 1.2.6.

Actions

Also available in: Atom PDF

Like0
Like0