agoo: Segmentation fault

I’m not 100% sure that this is an issue with Agoo, but I never encountered segfaults with Puma and they only started showing up after I switched. I can’t seem to reliably reproduce the problem, but seemingly random navigation around my app will segfault and crash the server.

Here's the segfault crash log
server.rb:47: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0011 e:000010 CFUNC  :start
c:0002 p:0329 s:0007 E:001c68 EVAL   server.rb:47 [FINISH]
c:0001 p:0000 s:0003 E:000b50 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
server.rb:47:in `<main>'
server.rb:47:in `start'

-- Machine register context ------------------------------------------------
 rax: 0xc00007fa849acc6d rbx: 0xfffffffffffffff8 rcx: 0x0000000000000009
 rdx: 0x00007fa846701ac0 rdi: 0x00007fa847bed920 rsi: 0x00007fa846835d60
 rbp: 0x00007ffee0cf0da0 rsp: 0x00007ffee0cf0d50  r8: 0xd084f413c06d4000
  r9: 0x0000000111a9cbb8 r10: 0x0000000000000008 r11: 0x23fed980c2341dea
 r12: 0x00007fa846835ba8 r13: 0x00007fa848fa8d00 r14: 0x00007fa848fa8d00
 r15: 0x00007fa847bed920 rip: 0x0000000111a86d47 rfl: 0x0000000000010202

-- C level backtrace information -------------------------------------------
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(rb_vm_bugreport+0x82) [0x10f14ffb2]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10ef9b5e3) [0x10ef9b5e3]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10f0b4171) [0x10f0b4171]
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff5f023b5d]
/Users/evan/.asdf/installs/ruby/2.6.4/lib/ruby/gems/2.6.0/gems/agoo-2.11.0/lib/agoo/agoo.bundle(request_env+0x247) [0x111a86d47]
/Users/evan/.asdf/installs/ruby/2.6.4/lib/ruby/gems/2.6.0/gems/agoo-2.11.0/lib/agoo/agoo.bundle(0x111a8e7f2) [0x111a8e7f2]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10efa6d05) [0x10efa6d05]
/Users/evan/.asdf/installs/ruby/2.6.4/lib/ruby/gems/2.6.0/gems/agoo-2.11.0/lib/agoo/agoo.bundle(0x111a8d469) [0x111a8d469]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10f142a51) [0x10f142a51]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10f12931f) [0x10f12931f]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10f13d4b0) [0x10f13d4b0]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10efa6616) [0x10efa6616]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10efa6489) [0x10efa6489]
/Users/evan/.asdf/installs/ruby/2.6.4/bin/ruby(0x10ef0f53d) [0x10ef0f53d]

I left off the loaded features because it’s like 1100 lines but I’m happy to add them here if it’d help. Is there anything you can glean from this crash log? Is it possible that this has nothing to do with Agoo?

Thanks for taking a look, I appreciate it!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

Excellent. I got it to fail!