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

Valgrind: Syscall param pwrite64(buf) points to uninitialised byte(s): os_fusionio_get_sector_size()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.7.23-23
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The following three MTR test cases generate

      Syscall param pwrite64(buf) points to uninitialised byte(s)
      

      Valgrind error

      innodb.check_sector_size
      innodb.create_isl_with_direct
      innodb.percona_changed_page_bmp_flush
      
      ==8405== Syscall param pwrite64(buf) points to uninitialised byte(s)
      ==8405==    at 0x63A104F: pwrite (pwrite64.c:29)
      ==8405==    by 0x1B73A55: os_fusionio_get_sector_size() (os0file.cc:7148)
      ==8405==    by 0x1B73E64: os_aio_init(unsigned long, unsigned long, unsigned long) (os0file.cc:7218)
      ==8405==    by 0x1CA7D8B: innobase_start_or_create_for_mysql() (srv0start.cc:1926)
      ==8405==    by 0x1A8390E: innobase_init(void*) (ha_innodb.cc:4634)
      ==8405==    by 0xF7D89C: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
      ==8405==    by 0x16359DC: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
      ==8405==    by 0x16366F3: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      ==8405==    by 0xED0B16: init_server_components() (mysqld.cc:4350)
      ==8405==    by 0xED24AC: mysqld_main(int, char**) (mysqld.cc:5131)
      ==8405==    by 0xEC8989: main (main.cc:25)
      ==8405==  Address 0xab7ac00 is 400 bytes inside a block of size 8,216 alloc'd
      ==8405==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==8405==    by 0x1AAD0D9: ut_allocator<unsigned char>::allocate(unsigned long, unsigned char const*, char const*, bool, bool) (ut0new.h:359)
      ==8405==    by 0x1B73A01: os_fusionio_get_sector_size() (os0file.cc:7143)
      ==8405==    by 0x1B73E64: os_aio_init(unsigned long, unsigned long, unsigned long) (os0file.cc:7218)
      ==8405==    by 0x1CA7D8B: innobase_start_or_create_for_mysql() (srv0start.cc:1926)
      ==8405==    by 0x1A8390E: innobase_init(void*) (ha_innodb.cc:4634)
      ==8405==    by 0xF7D89C: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
      ==8405==    by 0x16359DC: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
      ==8405==    by 0x16366F3: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      ==8405==    by 0xED0B16: init_server_components() (mysqld.cc:4350)
      ==8405==    by 0xED24AC: mysqld_main(int, char**) (mysqld.cc:5131)
      ==8405==    by 0xEC8989: main (main.cc:25)
      ==8540== Syscall param pwrite64(buf) points to uninitialised byte(s)
      ==8540==    at 0x63A104F: pwrite (pwrite64.c:29)
      ==8540==    by 0x1B73A55: os_fusionio_get_sector_size() (os0file.cc:7148)
      ==8540==    by 0x1B73E64: os_aio_init(unsigned long, unsigned long, unsigned long) (os0file.cc:7218)
      ==8540==    by 0x1CA7D8B: innobase_start_or_create_for_mysql() (srv0start.cc:1926)
      ==8540==    by 0x1A8390E: innobase_init(void*) (ha_innodb.cc:4634)
      ==8540==    by 0xF7D89C: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
      ==8540==    by 0x16359DC: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
      ==8540==    by 0x16366F3: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      ==8540==    by 0xED0B16: init_server_components() (mysqld.cc:4350)
      ==8540==    by 0xED24AC: mysqld_main(int, char**) (mysqld.cc:5131)
      ==8540==    by 0xEC8989: main (main.cc:25)
      ==8540==  Address 0xab7ac00 is 400 bytes inside a block of size 8,216 alloc'd
      ==8540==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==8540==    by 0x1AAD0D9: ut_allocator<unsigned char>::allocate(unsigned long, unsigned char const*, char const*, bool, bool) (ut0new.h:359)
      ==8540==    by 0x1B73A01: os_fusionio_get_sector_size() (os0file.cc:7143)
      ==8540==    by 0x1B73E64: os_aio_init(unsigned long, unsigned long, unsigned long) (os0file.cc:7218)
      ==8540==    by 0x1CA7D8B: innobase_start_or_create_for_mysql() (srv0start.cc:1926)
      ==8540==    by 0x1A8390E: innobase_init(void*) (ha_innodb.cc:4634)
      ==8540==    by 0xF7D89C: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
      ==8540==    by 0x16359DC: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
      ==8540==    by 0x16366F3: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      ==8540==    by 0xED0B16: init_server_components() (mysqld.cc:4350)
      ==8540==    by 0xED24AC: mysqld_main(int, char**) (mysqld.cc:5131)
      ==8540==    by 0xEC8989: main (main.cc:25)
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yura.sorokin Yura Sorokin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: