Yesterday my database crashed and then restarted; after the automatic crash recovery started normally and it's working fine; is there a way to know what caused it? I tried searching in the binlogs for some "strange" query or something with the log, but can't find what happened. Here's what the error log shows:

2017-08-30 16:33:19 7f87ddacb700  InnoDB: Assertion failure in thread 140221516396288 in file row0sel.cc line 2840 
InnoDB: Failing assertion: prebuilt->trx->isolation_level == TRX_ISO_READ_UNCOMMITTED 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.6/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery. 
21:33:19 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. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail.

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

Thread pointer: 0x37913940 
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 = 7f87ddacaec0 thread_stack 0x40000 

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

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.

The SO is CentOS Linux release 7.3.1611 (Core). Also searched for SO errors but the only thing found was something after it crashed (something from "sd.collector... Can't connect to MySQL server").

Is there something I'm missing? Tried searching some errors like that, but there are many and very different. I would like to know if I can know what caused it and if it can happen again.


The error log was trying to handle_one_connection near the end. max_threads=250 is probably more than necessary since max_used_connections=110 (high water mark) and current connection_count was 54 when the error log was recorded. key_buffer_size is very large.
read_buffer_size of 1M will likely reduce the time to process queries and reduce the per thread memory footprint required. It would be helpful to know how much RAM ( memory ) you have. SHOW GLOBAL STATUS SHOW GLOBAL VARIABLES SHOW ENGINE INNODB STATUS would all be helpful.

  • Add to that- How much RAM. – Rick James Aug 31 '17 at 21:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.