Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2869

ruby 3.1.0: finalizer can't synchronize using mutexes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.17.1, 2.18.0
    • Affects Version/s: 2.17.0
    • Component/s: None
    • None

      After updating one of our applications to Ruby 3.1.0, it started crashing with stacktraces like the following one:

       

      /Users/user/.rvm/gems/ruby-3.1.0@logjam/gems/mongo-2.17.0/lib/mongo/cluster/reapers/cursor_reaper.rb:59:in `synchronize': can't be called from trap context (ThreadError)/Users/user/.rvm/gems/ruby-3.1.0@logjam/gems/mongo-2.17.0/lib/mongo/cluster/reapers/cursor_reaper.rb:59:in `synchronize': can't be called from trap context (ThreadError) from /Users/user/.rvm/gems/ruby-3.1.0@logjam/gems/mongo-2.17.0/lib/mongo/cluster/reapers/cursor_reaper.rb:59:in `schedule_kill_cursor' from /Users/user/.rvm/gems/ruby-3.1.0@logjam/gems/mongo-2.17.0/lib/mongo/cluster.rb:350:in `block (2 levels) in <class:Cluster>' from /Users/user/.rvm/gems/ruby-3.1.0@logjam/gems/mongo-2.17.0/lib/mongo/cursor.rb:115:in `block in finalize'

       

       

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            skaes Stefan Kaes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: