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

Valgrind error with WolfSSL and encrypted binlog

    XMLWordPrintable

Details

    Description

      worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
      binlog_encryption.encrypted_slave 'cbc,innodb,mix' [ fail ] Found warnings/errors in server log file!
      Test ended at 2019-05-24 09:11:34
      line
      ==45105== Thread 31:
      ==45105== Invalid read of size 2
      ==45105== at 0x483F780: memmove (vg_replace_strmem.c:1271)
      ==45105== by 0xE77459: memcpy (string_fortified.h:34)
      ==45105== by 0xE77459: wolfSSL_EVP_CipherUpdate (evp.c:361)
      ==45105== by 0xE77459: wolfSSL_EVP_CipherUpdate (evp.c:307)
      ==45105== by 0xE6D376: update (my_crypt.cc:63)
      ==45105== by 0xE6D376: MyCTX_nopad::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*) (my_crypt.cc:121)
      ==45105== by 0xA769EC: encryption_crypt.constprop.0 (service_encryption.h:119)
      ==45105== by 0xA7CE7B: Log_event::read_log_event(st_io_cache*, String*, Format_description_log_event const*, enum_binlog_checksum_alg) (log_event.cc:1860)
      ==45105== by 0xA86CB9: Log_event::read_log_event(st_io_cache*, Format_description_log_event const*, char) (log_event.cc:1908)
      ==45105== by 0x6EA3B2: next_event (slave.cc:7535)
      ==45105== by 0x6EA3B2: exec_relay_log_event (slave.cc:4252)
      ==45105== by 0x6EA3B2: handle_slave_sql (slave.cc:5592)
      ==45105== by 0xE1AA92: pfs_spawn_thread (pfs.cc:1862)
      ==45105== by 0x48665A1: start_thread (in /usr/lib64/libpthread-2.29.so)
      ==45105== by 0x4D4D022: clone (in /usr/lib64/libc-2.29.so)
      ==45105== Address 0x17a58f58 is 0 bytes after a block of size 56 alloc'd
      ==45105== at 0x483880B: malloc (vg_replace_malloc.c:309)
      ==45105== by 0xE5527D: my_malloc (my_malloc.c:101)
      ==45105== by 0xA7CE01: Log_event::read_log_event(st_io_cache*, String*, Format_description_log_event const*, enum_binlog_checksum_alg) (log_event.cc:1851)
      ==45105== by 0xA86CB9: Log_event::read_log_event(st_io_cache*, Format_description_log_event const*, char) (log_event.cc:1908)
      ==45105== by 0x6EA3B2: next_event (slave.cc:7535)
      ==45105== by 0x6EA3B2: exec_relay_log_event (slave.cc:4252)
      ==45105== by 0x6EA3B2: handle_slave_sql (slave.cc:5592)
      ==45105== by 0xE1AA92: pfs_spawn_thread (pfs.cc:1862)
      ==45105== by 0x48665A1: start_thread (in /usr/lib64/libpthread-2.29.so)
      ==45105== by 0x4D4D022: clone (in /usr/lib64/libc-2.29.so)
      ==45105== Invalid read of size 8
      ==45105== at 0x483F725: memmove (vg_replace_strmem.c:1271)
      ==45105== by 0xE77459: memcpy (string_fortified.h:34)
      ==45105== by 0xE77459: wolfSSL_EVP_CipherUpdate (evp.c:361)
      ==45105== by 0xE77459: wolfSSL_EVP_CipherUpdate (evp.c:307)
      ==45105== by 0xE6D376: update (my_crypt.cc:63)
      ==45105== by 0xE6D376: MyCTX_nopad::update(unsigned char const*, unsigned int, unsigned char*, unsigned int*) (my_crypt.cc:121)
      ==45105== by 0xA769EC: encryption_crypt.constprop.0 (service_encryption.h:119)
      ==45105== by 0xA7CE7B: Log_event::read_log_event(st_io_cache*, String*, Format_description_log_event const*, enum_binlog_checksum_alg) (log_event.cc:1860)
      ==45105== by 0xA86CB9: Log_event::read_log_event(st_io_cache*, Format_description_log_event const*, char) (log_event.cc:1908)
      ==45105== by 0x6EA3B2: next_event (slave.cc:7535)
      ==45105== by 0x6EA3B2: exec_relay_log_event (slave.cc:4252)
      ==45105== by 0x6EA3B2: handle_slave_sql (slave.cc:5592)
      ==45105== by 0xE1AA92: pfs_spawn_thread (pfs.cc:1862)
      ==45105== by 0x48665A1: start_thread (in /usr/lib64/libpthread-2.29.so)
      ==45105== by 0x4D4D022: clone (in /usr/lib64/libc-2.29.so)
      ==45105== Address 0x17dea640 is 0 bytes after a block of size 128 alloc'd
      ==45105== at 0x483880B: malloc (vg_replace_malloc.c:309)
      ==45105== by 0xE5527D: my_malloc (my_malloc.c:101)
      ==45105== by 0xA7CE01: Log_event::read_log_event(st_io_cache*, String*, Format_description_log_event const*, enum_binlog_checksum_alg) (log_event.cc:1851)
      ==45105== by 0xA86CB9: Log_event::read_log_event(st_io_cache*, Format_description_log_event const*, char) (log_event.cc:1908)
      ==45105== by 0x6EA3B2: next_event (slave.cc:7535)
      ==45105== by 0x6EA3B2: exec_relay_log_event (slave.cc:4252)
      ==45105== by 0x6EA3B2: handle_slave_sql (slave.cc:5592)
      ==45105== by 0xE1AA92: pfs_spawn_thread (pfs.cc:1862)
      ==45105== by 0x48665A1: start_thread (in /usr/lib64/libpthread-2.29.so)
      ==45105== by 0x4D4D022: clone (in /usr/lib64/libc-2.29.so)
      ^ Found warnings in /home/wlad/server/xxx/mysql-test/var/log/mysqld.2.err

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.