Bogus client SSL error messages produced using SSL_get_error not ERR_get_error error code

Bug #1660339 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
New
Medium
Unassigned
5.6
Fix Released
Medium
Laurynas Biveinis
5.7
Fix Released
Medium
Laurynas Biveinis

Bug Description

On 5.6 trunk:

main.ssl-big w4 [ fail ]
        Test ended at 2017-01-27 07:57:46

CURRENT_TEST: main.ssl-big
mysqltest: At line 54: query 'connect ssl_con2,localhost,root,,,,,SSL' failed: 2026: SSL connection error: error:00000001:lib(0):func(0):reason(1)

The "error:00000001:lib(0):func(0):reason(1)" part comes from ERR_error_string API, which requires ERR_get_error-returned arg, but is passed SSL_get_error-returned arg instead. The return codes of these two functions have nothing in common, and the resulting error message is bogus.

This is likely the reason for https://bugs.mysql.com/bug.php?id=75311 too.

Tags: ci ssl upstream
tags: added: ci ssl upstream
summary: Bogus client SSL error messages produced using SSL_get_error not
- ERR_get_error error code,
+ ERR_get_error error code
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

See bug 1697700 for X plugin testsuite bits

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1779

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.