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

main.ssl_compress fails with valgrind warnings in buildbot

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 10.0(EOL), 10.1(EOL), 10.2(EOL)
    • N/A
    • SSL, Tests
    • None

    Description

      The test started failing in valgrind builder after it was switched to OpenSSL. It fails in the same fashion outside buildbot on work machine.
      I assume it has something to do with the old version of OpenSSL that the machine has. However, unlike other tests which were failing in libcrypto and libssl, which are now suppressed, this one also produces some warnings which look MariaDB-specific. I can suppress them as well, but I need a confirmation they're not a real problem.

      http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/9520/steps/test/logs/stdio

      Usual warnings

      ==15875==    at 0x4C291AA: is_overlap (vg_replace_strmem.c:128)
      ==15875==    by 0x4C291AA: memcpy (vg_replace_strmem.c:1019)
      ==15875==    by 0x5259C25: inflate (in /lib64/libz.so.1.2.3)
      ==15875==    by 0x5C11094: ??? (in /usr/lib64/libcrypto.so.0.9.8)
      ==15875==    by 0x5C10531: COMP_expand_block (in /usr/lib64/libcrypto.so.0.9.8)
      ==15875==    by 0x58D012D: ssl3_do_uncompress (in /usr/lib64/libssl.so.0.9.8)
      ==15875==    by 0x58D09FF: ssl3_read_bytes (in /usr/lib64/libssl.so.0.9.8)
      ==15875==    by 0x58CD0A0: ??? (in /usr/lib64/libssl.so.0.9.8)
      ==15875==    by 0xF03675: vio_ssl_read (viossl.c:147)
      ==15875==    by 0x5B23B0: my_real_read(st_net*, unsigned long*, char) (net_serv.cc:874)
      ==15875==    by 0x5B2E26: my_net_read_packet (net_serv.cc:1239)
      ==15875==    by 0x674A62: do_command(THD*) (sql_parse.cc:931)
      ==15875==    by 0x78A8F4: do_handle_one_connection(THD*) (sql_connect.cc:1378)
      ==15875==    by 0x78A9E5: handle_one_connection (sql_connect.cc:1293)
      ==15875==    by 0xBC04AF: pfs_spawn_thread (pfs.cc:1860)
      ==15875==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
      ==15875==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)
      ==15875== Conditional jump or move depends on uninitialised value(s)
      ==15875==    at 0x4C291CC: memcpy (vg_replace_strmem.c:1019)
      ==15875==    by 0x5259C25: inflate (in /lib64/libz.so.1.2.3)
      ==15875==    by 0x5C11094: ??? (in /usr/lib64/libcrypto.so.0.9.8)
      ==15875==    by 0x5C10531: COMP_expand_block (in /usr/lib64/libcrypto.so.0.9.8)
      ==15875==    by 0x58D012D: ssl3_do_uncompress (in /usr/lib64/libssl.so.0.9.8)
      ==15875==    by 0x58D09FF: ssl3_read_bytes (in /usr/lib64/libssl.so.0.9.8)
      ==15875==    by 0x58CD0A0: ??? (in /usr/lib64/libssl.so.0.9.8)
      ==15875==    by 0xF03675: vio_ssl_read (viossl.c:147)
      ==15875==    by 0x5B23B0: my_real_read(st_net*, unsigned long*, char) (net_serv.cc:874)
      ==15875==    by 0x5B2E26: my_net_read_packet (net_serv.cc:1239)
      ==15875==    by 0x674A62: do_command(THD*) (sql_parse.cc:931)
      ==15875==    by 0x78A8F4: do_handle_one_connection(THD*) (sql_connect.cc:1378)
      ==15875==    by 0x78A9E5: handle_one_connection (sql_connect.cc:1293)
      ==15875==    by 0xBC04AF: pfs_spawn_thread (pfs.cc:1860)
      ==15875==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
      ==15875==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)
      

      Suspicious warnings

      ==17257== Use of uninitialised value of size 8
      ==17257==    at 0x4C29308: memcpy (vg_replace_strmem.c:1019)
      ==17257==    by 0xBB9D83: set_statement_text_v1 (pfs.cc:4629)
      ==17257==    by 0x660B34: inline_mysql_set_statement_text(PSI_statement_locker*, char const*, unsigned int) (mysql_statement.h:175)
      ==17257==    by 0x673330: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1303)
      ==17257==    by 0x674CA5: do_command(THD*) (sql_parse.cc:999)
      ==17257==    by 0x78A8F4: do_handle_one_connection(THD*) (sql_connect.cc:1378)
      ==17257==    by 0x78A9E5: handle_one_connection (sql_connect.cc:1293)
      ==17257==    by 0xBC04AF: pfs_spawn_thread (pfs.cc:1860)
      ==17257==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
      ==17257==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)
      ==17257== Conditional jump or move depends on uninitialised value(s)
      ==17257==    at 0x4C2936B: memcpy (vg_replace_strmem.c:1019)
      ==17257==    by 0x676E64: Query_arena::memdup_w_gap(void const*, unsigned long, unsigned int) (sql_class.h:894)
      ==17257==    by 0x66901E: alloc_query(THD*, char const*, unsigned int) (sql_parse.cc:2016)
      ==17257==    by 0x67323A: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1290)
      ==17257==    by 0x674CA5: do_command(THD*) (sql_parse.cc:999)
      ==17257==    by 0x78A8F4: do_handle_one_connection(THD*) (sql_connect.cc:1378)
      ==17257==    by 0x78A9E5: handle_one_connection (sql_connect.cc:1293)
      ==17257==    by 0xBC04AF: pfs_spawn_thread (pfs.cc:1860)
      ==17257==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
      ==17257==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)
      ==17257== Conditional jump or move depends on uninitialised value(s)
      ==17257==    at 0x948EC9: MYSQL_QUERY_LOG::write(long, char const*, unsigned int, int, char const*, unsigned int, char const*, unsigned int) (log.cc:2790)
      ==17257==    by 0x955EFE: Log_to_file_event_handler::log_general(THD*, my_hrtime_t, char const*, unsigned int, int, char const*, unsigned int, char const*, unsigned int, charset_info_st const*) (log.cc:1050)
      ==17257==    by 0x955469: LOGGER::general_log_write(THD*, enum_server_command, char const*, unsigned int) (log.cc:1356)
      ==17257==    by 0x95552B: general_log_write(THD*, enum_server_command, char const*, unsigned int) (log.cc:6119)
      ==17257==    by 0x67329B: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1297)
      ==17257==    by 0x674CA5: do_command(THD*) (sql_parse.cc:999)
      ==17257==    by 0x78A8F4: do_handle_one_connection(THD*) (sql_connect.cc:1378)
      ==17257==    by 0x78A9E5: handle_one_connection (sql_connect.cc:1293)
      ==17257==    by 0xBC04AF: pfs_spawn_thread (pfs.cc:1860)
      ==17257==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
      ==17257==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.