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

Ruby 3.1: Synchronize can't be called from trap context

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.18.0
    • Affects Version/s: 2.17.1
    • Component/s: None
    • None
    • Fully Compatible

      This appears to be a regression of RUBY-2869, appearing with ruby 3.1.2 and mongo 2.17.1; the last few lines of the backtrace are:

       

      /home/sr/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/mongo-2.17.1/lib/mongo/session/session_pool.rb:102:in `synchronize': can't be called from trap context (ThreadError)
          from /home/sr/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/mongo-2.17.1/lib/mongo/session/session_pool.rb:102:in `checkin'
          from /home/sr/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/mongo-2.17.1/lib/mongo/session.rb:328:in `end_session'
          from /home/sr/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/mongo-2.17.1/lib/mongo/cursor.rb:115:in `block in finalize'

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            sven.riedel@givve.com Sven Riedel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: