Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4838

Unittests crash with clang build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Icebox
    • Component/s: CI tests
    • Labels:
      None

      Description

      Unittests build with cmake parameter
      -D WITH_UNITTESTS=YES

      binary can be found in <build directory>/storage/columnstore/columnstore/bin/rowgroup_tests

      Segfault can be caused by unaligned memory

      movaps (%rax), %xmm0

      here is backtrace

      #0  0x000000000042ba6c in datatypes::TDecimal128::isWideDecimalNullValue (val=@0x7ffff2c9a055: -42) at /home/leonid_fedorov_mariadb_com/proj/mdb-server/storage/columnstore/columnstore/datatypes/mcs_decimal.h:296
      #1  0x00007ffff6ef1f7a in rowgroup::Row::isNullValue_offset<(datatypes::SystemCatalog::ColDataType)4, 16> (this=0x544620, offset=2)     at /home/leonid_fedorov_mariadb_com/proj/mdb-server/storage/columnstore/columnstore/utils/rowgroup/rowgroup.cpp:866
      #2  0x00007ffff6eea64f in rowgroup::Row::isNullValue (this=0x544620, colIndex=0) at /home/leonid_fedorov_mariadb_com/proj/mdb-server/storage/columnstore/columnstore/utils/rowgroup/rowgroup.cpp:990
      #3  0x0000000000427afc in RowDecimalTest_NonNullValueCheck_Test::TestBody (this=0x544610) at /home/leonid_fedorov_mariadb_com/proj/mdb-server/storage/columnstore/columnstore/tests/rowgroup-tests.cpp:181
      #4  0x00000000004688c1 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (location=0x46ddce "the test body", method=<optimized out>, object=0x544610)    at ./googletest/src/gtest.cc:2414
      #5  testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=object@entry=0x544610, method=<optimized out>, location=location@entry=0x46ddce "the test body")    at ./googletest/src/gtest.cc:2469
      #6  0x000000000045c7f6 in testing::Test::Run (this=0x544610) at ./googletest/src/gtest.cc:2508
      #7  testing::Test::Run (this=0x544610) at ./googletest/src/gtest.cc:2498
      #8  0x000000000045c955 in testing::TestInfo::Run (this=0x5429d0) at ./googletest/src/gtest.cc:2684
      #9  testing::TestInfo::Run (this=0x5429d0) at ./googletest/src/gtest.cc:2657
      #10 0x000000000045ca3d in testing::TestSuite::Run (this=0x542b90) at ./googletest/src/gtest.cc:2816
      #11 testing::TestSuite::Run (this=0x542b90) at ./googletest/src/gtest.cc:2795
      #12 0x000000000045cf5c in testing::internal::UnitTestImpl::RunAllTests (this=0x5081e0) at /usr/include/c++/9/bits/stl_vector.h:1040
      #13 0x0000000000468e31 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=0x46f228 "auxiliary test code (environments or event listeners)",     method=<optimized out>, object=0x5081e0) at ./googletest/src/gtest.cc:2414
      #14 testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x5081e0, method=<optimized out>,     location=location@entry=0x46f228 "auxiliary test code (environments or event listeners)") at ./googletest/src/gtest.cc:2469
      #15 0x000000000045d18c in testing::UnitTest::Run (this=0x48fb80 <testing::UnitTest::GetInstance()::instance>) at ./googletest/include/gtest/gtest.h:1412
      #16 0x0000000000427694 in main ()
      
      

        Attachments

          Activity

            People

            Assignee:
            drrtuy Roman
            Reporter:
            leonid.fedorov Leonid Fedorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.