Bug #80327 InnoDB: Failing assertion: !(rec_get_info_bits(rec2, comp) & 0x10UL)
Submitted: 10 Feb 2016 6:59 Modified: 16 Mar 2016 15:34
Reporter: Erlend Dahl Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:8.0.0 OS:Any
Assigned to: CPU Architecture:Any

[10 Feb 2016 6:59] Erlend Dahl
Description:
innodb_gis.rtree_purge fails with an assert:

2016-02-07 07:42:34 0x7f0334bf8700  InnoDB: Assertion failure in thread 139651746596608 in file rem0cmp.cc line 1162
InnoDB: Failing assertion: !(rec_get_info_bits(rec2, comp) & 0x10UL)
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.8/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
04:42:34 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 61014 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f03280008e0
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 = 7f0334bf7e90 thread_stack 0x40000
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(my_print_stacktrace+0x4b) [0x1beef0d]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(handle_fatal_signal+0x411) [0x135ab4b]
/lib64/libpthread.so.0(+0xf130) [0x7f03688ce130]
/lib64/libc.so.6(gsignal+0x39) [0x7f03672c55c9]
/lib64/libc.so.6(abort+0x148) [0x7f03672c6cd8]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1e746c7]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(cmp_rec_rec_with_match(unsigned char const*, unsigned char const*, unsigned long const*, unsigned long const*, dict_index_t const*, bool, unsigned long*)+0x264) [0x1d5107f]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1fe000b]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(rtr_merge_mbr_changed(btr_cur_t*, btr_cur_t*, unsigned long*, unsigned long*, rtr_mbr*, buf_block_t*, buf_block_t*, dict_index_t*)+0x3de) [0x1fe72b6]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(rtr_merge_and_update_mbr(btr_cur_t*, btr_cur_t*, unsigned long*, unsigned long*, unsigned char*, buf_block_t*, buf_block_t*, dict_index_t*, mtr_t*)+0xd0) [0x1fe73d6]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(btr_compress(btr_cur_t*, unsigned long, mtr_t*)+0x125d) [0x1ea6664]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(btr_cur_compress_if_useful(btr_cur_t*, unsigned long, mtr_t*)+0x1b7) [0x1ec1698]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(btr_cur_pessimistic_delete(dberr_t*, unsigned long, btr_cur_t*, unsigned long, bool, mtr_t*)+0x87d) [0x1ec2449]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(rtr_node_ptr_delete(dict_index_t*, btr_cur_t*, buf_block_t*, mtr_t*)+0x4e) [0x1fe74b6]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(btr_discard_page(btr_cur_t*, mtr_t*)+0x741) [0x1ea781e]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(btr_cur_pessimistic_delete(dberr_t*, unsigned long, btr_cur_t*, unsigned long, bool, mtr_t*)+0x472) [0x1ec203e]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1dc436d]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1dc4b20]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1dc4cf9]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1dc587f]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1dc5adb]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(row_purge_step(que_thr_t*)+0x17f) [0x1dc5dba]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1d49421]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1d49613]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(que_run_threads(que_thr_t*)+0x92) [0x1d497e7]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(trx_purge(unsigned long, unsigned long, bool)+0x2de) [0x1e3acdc]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug() [0x1e06081]
/export/home/pb2/test/sb_2-17833101-1454777838.14/usr/sbin/mysqld-debug(srv_purge_coordinator_thread+0x243) [0x1e06792]
/lib64/libpthread.so.0(+0x7df3) [0x7f03688c6df3]
/lib64/libc.so.6(clone+0x6d) [0x7f036738647d]

How to repeat:
Seen several times in last week's weekly.

I know that a number of bugs have been fixed or closed as dups in this area recently, but this one still shows up.
[16 Mar 2016 15:34] Daniel Price
Posted by developer:
 
Fixed as of the upcoming 5.7.13, 5.8.0 release, and here's the changelog entry:

An R-tree purge operation raised an assertion. 

Thank you for the bug report.
[18 Jun 2016 21:36] Omer Barnir
Posted by developer:
 
Reported version value updated to reflect release name change from 5.8 to 8.0
[11 Apr 2022 2:24] Fengchun Hua
I met the same call stack in 5.7.29, Is there any bug that not fixed yet?

I can't find a way to repeat this problem.