Bug #70194 MySQL 5.6 crashes on 'START SLAVE;' command
Submitted: 30 Aug 2013 8:10 Modified: 1 Jan 2014 10:35
Reporter: Nicolas De Amicis Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Replication Severity:S1 (Critical)
Version:5.6.13 OS:Windows (Windows Server 2012 Standard x64)
Assigned to: CPU Architecture:Any

[30 Aug 2013 8:10] Nicolas De Amicis
Description:
I have installed and configured a MySQL slave server, version 5.6.13 on Windows Server 2012 Standard x64. I have make a dump of master server (version 5.1.51 on SuSE Linux Enterprise Server SP1 x64) and then restored on this slave server.
When I start the replication, MySQL crashes with this error message (server.err):

[Note] Plugin 'FEDERATED' is disabled.
[Warning] option 'innodb-autoextend-increment': unsigned value 10485760 adjusted to 1000
InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
[Note] InnoDB: The InnoDB memory heap is disabled
[Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
[Note] InnoDB: Compressed tables use zlib 1.2.3
[Note] InnoDB: Not using CPU crc32 instructions
[Note] InnoDB: Initializing buffer pool, size = 256.0M
[Note] InnoDB: Completed initialization of buffer pool
[Note] InnoDB: Highest supported file format is Barracuda.
[Note] InnoDB: 128 rollback segment(s) are active.
[Note] InnoDB: Waiting for purge to start
[Note] InnoDB: 5.6.13 started; log sequence number 1604057824
[Note] Server hostname (bind-address): '*'; port: 60010
[Note] IPv6 is available.
[Note]   - '::' resolves to '::';
[Note] Server socket created on IP: '::'.
[Warning] Slave I/O: Unknown system variable 'SERVER_UUID' on master. A probable cause is that the variable is not supported on the master (version: 5.1.51-log), even though it is on the slave (version: 5.6.13-log), Error_code: 1193
[Note] Event Scheduler: Loaded 0 events
[Note] mysqld.exe: ready for connections.
Version: '5.6.13-log'  socket: ''  port: 60010  MySQL Community Server (GPL)
[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[Warning] Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0
[Note] Slave SQL thread initialized, starting replication in log 'mysql_test-bin.000075' at position 752092254, relay log '.\test-relay-bin.000003' position: 43419
[Note] 'SQL_SLAVE_SKIP_COUNTER=5' executed at relay_log_file='.\test-relay-bin.000003', relay_log_pos='43419', master_log_name='mysql_test-bin.000075', master_log_pos='752092254' and new position at relay_log_file='.\test-relay-bin.000003', relay_log_pos='46142', master_log_name='mysql_test-bin.000075', master_log_pos='752094977' 
07:00:04 UTC - mysqld got exception 0xc0000005 ;
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.

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

Thread pointer: 0x2e13d7c0
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...
[Note] Slave I/O thread: connected to master 'user@server:60010',replication started in log 'mysql_test-bin.000076' at position 5152410
[Warning] Slave I/O: Notifying master by SET @master_binlog_checksum= @@global.binlog_checksum failed with error: Unknown system variable 'binlog_checksum', Error_code: 1193
[Warning] Slave I/O: Unknown system variable 'SERVER_UUID' on master. A probable cause is that the variable is not supported on the master (version: 5.1.51-log), even though it is on the slave (version: 5.6.13-log), Error_code: 1193
7f76c09b593    mysqld.exe!?opt_sum_query@@YAHPEAVTHD@@PEAUTABLE_LIST@@AEAV?$List@VItem@@@@PEAVItem@@@Z()
7f76c08412c    mysqld.exe!?opt_sum_query@@YAHPEAVTHD@@PEAUTABLE_LIST@@AEAV?$List@VItem@@@@PEAVItem@@@Z()
7f76c081454    mysqld.exe!?opt_sum_query@@YAHPEAVTHD@@PEAUTABLE_LIST@@AEAV?$List@VItem@@@@PEAVItem@@@Z()
7f76c0ad65f    mysqld.exe!?opt_sum_query@@YAHPEAVTHD@@PEAUTABLE_LIST@@AEAV?$List@VItem@@@@PEAVItem@@@Z()
7f76c0b19d8    mysqld.exe!?opt_sum_query@@YAHPEAVTHD@@PEAUTABLE_LIST@@AEAV?$List@VItem@@@@PEAVItem@@@Z()
7f76c0b25b4    mysqld.exe!?opt_sum_query@@YAHPEAVTHD@@PEAUTABLE_LIST@@AEAV?$List@VItem@@@@PEAVItem@@@Z()
7f76c2c13a6    mysqld.exe!xor_string()
7f76c0d3a4e    mysqld.exe!win_pthread_mutex_trylock()
7f76c35ab8b    mysqld.exe!my_mb_ctype_mb()
7f76c35ac1f    mysqld.exe!my_mb_ctype_mb()
7f833e51832    KERNEL32.DLL!BaseThreadInitThunk()
7f83463d609    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 41
Status: NOT_KILLED

How to repeat:
Configure replication and run 'START SLAVE;'
[30 Aug 2013 15:27] MySQL Verification Team
Please provide both my.ini file master/slave. Thanks.
[30 Aug 2013 18:15] Justin Swanhart
Did you dump the `mysql` database from 5.1?  If so, did you run mysql_upgrade on 5.6 machine after importing the old schema?
[2 Sep 2013 6:10] Nicolas De Amicis
my.ini from the slave server 5.6.13

Attachment: my_slave.ini (application/x-wine-extension-ini, text), 14.28 KiB.

[2 Sep 2013 6:15] Nicolas De Amicis
my.cnf from master server 5.1.51

Attachment: my.cnf (application/octet-stream, text), 6.27 KiB.

[2 Sep 2013 6:34] MySQL Verification Team
Hi Nicolas,

We need a stack trace as the one from the error log is bogus for some reason (missing/old dbghelp.dll?).

Please put "core-file" into [mysqld] and when crash happens compress and upload mysqld.dmp to this bug report.
[2 Sep 2013 7:45] MySQL Verification Team
Call stack looks familiar:

: mysqld!table_def::compatible_with+0xc
: mysqld!Rows_log_event::do_apply_event
: mysqld!Log_event::apply_event+0x1f4
: mysqld!apply_event_and_update_pos+0x1
: mysqld!exec_relay_log_event+0x198
: mysqld!handle_slave_sql+0x734
: mysqld!pfs_spawn_thread+0x136
: mysqld!pthread_start+0x1e
: mysqld!_callthreadstartex+0x17
: mysqld!_threadstartex+0x7f
: kernel32!BaseThreadInitThunk+0x1a
: ntdll!RtlUserThreadStart+0x1d
[2 Sep 2013 16:03] MySQL Verification Team
Are you replicating any MERGE tables ?
[3 Sep 2013 6:48] Nicolas De Amicis
Yes of course.
[1 Jan 2014 10:35] MySQL Verification Team
let us call this a duplicate of known bug for now:
http://bugs.mysql.com/bug.php?id=69574