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

OCSP verification fails in addressable gem with ` stack level too deep (SystemStackError)`

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Case:

      Description

      Issue occurs in Heroku using either heroku-18 or heroku-20 using driver 2.14.0

      2021-01-27T17:05:03.560288+00:00 app[web.1]: #<Thread:0x00007fcde62f5718@/app/vendor/bundle/ruby/2.6.0/gems/mongo-2.14.0/lib/mongo/background_thread.rb:98 run> terminated with exception (report_on_exception is true):
      2021-01-27T17:05:03.560408+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:305:in `lookup_unicode_composition': stack level too deep (SystemStackError)
      2021-01-27T17:05:03.560432+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:215:in `unicode_compose_pair'
      2021-01-27T17:05:03.560432+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:153:in `block in unicode_compose'
      2021-01-27T17:05:03.560435+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/range/each.rb:9:in `each'
      2021-01-27T17:05:03.560452+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/range/each.rb:9:in `each'
      2021-01-27T17:05:03.560491+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:149:in `unicode_compose'
      2021-01-27T17:05:03.560491+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:121:in `unicode_normalize_kc'
      2021-01-27T17:05:03.560494+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/uri.rb:566:in `normalize_component'
      2021-01-27T17:05:03.560496+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/uri.rb:879:in `normalized_scheme'
      2021-01-27T17:05:03.560515+00:00 app[web.1]: ... 10153 levels...
      2021-01-27T17:05:03.560515+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/mongo-2.14.0/lib/mongo/socket/ocsp_verifier.rb:179:in `block in verify_one_responder'
      2021-01-27T17:05:03.560518+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/mongo-2.14.0/lib/mongo/socket/ocsp_verifier.rb:176:in `loop'
      2021-01-27T17:05:03.560535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/mongo-2.14.0/lib/mongo/socket/ocsp_verifier.rb:176:in `verify_one_responder'
      2021-01-27T17:05:03.560536+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/mongo-2.14.0/lib/mongo/socket/ocsp_verifier.rb:154:in `block (2 levels) in do_verify'
      2021-01-27T17:05:03.560643+00:00 app[web.1]: #<Thread:0x0000558983374198@/app/vendor/bundle/ruby/2.6.0/gems/mongo-2.14.0/lib/mongo/socket/ocsp_verifier.rb:153 run> terminated with exception (report_on_exception is true):
      2021-01-27T17:05:03.570469+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:305:in `lookup_unicode_composition': stack level too deep (SystemStackError)
      2021-01-27T17:05:03.570473+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:215:in `unicode_compose_pair'
      2021-01-27T17:05:03.570473+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:153:in `block in unicode_compose'
      2021-01-27T17:05:03.570475+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/range/each.rb:9:in `each'
      2021-01-27T17:05:03.570495+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/range/each.rb:9:in `each'
      2021-01-27T17:05:03.570496+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:149:in `unicode_compose'
      2021-01-27T17:05:03.570499+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/addressable-2.7.0/lib/addressable/idna/pure.rb:121:in `unicode_normalize_kc'
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.bevilacqua Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: