[MDEV-11542] Pointer being freed was not allocated, server crashes, binlog_encryption.rpl_ssl fails in buildbot on labrador Created: 2016-12-11  Updated: 2017-05-21  Resolved: 2017-05-21

Status: Closed
Project: MariaDB Server
Component/s: SSL, Tests
Affects Version/s: 10.1
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-12193 Discontinue support of unsecure and u... Closed
relates to MDEV-7069 Fix buildbot failures in main server ... Stalled

 Description   

http://buildbot.askmonty.org/buildbot/builders/labrador/builds/8598/steps/test/logs/stdio

binlog_encryption.rpl_ssl 'row'          [ fail ]
        Test ended at 2016-12-11 19:10:13
 
CURRENT_TEST: binlog_encryption.rpl_ssl
 
 
Server [mysqld.1 - pid: 75912, winpid: 75912, exit: 256] failed during test run
Server log from this test:
----------SERVER LOG START-----------
mysqld(75913,0x112963000) malloc: *** error for object 0x7fd231543030: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
161211 19:10:11 [ERROR] 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.
 
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
 
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.
 
Server version: 10.1.20-MariaDB
key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=7
max_threads=153
thread_count=7
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 62897 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x0x7fd235800008
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 = 0x112962e60 thread_stack 0x48400
0   mysqld                              0x0000000108fc833e my_print_stacktrace + 46
0   mysqld                              0x00000001089a6d15 handle_fatal_signal + 709
0   libsystem_c.dylib                   0x00007fff8a671cfa _sigtramp + 26
0   ???                                 0x0000000000000000 0x0 + 0
0   libsystem_c.dylib                   0x00007fff8a610a7a abort + 143
0   libsystem_c.dylib                   0x00007fff8a66f84c free + 389
0   libcrypto.0.9.8.dylib               0x00007fff91ee0528 CRYPTO_free + 40
0   libcrypto.0.9.8.dylib               0x00007fff91f331de ERR_get_state + 366
0   libcrypto.0.9.8.dylib               0x00007fff91f13d83 ERR_clear_error + 19
0   libssl.0.9.8.dylib                  0x00007fff8b0e6b34 ssl23_accept + 52
0   mysqld                              0x00000001090097d1 ssl_do + 273
0   mysqld                              0x0000000108aebb9b _ZL24server_mpvio_read_packetP13st_plugin_vioPPh + 491
0   mysqld                              0x0000000108ae9dd2 _ZL28native_password_authenticateP13st_plugin_vioP25st_mysql_server_auth_info + 98
0   mysqld                              0x0000000108aeaa0c _ZL12do_auth_onceP3THDPK19st_mysql_lex_stringP9MPVIO_EXT + 204
0   mysqld                              0x0000000108b028ac _Z16acl_authenticateP3THDj + 1388
0   mysqld                              0x0000000108c3d18d _Z16login_connectionP3THD + 861
0   mysqld                              0x0000000108c3de99 _Z24do_handle_one_connectionP3THD + 601
0   mysqld                              0x0000000108c3e00e handle_one_connection + 62
0   mysqld                              0x0000000108dc2788 pfs_spawn_thread + 296
0   libsystem_c.dylib                   0x00007fff8a61d8bf _pthread_start + 335
0   libsystem_c.dylib                   0x00007fff8a620b75 thread_start + 13
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x0): is an invalid pointer
Connection ID (thread ID): 20
Status: NOT_KILLED
 
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=off
 
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.
 
We think the query pointer is invalid, but we will try to print it anyway. 
Query: 
 
Writing a core file
----------SERVER LOG END-------------
mysqltest failed but provided no output
The result from queries just before the failure was:
< snip >
master_ssl=1,
master_ssl_ca ='MYSQL_TEST_DIR/std_data/cacert.pem',
master_ssl_cert='MYSQL_TEST_DIR/std_data/client-cert.pem',
master_ssl_key='MYSQL_TEST_DIR/std_data/client-key.pem';
start slave;
insert into t1 values(1);
select * from t1;
t
1
Master_SSL_Allowed = 'Yes'
Master_SSL_CA_Path = ''
Master_SSL_CA_File = 'MYSQL_TEST_DIR/std_data/cacert.pem'
Master_SSL_Cert = 'MYSQL_TEST_DIR/std_data/client-cert.pem'
Master_SSL_Key = 'MYSQL_TEST_DIR/std_data/client-key.pem'
include/check_slave_is_running.inc
STOP SLAVE;
select * from t1;
t
1
insert into t1 values (NULL);



 Comments   
Comment by Sergei Golubchik [ 2017-05-21 ]

labrador uses the ancient OpenSSL 0.9.8. In MDEV-12193 we'll stop supporting OpenSSL below 1.0.1.

I've switched labrador to build with yassl.

Generated at Thu Feb 08 07:50:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.