-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
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
- is caused by
-
RUBY-2263 Add validations tested by bson corpus
- Closed