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

Description

The following MTR test case generates

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

Valgrind error

encryption.innodb-force-corrupt
==11315== Thread 9: ==11315== Syscall param io_submit(PWRITE) points to uninitialised byte(s) ==11315== at 0x503F687: io_submit (in /lib/x86_64-linux-gnu/libaio.so.1.0.1) ==11315== by 0x1B6D37A: AIO::linux_dispatch(Slot*, bool) (os0file.cc:3042) ==11315== 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) ==11315== 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) ==11315== 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) ==11315== by 0x1D9D1CB: buf_flush_write_block_low(buf_page_t*, buf_flush_t, bool) (buf0flu.cc:1089) ==11315== by 0x1D9D800: buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) (buf0flu.cc:1246) ==11315== by 0x1D9E0B2: buf_flush_try_neighbors(page_id_t const&, buf_flush_t, unsigned long, unsigned long) (buf0flu.cc:1475) ==11315== by 0x1D9E54C: buf_flush_page_and_try_neighbors(buf_page_t*, buf_flush_t, unsigned long, unsigned long*) (buf0flu.cc:1566) ==11315== by 0x1D9F77E: buf_do_flush_list_batch(buf_pool_t*, unsigned long, unsigned long) (buf0flu.cc:1855) ==11315== by 0x1D9FD5D: buf_flush_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long) (buf0flu.cc:1935) ==11315== by 0x1DA01AD: buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, unsigned long*) (buf0flu.cc:2080) ==11315== by 0x1DA37C4: pc_flush_slot() (buf0flu.cc:2936) ==11315== by 0x1DA4D16: buf_flush_page_cleaner_coordinator (buf0flu.cc:3418) ==11315== by 0x63966DA: start_thread (pthread_create.c:463) ==11315== by 0x700E88E: clone (clone.S:95) ==11315== Address 0xae8025e is 270 bytes inside a block of size 21,323 alloc'd ==11315== at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==11315== by 0x1AAD0D9: ut_allocator<unsigned char>::allocate(unsigned long, unsigned char const*, char const*, bool, bool) (ut0new.h:359) ==11315== by 0x1B73E0A: os_aio_init(unsigned long, unsigned long, unsigned long) (os0file.cc:7210) ==11315== by 0x1CA7D8B: innobase_start_or_create_for_mysql() (srv0start.cc:1926) ==11315== by 0x1A8390E: innobase_init(void*) (ha_innodb.cc:4634) ==11315== by 0xF7D89C: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873) ==11315== by 0x16359DC: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252) ==11315== by 0x16366F3: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615) ==11315== by 0xED0B16: init_server_components() (mysqld.cc:4350) ==11315== by 0xED24AC: mysqld_main(int, char**) (mysqld.cc:5131) ==11315== by 0xEC8989: main (main.cc:25)

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Labels

Time tracking

1h logged

Fix versions

Affects versions

Priority

Smart Checklist

Created October 31, 2018 at 11:15 PM
Updated March 6, 2024 at 12:43 PM
Resolved November 14, 2018 at 9:52 AM