Comment 17 for bug 1201033

Confirmed with PS 5.6.12 on CentOS 5.9

[root@dhcppc0 ~]# mysql -umsandbox -p --socket=/tmp/mysql_sandbox5612.sock
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.12-rc60.4 Percona Server with XtraDB (GPL), Release rc60.4, Revision 393

...
mysql>
mysql> SELECT AES_ENCRYPT('','6b2d440b57b3bae74e3cf71e415b3965') FROM DUAL;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> SELECT AES_ENCRYPT('','6b2d440b57b3bae74e3cf71e415b3965') FROM DUAL;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1
Current database: *** NONE ***

ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql>
mysql> quit

2013-07-17 14:09:11 18988 [Note] /root/5.6.12/bin/mysqld: ready for connections.
Version: '5.6.12-rc60.4' socket: '/tmp/mysql_sandbox5612.sock' port: 5612 Percona Server with XtraDB (GPL), Release rc60.4, Revision 393
evp_enc.c(146): OpenSSL internal error, assertion failed: inl > 0
08:39:13 UTC - mysqld got signal 6 ;
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.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://bugs.percona.com/

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=1
max_threads=153
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 69119 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x15590d10
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...
stack_bottom = 2b903df60070 thread_stack 0x40000
/root/5.6.12/bin/mysqld(my_print_stacktrace+0x35)[0x90e0d5]
/root/5.6.12/bin/mysqld(handle_fatal_signal+0x3fb)[0x673b7b]
/lib64/libpthread.so.0[0x32a460eca0]
/lib64/libc.so.6(gsignal+0x35)[0x32a36302c5]
/lib64/libc.so.6(abort+0x110)[0x32a3631d70]
/lib64/libcrypto.so.6[0x32aecd5f6f]
/lib64/libcrypto.so.6(EVP_EncryptUpdate+0x1f8)[0x32aec815c8]
/root/5.6.12/bin/mysqld(my_aes_encrypt+0xc1)[0x91a9e1]
/root/5.6.12/bin/mysqld(_ZN21Item_func_aes_encrypt7val_strEP6String+0xbd)[0x6268cd]
/root/5.6.12/bin/mysqld(_ZN4Item4sendEP8ProtocolP6String+0x53)[0x59de03]
/root/5.6.12/bin/mysqld(_ZN8Protocol19send_result_set_rowEP4ListI4ItemE+0x92)[0x66e962]
/root/5.6.12/bin/mysqld(_ZN11select_send9send_dataER4ListI4ItemE+0x6c)[0x6b872c]
/root/5.6.12/bin/mysqld(_ZN4JOIN4execEv+0x5c8)[0x6d05e8]
/root/5.6.12/bin/mysqld[0x716539]
/root/5.6.12/bin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_P10SQL_I_ListI8st_orderESB_S7_yP13select_resultP18st_select_lex_unitP13st_select_lex+0xbc)[0x71686c]
/root/5.6.12/bin/mysqld(_Z13handle_selectP3THDP13select_resultm+0x175)[0x716a75]
/root/5.6.12/bin/mysqld[0x6f1609]
/root/5.6.12/bin/mysqld(_Z21mysql_execute_commandP3THD+0x40ac)[0x6f6fac]
/root/5.6.12/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x518)[0x6fa138]
/root/5.6.12/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x837)[0x6fab07]
/root/5.6.12/bin/mysqld(_Z10do_commandP3THD+0x117)[0x6fc007]
/root/5.6.12/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x130)[0x6c5890]
/root/5.6.12/bin/mysqld(handle_one_connection+0x45)[0x6c5995]
/root/5.6.12/bin/mysqld(pfs_spawn_thread+0x13b)[0xb3fa0b]
/lib64/libpthread.so.0[0x32a460683d]
/lib64/libc.so.6(clone+0x6d)[0x32a36d503d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (156b2e60): SELECT AES_ENCRYPT('','6b2d440b57b3bae74e3cf71e415b3965') FROM DUAL
Connection ID (thread ID): 1
Status: NOT_KILLED