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

Valgrind: Syscall param io_submit(PWRITE) points to uninitialised byte(s): buf_dblwr_write_block_to_datafile()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.7
    • Fix Version/s: 5.7.24-26
    • Component/s: None
    • Labels:

      Description

      The following MTR test case generates

      Syscall param io_submit(PWRITE) points to uninitialised byte(s)
      

      Valgrind error

      encryption.innodb-key-rotation-disable
      
      ==9857== Thread 9:
      ==9857== Syscall param io_submit(PWRITE) points to uninitialised byte(s)
      ==9857==    at 0x503F687: io_submit (in /lib/x86_64-linux-gnu/libaio.so.1.0.1)
      ==9857==    by 0x1B6D37A: AIO::linux_dispatch(Slot*, bool) (os0file.cc:3042)
      ==9857==    by 0x1B751E6: os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*, unsigned long, trx_t*, bool) (os0file.cc:7979)
      ==9857==    by 0x1E12101: pfs_os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*, unsigned long, trx_t*, bool, char const*, unsigned long) (os0file.ic:295)
      ==9857==    by 0x1E258D4: _fil_io(IORequest const&, bool, page_id_t const&, page_size_t const&, unsigned long, unsigned long, void*, void*, trx_t*, bool) (fil0fil.cc:6288)
      ==9857==    by 0x1D92B65: buf_dblwr_write_block_to_datafile(buf_page_t const*, bool) (buf0dblwr.cc:1177)
      ==9857==    by 0x1D93289: buf_dblwr_flush_buffered_writes(unsigned long) (buf0dblwr.cc:1354)
      ==9857==    by 0x1DA000F: buf_flush_end(buf_pool_t*, buf_flush_t, unsigned long) (buf0flu.cc:2011)
      ==9857==    by 0x1DA01CA: buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, unsigned long*) (buf0flu.cc:2082)
      ==9857==    by 0x1DA37C4: pc_flush_slot() (buf0flu.cc:2936)
      ==9857==    by 0x1DA4D16: buf_flush_page_cleaner_coordinator (buf0flu.cc:3418)
      ==9857==    by 0x63966DA: start_thread (pthread_create.c:463)
      ==9857==    by 0x700E88E: clone (clone.S:95)
      ==9857==  Address 0xab4bc5e is 510 bytes inside a block of size 21,323 alloc'd
      ==9857==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==9857==    by 0x1AAD0D9: ut_allocator<unsigned char>::allocate(unsigned long, unsigned char const*, char const*, bool, bool) (ut0new.h:359)
      ==9857==    by 0x1B73E0A: os_aio_init(unsigned long, unsigned long, unsigned long) (os0file.cc:7210)
      ==9857==    by 0x1CA7D8B: innobase_start_or_create_for_mysql() (srv0start.cc:1926)
      ==9857==    by 0x1A8390E: innobase_init(void*) (ha_innodb.cc:4634)
      ==9857==    by 0xF7D89C: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
      ==9857==    by 0x16359DC: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
      ==9857==    by 0x16366F3: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      ==9857==    by 0xED0B16: init_server_components() (mysqld.cc:4350)
      ==9857==    by 0xED24AC: mysqld_main(int, char**) (mysqld.cc:5131)
      ==9857==    by 0xEC8989: main (main.cc:25)
      

        Attachments

          Activity

            People

            • Assignee:
              przemyslaw.skibinski Przemyslaw Skibinski
              Reporter:
              yura.sorokin Yura Sorokin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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