Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
We upgrade from 5.2.5-MariaDB-mariadb99-log to 5.5.25-MariaDB-log on a Slave. The master is 5.2.5-MariaDB-mariadb99-log.
After execute "start slave;", the slave crash.
The binlog execute until reaches a set of a user-defined variable:
# at 10826 #120816 11:02:20 server id 2101 end_log_pos 845941273 Query thread_id=468834444 exec_time=0 error_code=0 SET TIMESTAMP=1345129340/*!*/; BEGIN /*!*/; # at 10905 #120816 11:02:20 server id 2101 end_log_pos 845941320 User_var SET @`lastId`:=7521389/*!*/;
After recover, it continuous crash when must execute a set of a user-defined variable:
120816 12:56:39 [ERROR] mysqld got signal 11 ; 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 http://kb.askmonty.org/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: 5.5.25-MariaDB-log key_buffer_size=134217728 read_buffer_size=2097152 max_used_connections=1 max_threads=1002 thread_count=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 4249215 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x0x2aaafc016470 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 = 0x41cba0b8 thread_stack 0x48000 ??:0(my_print_stacktrace)[0xa8783e] ??:0(handle_fatal_signal)[0x6d048c] ??:0(??)[0x3e8c40eb70] ??:0(THD::cleanup_after_query())[0x54a441] ??:0(Query_log_event::do_apply_event(Relay_log_info const*, char const*, unsigned int))[0x7a7bb9] ??:0(apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*))[0x50ca52] ??:0(exec_relay_log_event(THD*, Relay_log_info*))[0x514710] ??:0(handle_slave_sql)[0x515a24] ??:0(??)[0x3e8c40673d] ??:0(??)[0x3e8bcd44bd] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x2aaafc01c2f3): is an invalid pointer Connection ID (thread ID): 4 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=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.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: MariaDB Crash executing user-defined variables on binlog
I confirm this on versions:
5.2.5-MariaDB-mariadb99-log
5.3.2-MariaDB-beta-mariadb102-log
Steps to reproduce:
1- Install on DB-MASTER 5.2.5-MariaDB-mariadb99-log or 5.3.2-MariaDB-beta-mariadb102-log
2- Install on DB-SLAVE 5.5.25-MariaDB-log
3- Replicate DB-SLAVE from DB-MASTER
4- create a table
5- Insert data like this:
insert into DB.a values (1);
insert into DB.a values (2);
insert into DB.a values (3);
set @ant=4;
insert into DB.a values (@ant);
6- Replication fails and mysqld crashes