Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4058

Unaligned memory access issue in SIMDed byteswap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.7.0
    • Impala 2.7.0
    • Backend

    Description

      SimdByteSwap::ByteSwap256 in util/bit-util.cc is modified using _attribute_((target("avx2"))).
      This attribute will make the compiler generate aligned memory access instructions for the assignment statements. If incoming memory destination address is unaligned, the assignment statements will fail and may cause crash.

      Reproducible with select reverse('123456789abcdef0123456789abcdef0');.

      Attachments

        Activity

          People

            jbapple Jim Apple
            hayabusa Youwei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: