Bug #114177 InnoDB: Assertion failure & mysqld got exception 0x80000003
Submitted: 1 Mar 2024 2:16 Modified: 1 Mar 2024 11:31
Reporter: Yoshitaka Mitsunari Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.7.31.0 OS:Windows (Server2016)
Assigned to: CPU Architecture:x86

[1 Mar 2024 2:16] Yoshitaka Mitsunari
Description:
InnoDB: Assertion failure & mysqld got exception 0x80000003 occurred suddenly in our developed system. This assertion failure repeatedly occurred just after restarting mysqld. We would like to know why this failure occurred.
The error log of MySQL at that time is as bwlow;

2024-02-11 14:19:00 0x8b0  InnoDB: Assertion failure in thread 2224 in file trx0purge.cc line 176
InnoDB: Failing assertion: purge_sys->iter.trx_no <= purge_sys->rseg->last_trx_no
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.
05:19:00 UTC - mysqld got exception 0x80000003 ;
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=65536
max_used_connections=38
max_threads=300
thread_count=34
connection_count=34
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 107848 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x1b559e14ed0
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...
7ff76ef349c2    mysqld.exe!my_errno()
7ff8449dec9d    MSVCR120.dll!raise()
7ff8449e4874    MSVCR120.dll!abort()
7ff76f050424    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76eff62a7    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76eff6fbc    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76eff7859    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76eff6dfc    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76eff6732    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76ef9396e    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff76ef97bac    mysqld.exe!?reserve@?$vector@EV?$allocator@E@std@@@std@@QEAAX_K@Z()
7ff854358364    KERNEL32.DLL!BaseThreadInitThunk()
7ff854bee851    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): 
Connection ID (thread ID): 0
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.

How to repeat:
We have no idea how to reproduce this failure.
Multiple clients is accessing to DB by using only "SELECT", "INSERT" and "UPDATE" commands.
[1 Mar 2024 11:31] MySQL Verification Team
Hi Mr. 祥孝 光成,

Thank you for your bug report.

However, we should inform you that version 5.7 is outdated and not supported for a long time.

If you manage to repeat it with 8.0.36 or newer, create a new bug report, but do not forget to include a fully reproducible test case, which will always lead to crash.

Unsupported.