Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-4562

PS compilation with GCC 7.3.0 + ASAN failure

    Details

    • Type: Admin & Maintenance Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.6.39-83.1, 5.7.21-21, 5.5.60-38.12
    • Component/s: None
    • Labels:
      None

      Description

      Hi Team,

      cannot compile PS 5.5, 5.6, 5.7 on ubuntu bionic with enabled ASAN options

      -- Running cmake version 3.10.2
      -- The C compiler identification is GNU 7.3.0
      -- The CXX compiler identification is GNU 7.3.0

      5.5, 5.6 error

      /tmp/ps/storage/innobase/row/row0sel.c:4300:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
      err = DB_SUCCESS;
      ~~~~^~~~~~~~~~~~
      /tmp/ps/storage/innobase/row/row0sel.c:4301:3: note: here
      case DB_SUCCESS:
      ^~~~
      

      5.7 error

      In file included from /tmp/ps/sql/filesort_utils.cc:16:0:
      /tmp/ps/sql/filesort_utils.h: In member function 'uchar* Filesort_buffer::alloc_sort_buffer(uint, uint)':
      /tmp/ps/sql/filesort_utils.h:251:24: error: '<anonymous>.Filesort_buffer::m_sort_length' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           m_sort_length= rhs.m_sort_length;
                          ~~~~^~~~~~~~~~~~~
      cc1plus: all warnings being treated as errors
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                mykola.marzhan Mykola Marzhan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 30 minutes
                  3h 30m