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

Memory leak in innochecksum utility detected by ASan

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 5.7.x, 8.0.x, Not 5.5.x, Not 5.6.x
    • 5.7.26-29, 8.0.16-7
    • None

    Description

      The following memory leak is detected by ASan in the 'innochecksum' utility

      ==55500==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 131072 byte(s) in 1 object(s) allocated from:
          #0 0x7fe4c14b2b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
          #1 0x560f2cdd5bf3 in main /mnt/hgfs/repos/mysql-server/extra/innochecksum.cc:1173
          #2 0x7fe4c03ccb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
      
      SUMMARY: AddressSanitizer: 131072 byte(s) leaked in 1 allocation(s).
      

      How to repeat:
      Build MySQL Server with Address Sanitizer enabled on Ubuntu 18.04 with default GCC (7.3.0)

      cmake ... -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON
      

      Run

      ./mtr --debug-server innodb.innodb-wl6045-linux
      

      Look at the content of the 'log/my_restart.err' file.

      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 - 1 hour, 30 minutes
                  1h 30m

                  Smart Checklist