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

A memory leak could occur after "group_replication.gr_majority_loss_restart".

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 5.7.26-29
    • 5.7.29-32, 8.0.19-10
    • None

    Description

      Run the following command under Address Sanitizer

      ./mysql-test/mtr --big-test --debug-server --sanitize group_replication.gr_majority_loss_restart
      
      [ 50%] group_replication.gr_majority_loss_restart [ pass ]  96916
      worker[1] Sanitizer report from /home/yura/addon/local/percona-build-5.7-asan_gcc8/mysql-test/var/log/mysqld.1.err after tests:
       group_replication.gr_majority_loss_restart
      --------------------------------------------------------------------------
      ==34406==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 10 byte(s) in 1 object(s) allocated from:
          #0 0x7f726fb7a108 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xee108)
          #1 0x7f7257b873bc  (<unknown module>)
          #2 0x7f7257b8caa2  (<unknown module>)
          #3 0x7f7257b95540  (<unknown module>)
          #4 0x7f7257b6b6fd  (<unknown module>)
          #5 0x7f7257b6e77f  (<unknown module>)
          #6 0x7f7257b76357  (<unknown module>)
          #7 0x7f7257b7c06a  (<unknown module>)
          #8 0x7f7257b881e4  (<unknown module>)
          #9 0x7f7257ba58b4  (<unknown module>)
          #10 0x7f7257b6b24c  (<unknown module>)
          #11 0x7f7257c49b0e  (<unknown module>)
          #12 0x7f7257bdbc06  (<unknown module>)
          #13 0x7f726f8746da in start_thread /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463
      
      Direct leak of 10 byte(s) in 1 object(s) allocated from:
          #0 0x7f726fb7a108 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xee108)
          #1 0x7f7257b873bc  (<unknown module>)
          #2 0x7f7257b8caa2  (<unknown module>)
          #3 0x7f7257b70f72  (<unknown module>)
          #4 0x7f7257b788fa  (<unknown module>)
          #5 0x7f7257b8095a  (<unknown module>)
          #6 0x7f7257ba58b4  (<unknown module>)
          #7 0x7f7257b6b24c  (<unknown module>)
          #8 0x7f7257c49b0e  (<unknown module>)
          #9 0x7f7257bdbc06  (<unknown module>)
          #10 0x7f726f8746da in start_thread /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463
      
      SUMMARY: AddressSanitizer: 20 byte(s) leaked in 2 allocation(s).
      safe_process[34405]: Child process: 34406, exit: 42
      
      [100%] sanitize_report                          [ fail ]
              Test ended at 2019-08-08 12:23:09
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yura.sorokin Yura Sorokin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 30 minutes
                  30m

                  Smart Checklist