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

Memory leak in innochecksum utility detected by ASan

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7, 8.0, Not 5.5, Not 5.6
    • Fix Version/s: 5.7.26-29, 8.0.16-7
    • Component/s: None
    • Labels:

      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.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  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