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

s390x: Segumentation fault on bson >= 4.9.0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.10.1, bson-4.9.5
    • Affects Version/s: bson-4.9.0
    • Component/s: BSON
    • None

      The segmentation fault happens on s390x, bson >= 4.9.0 and Ruby 2.7.1. This does not happen on bson < 4.9.0 and non-s390x (x86_64, aarch64, ppc64le). It might be big endian specific issue, as s390x is big endian.

      https://travis-ci.org/github/junaruga/bson-ruby/jobs/706143444#L246

       

      /home/travis/build/junaruga/bson-ruby/lib/bson/array.rb:122: [BUG] Segmentation fault at 0x000002aa0f29a000
      ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [s390x-linux]
      -- Control frame information -----------------------------------------------
      c:0045 p:---- s:0225 e:000224 CFUNC  :get_array
      c:0044 p:0020 s:0221 e:000220 METHOD /home/travis/build/junaruga/bson-ruby/lib/bson/array.rb:122
      

      I prepared the reproducer with Travis CI.

      https://github.com/mongodb/bson-ruby/pull/208
      https://travis-ci.org/github/junaruga/bson-ruby/builds/706143438

            Assignee:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Reporter:
            jaruga@redhat.com Jun Aruga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: