Description:
Deploying MySQL 5.7.17 (5.7.9 also testes) on Nano Server works.
OpenSSL on nano-server also working.
Without existing ssl-certificates mysqld starts as expected.
With existing ssl-certificates (after calling mysql_ssl_rsa_setup) mysql crashes.
Command mysqld --console shows following error:
mysqld : 2017-01-27T07:57:12.143150Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use
--explicit_defaults_for_timestamp server option (see documentation for more details).
+ CategoryInfo : NotSpecified: (2017-01-27T07:5... more details).:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
2017-01-27T07:57:12.143150Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are
disabled
2017-01-27T07:57:12.143150Z 0 [Note] C:\MySQL\mysql\bin\mysqld.exe (mysqld 5.7.17) starting as process 1156 ...
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: Uses event mutexes
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: Number of pools: 1
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2017-01-27T07:57:12.158776Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-01-27T07:57:12.174400Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-01-27T07:57:12.268221Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-01-27T07:57:12.299443Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 2535954
2017-01-27T07:57:12.299443Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 2535963
2017-01-27T07:57:12.315095Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 2535963
2017-01-27T07:57:12.315095Z 0 [Note] InnoDB: Database was not shutdown normally!
2017-01-27T07:57:12.315095Z 0 [Note] InnoDB: Starting crash recovery.
2017-01-27T07:57:12.796366Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-01-27T07:57:12.796366Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2017-01-27T07:57:12.796366Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2017-01-27T07:57:12.918427Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2017-01-27T07:57:12.918427Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2017-01-27T07:57:12.918427Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2017-01-27T07:57:12.918427Z 0 [Note] InnoDB: Waiting for purge to start
2017-01-27T07:57:12.996104Z 0 [Note] InnoDB: 5.7.17 started; log sequence number 2535963
2017-01-27T07:57:12.996104Z 0 [Note] Plugin 'FEDERATED' is disabled.
2017-01-27T07:57:12.996104Z 0 [Note] InnoDB: Loading buffer pool(s) from C:\MySQL\mysql\data\ib_buffer_pool
2017-01-27T07:57:13.122336Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL
support using them.
2017-01-27T07:57:13.122336Z 0 [Warning] CA certificate ca.pem is self signed.
07:57:13 UTC - mysqld got exception 0xc000001d ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68011 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
2017-01-27T07:57:13.372261Z 0 [Note] InnoDB: Buffer pool(s) load completed at 170127 8:57:13
7ff660d53343
mysqld.exe!log()[log.asm:429]
7ff660d22cbc
mysqld.exe!TaoCrypt::`anonymous namespace'::DiscreteLogWorkFactor()[dh.cpp:40]
7ff660d22d9b
mysqld.exe!TaoCrypt::DH::GeneratePrivate()[dh.cpp:58]
7ff660d22d2d
mysqld.exe!TaoCrypt::DH::GenerateKeyPair()[dh.cpp:50]
7ff660d05704
mysqld.exe!yaSSL::DiffieHellman::DiffieHellman()[crypto_wrapper.cpp:830]
7ff660cf6a27
mysqld.exe!yaSSL::Crypto::SetDH()[yassl_int.cpp:2389]
7ff660cf4db2
mysqld.exe!yaSSL::SSL::SSL()[yassl_int.cpp:414]
7ff6602418db
mysqld.exe!init_ssl()[mysqld.cc:3441]
7ff6602462b8
mysqld.exe!win_main()[mysqld.cc:4834]
7ff660243865
mysqld.exe!mysql_service()[mysqld.cc:5123]
7ff660243c1c
mysqld.exe!mysqld_main()[mysqld.cc:5321]
7ff660d4c630
mysqld.exe!__tmainCRTStartup()[crt0.c:255]
7ffc072b70df
ntdll.dll!RtlUserThreadStart()
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
How to repeat:
First: Deploy mysql on nano server.
Description here: https://ryentang.wordpress.com/2016/06/28/nano-server-deploying-mysql-database-server/
Test mysqld. It should work.
Call mysql_ssl_rsa_setup.
Test mysqld again. It should crash.