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

LP #1314138: Memory leak in slow query log rotate

    Details

      Description

      **Reported in Launchpad by Laurynas Biveinis last update 09-07-2014 07:11:29

      $ ./mysql-test-run --valgrind percona_slowlog_size_limits

      182 bytes in 2 blocks are definitely lost in loss record 71 of 103
      at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x9068B6: my_malloc (my_malloc.c:38)
      by 0x906C9C: my_strdup (my_malloc.c:152)
      by 0x82DB9B: MYSQL_LOG::open(unsigned int, char const*, enum_log_type, char const*, cache_type, bool) (log.cc:2354)
      by 0x7157D6: MYSQL_QUERY_LOG::open_slow_log(char const*) (log.h:320)
      by 0x706F48: reopen_slow_log(char*) (sys_vars.cc:3173)
      by 0x706E1D: fix_log(char*, char const, char const*, bool, void (char*)) (sys_vars.cc:3149)
      by 0x706F98: fix_slow_log_file(sys_var*, THD*, enum_var_type) (sys_vars.cc:3178)
      by 0x56A713: sys_var::update(THD*, set_var*) (set_var.cc:201)
      by 0x56B8AD: set_var::update(THD*) (set_var.cc:677)
      by 0x56B42B: sql_set_variables(THD*, List<set_var_base>*) (set_var.cc:577)
      by 0x5FE0A9: mysql_execute_command(THD*) (sql_parse.cc:3427)
      by 0x604AF9: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5922)
      by 0x5F8201: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1079)
      by 0x5F741A: do_command(THD*) (sql_parse.cc:789)
      by 0x6EFCF7: do_handle_one_connection(THD*) (sql_connect.cc:1409)

      11,830 bytes in 130 blocks are definitely lost in loss record 88 of 103
      at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x9068B6: my_malloc (my_malloc.c:38)
      by 0x906C9C: my_strdup (my_malloc.c:152)
      by 0x82DB9B: MYSQL_LOG::open(unsigned int, char const*, enum_log_type, char const*, cache_type, bool) (log.cc:2354)
      by 0x830824: MYSQL_QUERY_LOG::new_file() (log.cc:3022)
      by 0x830567: MYSQL_QUERY_LOG::rotate(unsigned long, bool*) (log.cc:2968)
      by 0x8303F3: MYSQL_QUERY_LOG::write(THD*, unsigned long long, long, char const*, unsigned int, unsigned long long, unsigned long long, bool, char const*, unsigned int) (log.cc:2948)
      by 0x82A92B: Log_to_file_event_handler::log_slow(THD*, unsigned long long, long, char const*, unsigned int, unsigned long long, unsigned long long, bool, char const*, unsigned int) (log.cc:963)
      by 0x82B43A: LOGGER::slow_log_print(THD*, char const*, unsigned int, unsigned long long) (log.cc:1280)
      by 0x836AB1: slow_log_print(THD*, char const*, unsigned int, unsigned long long) (log.cc:5433)
      by 0x5F9C40: log_slow_statement(THD*) (sql_parse.cc:1641)
      by 0x5F95B9: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1477)
      by 0x5F741A: do_command(THD*) (sql_parse.cc:789)
      by 0x6EFCF7: do_handle_one_connection(THD*) (sql_connect.cc:1409)
      by 0x6EF826: handle_one_connection (sql_connect.cc:1324)
      by 0x9BAB05: pfs_spawn_thread (pfs.cc:1015)

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: