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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: bson-3.1.2
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux s390x

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            durran.jordan Durran Jordan
            Reporter:
            bryanpkc Bryan Chan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: