Bug #108323 MySQL 5.7.31 crashed
Submitted: 29 Aug 2022 15:29 Modified: 30 Aug 2022 12:13
Reporter: Paul Rollo Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.7 OS:CentOS
Assigned to: CPU Architecture:Any
Tags: none

[29 Aug 2022 15:29] Paul Rollo
Description:
2022-08-12 00:10:11 0x7f5f6117b700  InnoDB: Assertion failure in thread 140047627564800 in file btr0btr.cc line 2165
InnoDB: Failing assertion: err == DB_SUCCESS
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.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
22:10:11 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=8388608
read_buffer_size=131072
max_used_connections=3496
max_threads=4000
thread_count=1920
connection_count=1920
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1597723 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7e11dc816000
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 = 7f5f6117ae30 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xf463ab]
/usr/sbin/mysqld(handle_fatal_signal+0x486)[0x7eac16]
/lib64/libpthread.so.0(+0xf630)[0x7f6700501630]
/lib64/libc.so.6(gsignal+0x37)[0x7f66feee9387]
/lib64/libc.so.6(abort+0x148)[0x7f66feeeaa78]
/usr/sbin/mysqld[0x7bafa6]
/usr/sbin/mysqld(_Z33btr_insert_on_non_leaf_level_funcmP12dict_index_tmP8dtuple_tPKcmP5mtr_t+0x34b)[0x128504b]
/usr/sbin/mysqld(_Z25btr_page_split_and_insertmP9btr_cur_tPPmPP16mem_block_info_tPK8dtuple_tmP5mtr_t+0xb48)[0x1287ad8]
/usr/sbin/mysqld(_Z26btr_cur_pessimistic_insertmP9btr_cur_tPPmPP16mem_block_info_tP8dtuple_tPPhPP9big_rec_tmP9que_thr_tP5mtr_t+0x2f1)[0x1295751]
/usr/sbin/mysqld(_Z29row_ins_clust_index_entry_lowmmP12dict_index_tmP8dtuple_tmP9que_thr_tb+0x96c)[0x11b540c]
/usr/sbin/mysqld(_Z25row_ins_clust_index_entryP12dict_index_tP8dtuple_tP9que_thr_tmb+0x162)[0x11b61f2]
/usr/sbin/mysqld[0x11cc191]
/usr/sbin/mysqld(_ZN11ha_innobase25intrinsic_table_write_rowEPh+0x3d)[0x10da30d]
/usr/sbin/mysqld(_ZN11ha_innobase9write_rowEPh+0x4a5)[0x10e73c5]
/usr/sbin/mysqld(_ZN7handler12ha_write_rowEPh+0x167)[0x8453c7]
/usr/sbin/mysqld[0xcdd54b]
/usr/sbin/mysqld[0xcd97f5]
/usr/sbin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x18c)[0xcdeedc]
/usr/sbin/mysqld[0xcd97f5]
/usr/sbin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x18c)[0xcdeedc]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x267)[0xcd7ac7]
/usr/sbin/mysqld(_Z12handle_queryP3THDP3LEXP12Query_resultyy+0x17d)[0xd4848d]
/usr/sbin/mysqld[0x7ab1b1]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x43d5)[0xd0b8a5]
/usr/lib64/mysql/plugin/libaudit_plugin.so(+0x104c1)[0x7e0f085794c1]
/usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3fd)[0xd0df5d]
/usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0xfe0)[0xd0eff0]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x19f)[0xd105af]
/usr/sbin/mysqld(handle_connection+0x288)[0xdd36b8]
/usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0x141b2c4]
/lib64/libpthread.so.0(+0x7ea5)[0x7f67004f9ea5]
/lib64/libc.so.6(clone+0x6d)[0x7f66fefb19fd]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7e11dc824030): SELECT 4 as row_type, max(id) AS max_id, t.ext_account, t.int_account, t.clearing_route, t.product_id, sum(t.size) AS position, sum(-t.size*t.price*p.contract_size) AS t
rading_cash, p.contract_type, p.sub_contract_type,  IFNULL (p.scaling_factor,10000) as scaling_factor,  IFNULL(p.currency_id,2) as currency_id , IFNULL(p.base_currency_id,0) as base_currency_
id FROM transaction t LEFT JOIN product p ON p.product_id = t.product_id WHERE p.contract_size IS NOT NULL AND t.id > coalesce((SELECT max(max_id) FROM risk_start_position), 0) AND t.date < c
urdate() GROUP BY t.ext_account, t.int_account, t.product_id, t.clearing_route
Connection ID (thread ID): 162703475
Status: NOT_KILLED

How to repeat:
No idea how to reproduce
[30 Aug 2022 12:13] MySQL Verification Team
Hi Mr. Rollo,

Thank you for your bug report.

However, your report is a duplicate of the following bug report:

https://bugs.mysql.com/bug.php?id=101154

You can subscribe to that bug report and find out when it is fixed.

Thank you for your contribution.