Hello
We have problems with Mysql Cluster. Sometimes, mysqld is crashing and restarting. It happens when certain querys are executed
by clients, but not always, I mean, we can execute one query without problem, wait a minute, execute the same query again and the server crashes.
I attach some data:
We have two nodes on two machines. Until now we had problems only in node A. OS is Red Hat Linux release 9 (Shrike) with Mysql
Version: '4.1.7-max-log'
One query that crash the server is:
mysql> SHOW FULL COLUMNS FROM scusers;
When the query works well you can see the columns of the table.
when the query crashes you can see in the log:
***********************************************************************************
mysqld got signal 11;
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.
key_buffer_size=16777216
read_buffer_size=258048
max_used_connections=62
max_connections=100
threads_connected=2
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 92783 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd=0x8a2a2d8
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...
Cannot determine thread, fp=0xbdbfe878, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x8131043
0x40041d0d
0x83970fa
0x81b38b2
0x81b0c3e
0x81c24ad
0x8142830
0x8144b89
0x813f13f
0x813eac8
0x813e1f8
0x4003bae0
0x40169927
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read
http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack
trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8a21ec0 = SHOW FULL COLUMNS FROM scusers
thd->thread_id=1
The manual page at
http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.
Number of processes running now: 0
050215 12:47:37 mysqld restarted
050215 12:47:37 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
050215 12:47:37 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 263715535.
InnoDB: Doing recovery: scanned up to log sequence number 0 263715570
InnoDB: Last MySQL binlog file position 0 79, file name ./cartago-bin.000040
050215 12:47:37 InnoDB: Flushing modified pages from the buffer pool...
050215 12:47:37 InnoDB: Started; log sequence number 0 263715570
***********************************************************************************
The stack looks like:
***********************************************************************************
0x8131043 handle_segfault + 423
0x40041d0d _end + 933234565
0x83989dc checkFailedNode__3Ndb + 28
0x8397116 startTransaction__3NdbUiPCcUi + 42
0x81b38b2 ndb_get_table_statistics__FP3NdbPCcPUxT2 + 250
0x81b0c3e info__13ha_ndbclusterUi + 70
0x81c24ad mysqld_show_fields__FP3THDP13st_table_listPCcb + 121
0x8142830 mysql_execute_command__FP3THD + 10204
0x8144b89 mysql_parse__FP3THDPcUi + 169
0x813f13f dispatch_command__F19enum_server_commandP3THDPcUi + 1643
0x813eac8 do_command__FP3THD + 188
0x813e1f8 handle_one_connection + 616
0x4003bae0 _end + 933209432
0x40169927 _end + 934445983
***********************************************************************************
Any help would be appreciated.
Thank you.
Manuel Thomas