crash on quick rm table when optimizing table.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Incomplete
|
High
|
Unassigned | ||
5.5 |
Incomplete
|
High
|
Unassigned |
Bug Description
While running:
mysqlcheck -o --user=root -p --all-databases --verbose
MySQL crashed with signal 6.
SERVER:
Linux wc-c1-db2.
mysql Ver 14.14 Distrib 5.1.56, for unknown-linux-gnu (x86_64) using readline 5.1
=======
InnoDB: Error: Waited for 600 secs for hash index ref_count (1) to drop to 0.
index: "eval_datetime" table: "wc_acj/
111128 10:13:01 InnoDB: Assertion failure in thread 140040330925840 in file dict/dict0dict.c line 1821
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://
InnoDB: about forcing recovery.
111128 10:13:01 - 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.
key_buffer_
read_buffer_
max_used_
max_threads=500
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x2c9bdaa0
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 = 0x7f5dae2dce98 thread_stack 0x40000
/usr/local/
/usr/local/
/lib64/
/lib64/
/lib64/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/usr/local/
/lib64/
/lib64/
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f5600019a70): is an invalid pointer
Connection ID (thread ID): 4825
Status: NOT_KILLED
Changed in percona-server: | |
importance: | Undecided → High |
Maybe you add can add "err = DB_ERROR;" on function row_rename_ table_for_ mysql of row0mysql.c.
search "if (!dict_ table_rename_ in_cache( table, new_name" on "storage/ innodb_ plugin/ row/row0mysql. c", you can find this code, and add "err = DB_ERROR;" before " goto funct_exit;".
if (!dict_ table_rename_ in_cache( table, new_name,
!new_ is_tmp) ) {
trx- >error_ state = DB_SUCCESS;
trx_ general_ rollback_ for_mysql( trx, NULL);
trx- >error_ state = DB_SUCCESS;
err = DB_ERROR;
goto funct_exit;
}
The rollback code(on funct_exit) does not real execute because not set err = DB_ERROR after the failure of function dict_table_ rename_ in_cache( ), add "err = DB_ERROR" before "goto funct_exit;" to enable the rollback logic on funct_exit.