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

Valgrind builder produces endless warnings after switching to OpenSSL

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0(EOL), 10.1(EOL), 10.2(EOL)
    • 10.0.28, 10.1.19, 10.2.3
    • Tests
    • None

    Description

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

      ==13603== Conditional jump or move depends on uninitialised value(s)
      ==13603==    at 0x5B8F17B: BN_num_bits_word (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x5B8F2A4: BN_num_bits (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x5B8DF29: BN_mod_exp_mont_consttime (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x5BB50DB: ??? (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x58CD797: ssl3_ctx_ctrl (in /usr/lib64/libssl.so.0.9.8)
      ==13603==    by 0x11E5B5D: new_VioSSLFd (viosslfactories.c:269)
      ==13603==    by 0x11E5D31: new_VioSSLAcceptorFd (viosslfactories.c:335)
      ==13603==    by 0x63BDED: init_ssl() (mysqld.cc:4870)
      ==13603==    by 0x645437: mysqld_main(int, char**) (mysqld.cc:5868)
      ==13603==    by 0x633D06: main (main.cc:25)
      ==13603== Use of uninitialised value of size 8
      ==13603==    at 0x5B8F18C: BN_num_bits_word (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x5B8F2A4: BN_num_bits (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x5B8DF29: BN_mod_exp_mont_consttime (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x5BB50DB: ??? (in /usr/lib64/libcrypto.so.0.9.8)
      ==13603==    by 0x58CD797: ssl3_ctx_ctrl (in /usr/lib64/libssl.so.0.9.8)
      ==13603==    by 0x11E5B5D: new_VioSSLFd (viosslfactories.c:269)
      ==13603==    by 0x11E5D31: new_VioSSLAcceptorFd (viosslfactories.c:335)
      ==13603==    by 0x63BDED: init_ssl() (mysqld.cc:4870)
      ==13603==    by 0x645437: mysqld_main(int, char**) (mysqld.cc:5868)
      ==13603==    by 0x633D06: main (main.cc:25)
      

      and alike.

      It's probably related to the old version of OpenSSL.

      Attachments

        Activity

          diff --git a/mysql-test/valgrind.supp b/mysql-test/valgrind.supp
          index b2b264e..27728b3 100644
          --- a/mysql-test/valgrind.supp
          +++ b/mysql-test/valgrind.supp
          @@ -823,6 +823,33 @@
              fun: gethostbyaddr_r
           }
           
          +#
          +# MDEV-11061
          +# Valgrind builder produces endless warnings after switching to OpenSSL
          +#
          +
          +{
          +   OpenSSL 0.9.8 - uninitialised values - jump
          +   Memcheck:Cond
          +   fun:BN_*
          +   ...
          +   fun:ssl3_ctx_ctrl
          +   fun:new_VioSSLFd
          +   fun:new_VioSSLAcceptorFd
          +   ...
          +}
          +
          +{
          +   OpenSSL 0.9.8 - uninitialised values - use
          +   Memcheck:Value8
          +   fun:BN_*
          +   ...
          +   fun:ssl3_ctx_ctrl
          +   fun:new_VioSSLFd
          +   fun:new_VioSSLAcceptorFd
          +   ...
          +}
          +
           # suppressions for glibc 2.6.1 64 bit
           
           {
          

          elenst Elena Stepanova added a comment - diff --git a/mysql-test/valgrind.supp b/mysql-test/valgrind.supp index b2b264e..27728b3 100644 --- a/mysql-test/valgrind.supp +++ b/mysql-test/valgrind.supp @@ -823,6 +823,33 @@ fun: gethostbyaddr_r } +# +# MDEV-11061 +# Valgrind builder produces endless warnings after switching to OpenSSL +# + +{ + OpenSSL 0.9.8 - uninitialised values - jump + Memcheck:Cond + fun:BN_* + ... + fun:ssl3_ctx_ctrl + fun:new_VioSSLFd + fun:new_VioSSLAcceptorFd + ... +} + +{ + OpenSSL 0.9.8 - uninitialised values - use + Memcheck:Value8 + fun:BN_* + ... + fun:ssl3_ctx_ctrl + fun:new_VioSSLFd + fun:new_VioSSLAcceptorFd + ... +} + # suppressions for glibc 2.6.1 64 bit {

          People

            elenst Elena Stepanova
            elenst Elena Stepanova
            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.