Hi, I'm having a problem on MySQL database, I know the principal error is:
InnoDB: Failing assertion: btr_page_get_prev(get_page, mtr) == buf_frame_get_page_no(page)
How can I solve that?
This the complete message on alert log (as you can see mysqld is restarting frequently):
InnoDB: Failing assertion: btr_page_get_prev(get_page, mtr) == buf_frame_get_page_no(page)
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to
http://bugs.mysql.com.
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://dev.mysql.com/doc/refman/5.1/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
08:30:50 UTC - 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_size=8384512
read_buffer_size=131072
max_used_connections=67
max_threads=1000
thread_count=65
connection_count=65
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2194578 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x1e94fe0
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 = 7f8c5381fd98 thread_stack 0x40000
/usr/libexec/mysqld(my_print_stacktrace+0x29) [0x84e0a9]
/usr/libexec/mysqld(handle_fatal_signal+0x483) [0x6a2743]
/lib64/libpthread.so.0() [0x399780f500]
/lib64/libc.so.6(gsignal+0x35) [0x39974328a5]
/lib64/libc.so.6(abort+0x175) [0x3997434085]
/usr/libexec/mysqld() [0x738808]
/usr/libexec/mysqld(btr_cur_search_to_nth_level+0xa95) [0x739755]
/usr/libexec/mysqld(row_ins_index_entry_low+0x13b) [0x7a711b]
/usr/libexec/mysqld() [0x7bdd39]
/usr/libexec/mysqld(row_upd_step+0x2d0) [0x7be200]
/usr/libexec/mysqld(row_update_for_mysql+0x1b9) [0x7a9f29]
/usr/libexec/mysqld(ha_innobase::update_row(unsigned char const*, unsigned char*)+0x4a0) [0x72fb90]
/usr/libexec/mysqld(handler::ha_update_row(unsigned char const*, unsigned char*)+0x6e) [0x6985ae]
/usr/libexec/mysqld(mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, unsigned int, st_order*, unsigned long long, enum_duplicates, bool)+0x114b) [0x64872b]
/usr/libexec/mysqld(mysql_execute_command(THD*)+0x963) [0x5c99f3]
/usr/libexec/mysqld(mysql_parse(THD*, char*, unsigned int, char const**)+0x2d3) [0x5ceaf3]
/usr/libexec/mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0xd15) [0x5d0b95]
/usr/libexec/mysqld(do_command(THD*)+0xea) [0x5d16ea]
/usr/libexec/mysqld(handle_one_connection+0x23e) [0x5c49ce]
/lib64/libpthread.so.0() [0x3997807851]
/lib64/libc.so.6(clone+0x6d) [0x39974e890d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f8bcc00fc70): is an invalid pointer
Connection ID (thread ID): 5271
Status: NOT_KILLED
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.
170305 02:30:51 mysqld_safe Number of processes running now: 0
170305 02:30:51 mysqld_safe mysqld restarted
Thanks for your help.