Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-37556

Memory leak in proxy protocol with name resolution enabled

    XMLWordPrintable

Details

    • Notable changes
    • proxy protocol connections from remote host leaked memory, if DNS name resolution is allowed (skip_name_resolve is not set)
    • Q2/2026 Server Development

    Description

      Apologies for the vague title, but we're seeing an issue with a memory leak on a customer's instance, and we're having trouble finding the root cause.

      The issue exists on 10.6.19 and 10.6.22, and occurs with both the system malloc and jemalloc allocators. The memory problem builds very slowly, but requires a restart roughly once per week to free up the memory.

      I've attached the output of a few memleak reports. If there are any additional flags we need to pass in order to capture more information, let me know, and I can rerun the tool.

      Attachments

        1. march10crash.txt
          6 kB
          J Kyle Turner
        2. memleak_2.log
          1.97 MB
          J Kyle Turner
        3. memleak_3.log
          1.47 MB
          J Kyle Turner
        4. memleak_4.log
          1.45 MB
          J Kyle Turner
        5. memleak_fleetwatcher_prodb033_outfile.log
          22 kB
          Michael Amadi
        6. memleak.log
          962 kB
          J Kyle Turner
        7. screenshot-1.png
          69 kB
          Hans van Dijk
        8. screenshot-2.png
          151 kB
          Hans van Dijk

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              j_kyle J Kyle Turner
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.