Bug #107053 Restart of mysql unexpectedly
Submitted: 19 Apr 2022 12:54 Modified: 30 May 2022 11:53
Reporter: Narayana reddy Email Updates:
Status: Can't repeat Impact on me:
Category:MySQL Server Severity:S2 (Serious)
Version:5.7.34 OS:Ubuntu (16.04.1 LTS (Xenial Xerus))
Assigned to: CPU Architecture:x86 (x86_64)
Tags: assertion failure, signal 6

[19 Apr 2022 12:54] Narayana reddy
mysql is restarting on its own. mysql came up after 1min and 28 secs. This is a production server and the restart resulted in a loss of business service.

The following errors are seen in mysql error log.
2022-04-18 09:40:02 0x7efedff3c700  InnoDB: Assertion failure in thread 139633144088320 in file trx0trx.cc line 2317
InnoDB: Failing assertion: trx->lock.n_active_thrs == 1
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.
09:40:02 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.

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

Thread pointer: 0x7efc9801dff0
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 = 7efedff3be70 thread_stack 0x40000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7efc982da1a0): is an invalid pointer
Connection ID (thread ID): 1590872

How to repeat:
We are not able to find a pattern when this restart is occurring. 

Suggested fix:
no known fix. mysql restarts automatically.
[19 Apr 2022 13:10] MySQL Verification Team
Bug #107054 marked as duplicate of this one
[27 Apr 2022 13:10] MySQL Verification Team
Hi Mr. reddy,

Thank you for your bug report.

You have got a controlled assertion in the InnoDB SE. This is due to the fact that a tablespace was corrupted and InnoDB could not write new data into the corrupted file.

We can further process your report solely if we can repeat both, the corruption and the exact assert. Hence, we require a fully repeatable test cases for the corruption and for the assert. Do note that corruption can happen due to bad hardware or unstable OS.

We are waiting on your fully repeatable test cases.
[28 May 2022 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[30 May 2022 11:53] MySQL Verification Team
Closed as "Can't repeat", since there is no adequate test case.