MariaDB Crash executing user-defined variables on binlog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
New
|
Undecided
|
Unassigned |
Bug Description
We upgrade from 5.2.5-MariaDB-
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=
BEGIN
/*!*/;
# at 10905
#120816 11:02:20 server id 2101 end_log_pos 845941320 User_var
SET @`lastId`
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://
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_
read_buffer_
max_used_
max_threads=1002
thread_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
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_
??:0(handle_
??:0(??
??:0(THD:
??:0(Query_
??:0(apply_
??:0(exec_
??:0(handle_
??:0(??
??:0(??
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=
The manual page at http://
information that should help you find out what is causing the crash.
I confirm this on versions: mariadb99- log beta-mariadb102 -log
5.2.5-MariaDB-
5.3.2-MariaDB-
Steps to reproduce: mariadb99- log or 5.3.2-MariaDB- beta-mariadb102 -log
1- Install on DB-MASTER 5.2.5-MariaDB-
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