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

MemPool Allocate can return unaligned memory if &zero_length_region_ is not aligned

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: None
    • Component/s: Backend
    • Labels:
    • Environment:
      Intel(R) Xeon(R) CPU E5-2665 0 @ 2.40GHz

      Description

      MemPoolTest.TryAllocateAligned calls MemPool::TryAllocateAligned which calls MemPool::Allocate<true>, which returns &zero_length_region_ if the size of the allocation requested is 0. &zero_length_region_ need not be aligned.

      Additionally, TryAllocateAligned fails in the MemPool destructor on assertion failure, because FreeAll was not called.

        Attachments

          Activity

            People

            • Assignee:
              jbapple Jim Apple
              Reporter:
              jbapple Jim Apple
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: