[MDEV-11112] plugins.feedback_plugin_send fails with valgrind warnings in buildbot Created: 2016-10-23  Updated: 2017-01-05  Resolved: 2017-01-05

Status: Closed
Project: MariaDB Server
Component/s: Plugin - feedback, SSL, Tests
Affects Version/s: 10.0, 10.1, 10.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-7069 Fix buildbot failures in main server ... Stalled

 Description   

See also MDEV-11110.

The test started failing in valgrind builder after it was switched to OpenSSL.
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.

Usual warnings

==31002== Conditional jump or move depends on uninitialised value(s)
==31002==    at 0x4C291AA: is_overlap (vg_replace_strmem.c:128)
==31002==    by 0x4C291AA: memcpy (vg_replace_strmem.c:1019)
==31002==    by 0x58D1142: ssl3_read_bytes (in /usr/lib64/libssl.so.0.9.8)
==31002==    by 0x58D1905: ssl3_get_message (in /usr/lib64/libssl.so.0.9.8)
==31002==    by 0x58D1E6C: ssl3_get_finished (in /usr/lib64/libssl.so.0.9.8)
==31002==    by 0x58CC40F: ssl3_connect (in /usr/lib64/libssl.so.0.9.8)
==31002==    by 0x58D352D: ssl23_connect (in /usr/lib64/libssl.so.0.9.8)
==31002==    by 0xF03981: ssl_handshake_loop (viossl.c:294)
==31002==    by 0xF03B3E: ssl_do (viossl.c:358)
==31002==    by 0xF03EAC: sslconnect (viossl.c:422)
==31002==    by 0xC799501: feedback::Url_http::send(char const*, unsigned long) (url_http.cc:220)
==31002==    by 0xC797F53: feedback::send_report(char const*) (sender_thread.cc:243)
==31002==    by 0xC798179: background_thread (sender_thread.cc:288)
==31002==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
==31002==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)

Suspicious warnings

==31002== Conditional jump or move depends on uninitialised value(s)
==31002==    at 0xEFE68F: strnmov (strnmov.c:41)
==31002==    by 0xEFB6FC: process_str_arg (my_vsnprintf.c:215)
==31002==    by 0xEFD38F: my_vsnprintf_ex (my_vsnprintf.c:629)
==31002==    by 0xEFDA37: my_vsnprintf (my_vsnprintf.c:707)
==31002==    by 0x9447B3: vprint_msg_to_log(loglevel, char const*, __va_list_tag*) (log.cc:8124)
==31002==    by 0x94480A: Log_to_file_event_handler::log_error(loglevel, char const*, __va_list_tag*) (log.cc:1004)
==31002==    by 0x93F049: LOGGER::error_log_print(loglevel, char const*, __va_list_tag*) (log.cc:1112)
==31002==    by 0x93F4BF: error_log_print(loglevel, char const*, __va_list_tag*) (log.cc:6058)
==31002==    by 0x943253: sql_print_information(char const*, ...) (log.cc:8168)
==31002==    by 0xC799964: feedback::Url_http::send(char const*, unsigned long) (url_http.cc:316)
==31002==    by 0xC797F53: feedback::send_report(char const*) (sender_thread.cc:243)
==31002==    by 0xC798179: background_thread (sender_thread.cc:288)
==31002==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
==31002==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)
 
==31002== Conditional jump or move depends on uninitialised value(s)
==31002==    at 0x4C2BBD8: strstr (vg_replace_strmem.c:1613)
==31002==    by 0xC79992C: feedback::Url_http::send(char const*, unsigned long) (url_http.cc:309)
==31002==    by 0xC797F53: feedback::send_report(char const*) (sender_thread.cc:243)
==31002==    by 0xC7981D1: background_thread (sender_thread.cc:298)
==31002==    by 0x4E3806F: start_thread (in /lib64/libpthread-2.9.so)
==31002==    by 0x68DD13C: clone (in /lib64/libc-2.9.so)

and more.



 Comments   
Comment by Sergei Golubchik [ 2017-01-05 ]

We no longer use work with openssl 0.9.8.
I cannot repeat this issue with openssl 1.0.2j.

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