Bug #56342 ssl_8k_key test fails with openssl
Submitted: 28 Aug 2010 5:06 Modified: 28 Aug 2010 14:34
Reporter: [ name withheld ] Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.50 OS:Linux (Fedora 13)
Assigned to: CPU Architecture:Any

[28 Aug 2010 5:06] [ name withheld ]
Description:
As of 5.1.50, the ssl_8k_key test is failing for me.  This might be because I'm building with openssl not yassl.  The output isn't too informative:

main.ssl_8k_key                          [ fail ]
        Test ended at 2010-08-28 00:50:37

CURRENT_TEST: main.ssl_8k_key
mysqltest: Could not open connection 'default': 2026 SSL connection error
Failed to read from '/home/tgl/rpmwork/BUILD/mysql-5.1.50/mysql-test/var/log/ssl_8k_key.log', errno: 22

The mentioned logfile is present, but empty, after the tests stop.  I can't see any reason why reading from it would result in EINVAL.

Everything was fine in 5.1.48, the last version I tried.

How to repeat:
Run regression tests after building --with-ssl.
[28 Aug 2010 5:40] [ name withheld ]
I find that deleting the recently-added file mysql-test/t/ssl_8k_key-master.opt causes the test to pass.  I suspect this is not so much fixing the test as lobotomizing it :-( ... but it'll do as a workaround for now.
[28 Aug 2010 8:48] Sveta Smirnova
Thank you for the report.

> I suspect this is not so much fixing the test as lobotomizing it :-( ...

Why do you think "--loose-ssl-key=$MYSQL_TEST_DIR/std_data/server8k-key.pem --loose-ssl-cert=$MYSQL_TEST_DIR/std_data/server8k-cert.pem" which just say server to start with SSL support lobotomize the test?
[28 Aug 2010 13:51] Davi Arnaut
Bug#53463

Which OpenSSL version?
[28 Aug 2010 14:16] Davi Arnaut
FWIW, the previous version of the test wasn't actually testing the 8192-bit key, which made the test quite bogus. The fix involved patching some YaSSL code and tweaking the test case to use the 8192-bit key.

So, for anyone using OpenSSL, this is not a regression per se as it didn't touch any OpenSSL related code. The failure might be related to Bug#29753.

I remember explicitly testing with OpenSSL.. it even caused gold (linker) to barf. Will retry.
[28 Aug 2010 14:19] [ name withheld ]
> Which OpenSSL version?

openssl-1.0.0a-1.fc13.x86_64, which is the current release on Fedora 13.
[28 Aug 2010 14:34] Davi Arnaut
Turns out the version does not matter, fails with ./mtr --ssl
[28 Aug 2010 15:06] Davi Arnaut
As a side comment, we should fix these unreadable error messages. Currently, there is error reporting stuff but only for debugging.. go figure.
[2 Nov 2010 17:41] BJ Dierkes
This continues to be an issue on RHEL 5.5 with MySQL 5.1.52 and openssl-0.9.8e-12.el5_4.6