Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4419

big-endian machines incorrectly configure little-endian crc32c support

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.5, 4.1.6, WT3.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage Engines 2018-11-19, Storage Engines 2018-12-03

      Issue Status as of Nov 28, 2018

      ISSUE SUMMARY
      In standalone WiredTiger builds on big-endian systems that lack hardware CRC32c support, the incorrect software CRC32c functions are called.

      USER IMPACT
      This change does not impact any MongoDB user.

      WORKAROUNDS
      There is currently no workaround for this issue.

      AFFECTED VERSIONS
      This issue does not impact MongoDB production releases.

      FIX VERSION
      WiredTiger 3.1.1.

      RESOLUTION DETAILS
      This issue is only for standalone WiredTiger builds, there is no impact to MongoDB.

      In order to uncover more race condition issues, we decided to run some jobs on PPC & zSeries machines, which have relaxed memory model or slow I/O channels. After switching wiredtiger-test-spinlock job onto zSeries, the 1st run captured below checksum mismatch error. 

      http://build.wiredtiger.com:8080/job/wiredtiger-test-spinlock/4571/

      + ../configure CFLAGS=-ggdb --enable-python --with-spinlock=gcc --enable-strict --with-berkeleydb=none
      checking for a BSD-compatible install... /bin/install -c
      checking whether build environment is sane... yes
      
      (...)
      
      ../../../build_posix/gnu-support/test-driver: line 95: 23533 Aborted                 (core dumped) "$@" > $log_file 2>&1
      
      FAIL: test_wt2695_checksum
      
      (...)
      
      test_wt2695_checksum: FAILED: check/40: hw == sw ? 0 : 1: known string #1: software checksum mismatch of 9 bytes: 0x10065321 != 0xe3069283
      : Operation not permitted
      process aborting

      It deserves an investigation to see if it's a legitimate problem. 

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            luke.chen@mongodb.com Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: