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

Galera: Valgrind warnings "blocks are still reachable" in wsrep_init_startup on MTR tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.28a-galera
    • Fix Version/s: 5.5.34-galera
    • Component/s: None
    • Labels:

      Description

      ==6572== 8 bytes in 1 blocks are still reachable in loss record 1 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0xA20876: wsrep_dummy_loader (wsrep_dummy.c:360)
      ==6572==    by 0xA2000F: wsrep_load (wsrep_loader.c:134)
      ==6572==    by 0x66A813: wsrep_init() (wsrep_mysqld.cc:425)
      ==6572==    by 0x66B317: wsrep_init_startup(bool) (wsrep_mysqld.cc:562)
      ==6572==    by 0x524FAE: mysqld_main(int, char**) (mysqld.cc:5665)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)
      ==6572== 9 bytes in 1 blocks are definitely lost in loss record 2 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0x9EAD61: my_malloc (my_malloc.c:41)
      ==6572==    by 0x9EAF6A: my_strdup (my_malloc.c:137)
      ==6572==    by 0x5230F2: init_common_variables() (mysqld.cc:3646)
      ==6572==    by 0x523E9F: mysqld_main(int, char**) (mysqld.cc:5487)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)
      ==6572== 17 bytes in 1 blocks are still reachable in loss record 3 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0x9EAD61: my_malloc (my_malloc.c:41)
      ==6572==    by 0x9EAF6A: my_strdup (my_malloc.c:137)
      ==6572==    by 0x671924: wsrep_init_vars() (wsrep_var.cc:45)
      ==6572==    by 0x5238F4: init_common_variables() (mysqld.cc:8192)
      ==6572==    by 0x523E9F: mysqld_main(int, char**) (mysqld.cc:5487)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)
      ==6572== 40 bytes in 1 blocks are still reachable in loss record 4 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0x9EAD61: my_malloc (my_malloc.c:41)
      ==6572==    by 0x9EAF6A: my_strdup (my_malloc.c:137)
      ==6572==    by 0x671950: wsrep_init_vars() (wsrep_var.cc:47)
      ==6572==    by 0x5238F4: init_common_variables() (mysqld.cc:8192)
      ==6572==    by 0x523E9F: mysqld_main(int, char**) (mysqld.cc:5487)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)
      ==6572== 161 bytes in 1 blocks are still reachable in loss record 6 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0x9EAD61: my_malloc (my_malloc.c:41)
      ==6572==    by 0x75EE7D: Format_description_log_event::Format_description_log_event(unsigned char, char const*) (log_event.cc:4265)
      ==6572==    by 0x66A64D: wsrep_init() (wsrep_mysqld.cc:422)
      ==6572==    by 0x66B317: wsrep_init_startup(bool) (wsrep_mysqld.cc:562)
      ==6572==    by 0x524FAE: mysqld_main(int, char**) (mysqld.cc:5665)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)
      ==6572== 192 bytes in 1 blocks are still reachable in loss record 7 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0x9EAD61: my_malloc (my_malloc.c:41)
      ==6572==    by 0x66A63B: wsrep_init() (log_event.h:1109)
      ==6572==    by 0x66B317: wsrep_init_startup(bool) (wsrep_mysqld.cc:562)
      ==6572==    by 0x524FAE: mysqld_main(int, char**) (mysqld.cc:5665)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)
      ==6572== 304 bytes in 1 blocks are still reachable in loss record 9 of 9
      ==6572==    at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
      ==6572==    by 0xA1FFE7: wsrep_load (wsrep_loader.c:128)
      ==6572==    by 0x66A813: wsrep_init() (wsrep_mysqld.cc:425)
      ==6572==    by 0x66B317: wsrep_init_startup(bool) (wsrep_mysqld.cc:562)
      ==6572==    by 0x524FAE: mysqld_main(int, char**) (mysqld.cc:5665)
      ==6572==    by 0x605730C: (below main) (libc-start.c:226)

      revision-id: sergii@pisem.net-20121220113437-x6wi7x1taracdrdn
      revno: 3365
      branch-nick: maria-5.5-galera

      Built with cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo && make

      To reproduce, run

      perl mysql-test-run.pl main.connect --valgrind-mysqld

      Many (probably most, if not all) other MTR tests cause the same problem.

        Attachments

          Activity

            People

            Assignee:
            nirbhay_c Nirbhay Choubey (Inactive)
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: