Conditional jump or move depends on uninitialised value(s): binary_log::Log_event_footer::event_checksum_test

Description

Valgrind on CentOS 6, test binlog_encryption.mysqlbinlog 'mix':

181119 10:28:49 binlog_encryption.mysqlbinlog 'mix' w2 [ fail ] Found warnings/errors in server log file! Test ended at 2018-11-19 10:28:49 line ==925== Thread 36: ==925== Conditional jump or move depends on uninitialised value(s) ==925== at 0x3B2C80F: binary_log::Log_event_footer::event_checksum_test(unsigned char*, unsigned long, binary_log::enum_binlog_checksum_alg) (binlog_event.cpp:163) ==925== by 0x3702B06: Log_event::read_log_event(IO_CACHE*, String*, Format_description_log_event const*, mysql_mutex_t*, binary_log::enum_binlog_checksum_alg, char const*, bool*, char*) (log_event.cc:1562) ==925== by 0x3780AF5: Binlog_sender::read_event(IO_CACHE*, binary_log::enum_binlog_checksum_alg, unsigned char**, unsigned int*) (rpl_binlog_sender.cc:1139) ==925== by 0x377D98D: Binlog_sender::send_events(IO_CACHE*, unsigned long long) (rpl_binlog_sender.cc:429) ==925== by 0x377D731: Binlog_sender::send_binlog(IO_CACHE*, unsigned long long) (rpl_binlog_sender.cc:364) ==925== by 0x377D0BD: Binlog_sender::run() (rpl_binlog_sender.cc:258) ==925== by 0x3778336: mysql_binlog_send(THD*, char*, unsigned long long, Gtid_set*, unsigned int) (rpl_master.cc:1009) ==925== by 0x3777D8C: com_binlog_dump(THD*, char*, unsigned long) (rpl_master.cc:937) ==925== by 0x29C8851: dispatch_command(THD*, COM_DATA const*, enum_server_command) (sql_parse.cc:1849) ==925== by 0x29C63E0: do_command(THD*) (sql_parse.cc:1262) ==925== by 0x2B66D7D: handle_connection (connection_handler_per_thread.cc:317) ==925== by 0x3BEFEEB: pfs_spawn_thread (pfs.cc:2836) ==925== by 0x70E2AA0: start_thread (in /lib64/libpthread-2.12.so) ==925== by 0x8E36C4C: clone (in /lib64/libc-2.12.so) ==925== Use of uninitialised value of size 8 ==925== at 0x81927C5: crc32 (in /lib64/libz.so.1.2.3) ==925== by 0x2A8C972: binary_log::checksum_crc32(unsigned int, unsigned char const*, unsigned long) (binlog_event.h:433) ==925== by 0x3B2C8BC: binary_log::Log_event_footer::event_checksum_test(unsigned char*, unsigned long, binary_log::enum_binlog_checksum_alg) (binlog_event.cpp:188) ==925== by 0x3702B06: Log_event::read_log_event(IO_CACHE*, String*, Format_description_log_event const*, mysql_mutex_t*, binary_log::enum_binlog_checksum_alg, char const*, bool*, char*) (log_event.cc:1562) ==925== by 0x3780AF5: Binlog_sender::read_event(IO_CACHE*, binary_log::enum_binlog_checksum_alg, unsigned char**, unsigned int*) (rpl_binlog_sender.cc:1139) ==925== by 0x377D98D: Binlog_sender::send_events(IO_CACHE*, unsigned long long) (rpl_binlog_sender.cc:429) ==925== by 0x377D731: Binlog_sender::send_binlog(IO_CACHE*, unsigned long long) (rpl_binlog_sender.cc:364) ==925== by 0x377D0BD: Binlog_sender::run() (rpl_binlog_sender.cc:258) ==925== by 0x3778336: mysql_binlog_send(THD*, char*, unsigned long long, Gtid_set*, unsigned int) (rpl_master.cc:1009) ==925== by 0x3777D8C: com_binlog_dump(THD*, char*, unsigned long) (rpl_master.cc:937) ==925== by 0x29C8851: dispatch_command(THD*, COM_DATA const*, enum_server_command) (sql_parse.cc:1849) ==925== by 0x29C63E0: do_command(THD*) (sql_parse.cc:1262) ==925== by 0x2B66D7D: handle_connection (connection_handler_per_thread.cc:317) ==925== by 0x3BEFEEB: pfs_spawn_thread (pfs.cc:2836) ==925== by 0x70E2AA0: start_thread (in /lib64/libpthread-2.12.so) ==925== by 0x8E36C4C: clone (in /lib64/libc-2.12.so)

Environment

None

Attachments

3
  • 11 Dec 2018, 11:08 AM
  • 11 Dec 2018, 11:08 AM
  • 08 Dec 2018, 07:27 AM

Smart Checklist

Activity

Show:

Julia Vural March 4, 2025 at 9:07 PM

It appears that this issue is no longer being worked on, so we are closing it for housekeeping purposes. If you believe the issue still exists, please open a new ticket after confirming it's present in the latest release.

Peter Schwaller December 11, 2018 at 1:38 PM

During 8.0 triage, classification changed to On Hold (deferred).  The valgrind error itself is not an important one (relative to other valgrind issues) and should not be seen by users.

Laurynas Biveinis December 11, 2018 at 11:38 AM

Thank you Ramesh. Unfortunately, this testing also requires Valgrind-built binaries.

Ramesh Sivaraman December 11, 2018 at 11:08 AM

 I had initiated valgrind binlog  MTR run for https://perconadev.atlassian.net/browse/PS-5#icft=PS-5.7 and MS-5.7. Attached output. 

Laurynas Biveinis December 11, 2018 at 7:08 AM

This needs the aforementioned testing first, then triage. I am sorry if is not the right person to ask.

Won't Do

Details

Assignee

Reporter

Time tracking

9m logged

Affects versions

Priority

Smart Checklist

Created November 26, 2018 at 12:10 PM
Updated March 4, 2025 at 9:07 PM
Resolved March 4, 2025 at 9:07 PM