Project

General

Profile

Bug #13650

Sporadic Ruby Crashing

Added by macuser9103812 (Jessica Johnson) over 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:81642]

Description

We're experiencing a crash in our Ruby application that is extremely hard to reproduce on-demand, but our application crashes 1-2 times a day. We've place some GC code within our application where we think the problem is occurring. This has somewhat helped, but we still don't have a good idea what code is causing the crash (or even if it's our code at all).

GC.verify_internal_consistency

We have many more crash reports, but I've attached a sample of the latest one. Any suggestions how we could repro this crash to help file a more definitive bug report?

Standard out log:

sample.rb:140: [BUG] inconsistent finalizing object count:
expect 11
but 11 zombies
heap_pages_deferred_final list has 0 items.
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin16]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/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:0022 p:---- s:0103 e:000102 CFUNC :verify_internal_consistency
c:0021 p:0064 s:0100 e:000099 METHOD .rb:140
c:0020 p:0026 s:0095 e:000094 METHOD .rb:112
c:0019 p:0020 s:0085 e:000084 METHOD .rb:120
c:0018 p:0052 s:0079 E:001bf8 METHOD :71
c:0017 p:0069 s:0069 E:0019c8 METHOD :301
c:0016 p:0037 s:0063 e:000062 BLOCK :191 [FINISH]
c:0015 p:0017 s:0058 e:000056 BLOCK :337
c:0014 p:0008 s:0055 e:000054 BLOCK :292 [FINISH]
c:0013 p:0030 s:0052 e:000051 BLOCK /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb:24
c:0012 p:0006 s:0046 e:000045 BLOCK /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38 [FINISH]
c:0011 p:---- s:0044 e:000043 CFUNC :synchronize
c:0010 p:0027 s:0041 e:000040 METHOD /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38
c:0009 p:0009 s:0038 e:000037 METHOD /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb:19
c:0008 p:0026 s:0034 e:000033 BLOCK /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/promise.rb:531 [FINISH]
c:0007 p:0013 s:0029 e:000028 METHOD /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348
c:0006 p:0056 s:0022 e:000021 BLOCK /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337 [FINISH]
c:0005 p:---- s:0017 e:000016 CFUNC :loop
c:0004 p:0009 s:0014 e:000013 BLOCK /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320 [FINISH]
c:0003 p:---- s:0012 e:000011 CFUNC :catch
c:0002 p:0025 s:0008 e:000007 BLOCK /Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319 [FINISH]
c:0001 p:---- s:0002 e:000001 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in block in create_worker'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in
catch'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in block (2 levels) in create_worker'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in
loop'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in block (3 levels) in create_worker'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in
run_task'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/promise.rb:531:in block in realize'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb:19:in
execute'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in synchronize'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in
synchronize'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in block in synchronize'
/Users/user/.rvm/gems/ruby-2.3.4/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb:24:in
block in execute'


Files

ruby_2017-06-09-104835.crash (111 KB) ruby_2017-06-09-104835.crash macuser9103812 (Jessica Johnson), 06/09/2017 06:00 PM

History

#1

Updated by jeremyevans0 (Jeremy Evans) 5 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF