Error locking mutex 22

Error locking mutex 22
pure virtual method called
terminate called without an active exception
07:12:30 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=2097152
max_used_connections=2669
max_threads=6000
thread_count=2478
connection_count=2478
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 61528535 K bytes of memory
Hope that’s ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f69080a5530
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 = 7f66409eae30 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xf3461b]
/usr/sbin/mysqld(handle_fatal_signal+0x486)[0x7e3666]
/lib64/libpthread.so.0(+0xf630)[0x7f6c056b6630]
/lib64/libc.so.6(gsignal+0x37)[0x7f6c0409e387]
/lib64/libc.so.6(abort+0x148)[0x7f6c0409fa78]
/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x165)[0x7f6c049aea95]
/lib64/libstdc++.so.6(+0x5ea06)[0x7f6c049aca06]
/lib64/libstdc++.so.6(+0x5ea33)[0x7f6c049aca33]
/lib64/libstdc++.so.6(+0x5f59f)[0x7f6c049ad59f]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN5argus6Logger15commonOperationE19eSingletonOperation+0x1bc)[0x7f6610be4a8c]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN7ngacomm18TransactionManager15waitForResponseEPNS_11TransactionEj+0xc5)[0x7f6610c45bb5]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN7ngacomm18TransactionManager11sendRequestEiNS_15TransactionTypeERNS_17BuffersSerializerEPvmj+0xb9)[0x7f6610c479c9]
/imperva/ragent/shared/lib/LibcCollector-647922.so(ZN24USSnifferDataModuleProxy37requestConnectionClientProcessDetailsEjjjjRjRyS0+0x171)[0x7f6610bbc181]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN19CollectorDataModule29enrichConnectionWithClientPidERK29CollectorTcpConnectionDetails+0x48)[0x7f6610bb4178]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN19CollectorDataModule17connectionPayloadEjN13monitoringLib13DataDirectionEPKvmRbP24ConnectionPayloadFunctor+0x93e)[0x7f6610bb729e]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN11LibcDbLogic17connectionPayloadEiPKclN13monitoringLib13DataDirectionERb+0x5c)[0x7f6610ba931c]
/imperva/ragent/shared/lib/LibcCollector-647922.so(_ZN12LibcWrappers6mySendEiPKvmi+0xca)[0x7f6610bb11ea]
/usr/sbin/mysqld(vio_write+0xa7)[0x146fa37]
/usr/sbin/mysqld(net_write_packet+0x85)[0xc4d515]
/usr/sbin/mysqld(net_flush+0x23)[0xc4d713]
/usr/sbin/mysqld(_ZN16Protocol_classic9flush_netEv+0x14)[0xc5b7b4]
/usr/sbin/mysqld(_ZN16Protocol_classic9flush_netEv+0x14)[0xc5b7b4]
/usr/sbin/mysqld[0x7eab4a]
/usr/sbin/mysqld[0x7eb89e]
/usr/sbin/mysqld[0x7eb09d]
/usr/sbin/mysqld[0x7ea8f7]
/usr/sbin/mysqld(_Z16acl_authenticateP3THD19enum_server_command+0x1cc)[0x7edf3c]
/usr/sbin/mysqld[0xcb994d]
/usr/sbin/mysqld(_Z22thd_prepare_connectionP3THD+0x68)[0xcba9d8]
/usr/sbin/mysqld(handle_connection+0x267)[0xdc1337]
/usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0x1409ee4]
/lib64/libpthread.so.0(+0x7ea5)[0x7f6c056aeea5]
/lib64/libc.so.6(clone+0x6d)[0x7f6c04166b0d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 250992651
Status: NOT_KILLED

Can you give more information? What is the OS? What MySQL version? Where any queries being ran, backup in progress? Please provide many more details.

Hello,

DB version - 5.7.34-log
server version - RHEL 7.9
No Backups - mysqldump completed 1 hour before the crash.
Imperva agent is running on the server for security monitoring.

You can see from the stacktrace all the Imperva code-injection. There’s no way to predict how MySQL will behave when some other code injects itself into normal operations. I suggest removing Imperva from your mysql and observe MySQL’s stability.