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

Valgrind: misused UNIV_MEM_ALLOC after ut_zalloc_nokey

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0, 5.7.23-23
    • Fix Version/s: 8.0.13-3, 5.7.24-26
    • Component/s: None
    • Labels:

      Description

      There is wrongly used UNIV_MEM_ALLOC (equals to VALGRIND_MAKE_MEM_UNDEFINED) after memory block was zeroed with ut_zalloc_nokey() in 5.7.24:
      https://github.com/mysql/mysql-server/blob/5.7/storage/innobase/include/buf0buf.ic#L773

      and 8.0.13:
      https://github.com/mysql/mysql-server/blob/8.0/storage/innobase/include/buf0buf.ic#L722

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                przemyslaw.skibinski Przemyslaw Skibinski
              • 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 - 4 hours
                  4h