Bug #86121 Segfault on mysqlpump invocation with --ssl-mode=required
Submitted: 27 Apr 2017 20:33 Modified: 27 Apr 2017 23:16
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: mysqlpump Command-line Client Severity:S3 (Non-critical)
Version:5.7/8.0.1-dmr OS:Any
Assigned to: CPU Architecture:Any

[27 Apr 2017 20:33] Daniël van Eeden
Description:
(gdb) r
Starting program: /foo/mysqlpump --ssl-mode=required
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
mysqlpump: Got error: 2026: SSL connection error: SSL is required but the server doesn't support it while connecting to the MySQL server
mysqlpump: [ERROR] (11) 
Dump process encountered error and will not continue.

Program received signal SIGSEGV, Segmentation fault.
mysql_send_query (mysql=0x0, query=<optimized out>, length=<optimized out>) at ../../mysql-8.0.1-dmr/sql-common/client.cc:5574
5574	../../mysql-8.0.1-dmr/sql-common/client.cc: No such file or directory.

How to repeat:
See description

Suggested fix:
Don't crash, exit normally
[27 Apr 2017 20:35] Daniël van Eeden
Also happens with --tls-version=9
[27 Apr 2017 23:15] MySQL Verification Team
Thank you for the bug report.

c:\Program Files\MySQL\MySQL Server 5.7\bin>mysqlpump --ssl-mode=required
mysqlpump: Got error: 2026: SSL connection error: SSL is required but the server doesn't support it while connecting to the MySQL server
mysqlpump: [ERROR] (11)
Dump process encountered error and will not continue.

'mysqlpump.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Cannot find or open the PDB file.
The thread 0x3304 has exited with code 0 (0x0).
Unhandled exception at 0x00007FF6695400A7 in mysqlpump.exe: 0xC0000005: Access violation reading location 0x00000000000004B0.