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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 2.18.0
    • 2.17.1
    • None
    • None
    • Fully Compatible

    Description

      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'

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: