Bug #61710 MySQL segmentation fault
Submitted: 30 Jun 2011 16:38 Modified: 30 Jul 2011 16:43
Reporter: Cyril SCETBON Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S1 (Critical)
Version:5.5.9 OS:Linux
Assigned to: CPU Architecture:Any
Tags: crash, innodb

[30 Jun 2011 16:38] Cyril SCETBON
Description:
We had a crash when executing a java program that does inserts/select on innodb tables. We're not able to reproduce it.

Here is the stack :

110630 18:00:07 - 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=27262976
read_buffer_size=2097152
max_used_connections=43
max_threads=100
thread_count=44
connection_count=43
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 437363 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x2aac102a9a10
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 = 0x7bc070d0 thread_stack 0x40000
/opt/mysql559_prd/bin/mysqld(my_print_stacktrace+0x39)[0x794a09]
/opt/mysql559_prd/bin/mysqld(handle_segfault+0x380)[0x4fcc60]
/lib64/libpthread.so.0[0x3be180e7c0]
/opt/mysql559_prd/bin/mysqld(_ZN5Field10make_fieldEP10Send_field+0x25)[0x64e735]
/opt/mysql559_prd/bin/mysqld(_ZN10Item_field10make_fieldEP10Send_field+0x26)[0x671026]
/opt/mysql559_prd/bin/mysqld(_ZN8Protocol24send_result_set_metadataEP4ListI4ItemEj+0x10b)[0x50c26b]
/opt/mysql559_prd/bin/mysqld(_ZN11select_send24send_result_set_metadataER4ListI4ItemEj+0x1d)[0x54857d]
/opt/mysql559_prd/bin/mysqld(_ZN28Select_fetch_protocol_binary24send_result_set_metadataER4ListI4ItemEj+0x2e)[0x58540e]
/opt/mysql559_prd/bin/mysqld(_ZN19Materialized_cursor4openEP4JOIN+0x103)[0x74cb13]
/opt/mysql559_prd/bin/mysqld(_Z17mysql_open_cursorP3THDP13select_resultPP18Server_side_cursor+0x188)[0x74d2f8]
/opt/mysql559_prd/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x1ea)[0x585b3a]
/opt/mysql559_prd/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0x72)[0x588a82]
/opt/mysql559_prd/bin/mysqld(_Z19mysqld_stmt_executeP3THDPcj+0x175)[0x588ff5]
/opt/mysql559_prd/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xc91)[0x579f91]
/opt/mysql559_prd/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x337)[0x60dc37]
/opt/mysql559_prd/bin/mysqld(handle_one_connection+0x54)[0x60dca4]
/lib64/libpthread.so.0[0x3be18064a7]
/lib64/libc.so.6(clone+0x6d)[0x3be10d3c2d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x2195e5b0): SELECT country,docdbName,normalizedName,freq,validationAlgo,validationDate FROM CompanyDictionary cd,( SELECT dico.cleanedName AS cname FROM DMetaphone2ValidatedCompanyCleanedName dico WHERE  dico.wordMetaphone IN (SUBSTRING_INDEX(doublemetaphone(left('HOLDING',37)), ';',-1),SUBSTRING_INDEX(doublemetaphone(left('METEOR',37)), ';',-1)) AND length(dico.wordMetaphone) > 1 GROUP BY cname HAVING count(dico.cleanedName) = 2 ) AS T WHERE cd.docdbCleanedName = T.cname AND cd.validationDate IS NOT NULL
Connection ID (thread ID): 928
Status: NOT_KILLED

How to repeat:
none

Suggested fix:
none
[30 Jun 2011 16:44] MySQL Verification Team
Please try latest released version. See http://bugs.mysql.com/bug.php?id=56115 for similar callstack and fixed in 5.5.12. Thanks.
[30 Jul 2011 23: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".