[MDEV-11061] Valgrind builder produces endless warnings after switching to OpenSSL Created: 2016-10-14  Updated: 2016-12-20  Resolved: 2016-12-20

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.0, 10.1, 10.2
Fix Version/s: 10.0.28, 10.1.19, 10.2.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Elena Stepanova
Resolution: Fixed Votes: 0
Labels: 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.



 Comments   
Comment by Elena Stepanova [ 2016-10-14 ]

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
 
 {

Generated at Thu Feb 08 07:47:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.