Native code in bson gem does not work on big-endian platforms

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 12_01_17
    • Affects Version/s: bson-3.1.2
    • Component/s: None
    • None
    • Environment:
      Linux s390x
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We built the Ruby driver on Linux on z Systems (s390x), but it does not work correctly when the native code is used. Deleting the native shared object in the gem allows the code to fall back to pure Ruby, and it would then function correctly. The problem looks like it could be caused by endianness issue in ext/bson/native.c.

            Assignee:
            Durran Jordan
            Reporter:
            Bryan Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: