Bug #71933 MySQL server has gone away
Submitted: 5 Mar 2014 10:19 Modified: 5 Mar 2014 10:56
Reporter: Veeresh Bhat Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5-5-8 OS:Other (SLES 10)
Assigned to: CPU Architecture:Any
Tags: MySQL server has gone away

[5 Mar 2014 10:19] Veeresh Bhat
Description:
We can notice a lot of following errors:

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=268435456
read_buffer_size=2097152
max_used_connections=4
max_threads=500
thread_count=4
connection_count=4
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2315827 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0xa6cd6f0
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 = 0x47912158 thread_stack 0x40000
/softs/mysql/5-5-8/bin/mysqld(my_print_stacktrace+0x33)[0x8cac13]
/softs/mysql/5-5-8/bin/mysqld(handle_segfault+0x33d)[0x4fe93d]
/lib64/libpthread.so.0[0x2b5443ca0d60]
/softs/mysql/5-5-8/bin/mysqld(_ZN5Field10make_fieldEP10Send_field+0x18)[0x63f1e8]
/softs/mysql/5-5-8/bin/mysqld(_ZN10Item_field10make_fieldEP10Send_field+0x24)[0x6696b4]
/softs/mysql/5-5-8/bin/mysqld(_ZN8Protocol24send_result_set_metadataEP4ListI4ItemEj+0x2f9)[0x50ad09]
/softs/mysql/5-5-8/bin/mysqld(_ZN11select_send24send_result_set_metadataER4ListI4ItemEj+0x15)[0x541a65]
/softs/mysql/5-5-8/bin/mysqld(_ZN28Select_fetch_protocol_binary24send_result_set_metadataER4ListI4ItemEj+0x2c)[0x576c9c]
/softs/mysql/5-5-8/bin/mysqld(_ZN19Materialized_cursor4openEP4JOIN+0xf2)[0x72ebe2]
/softs/mysql/5-5-8/bin/mysqld(_Z17mysql_open_cursorP3THDP13select_resultPP18Server_side_cursor+0x183)[0x72e6a3]
/softs/mysql/5-5-8/bin/mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x1c8)[0x579618]
/softs/mysql/5-5-8/bin/mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0x72)[0x5798b2]
/softs/mysql/5-5-8/bin/mysqld(_Z19mysqld_stmt_executeP3THDPcj+0xe8)[0x579b78]
/softs/mysql/5-5-8/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x4d6)[0x56c966]
/softs/mysql/5-5-8/bin/mysqld(_Z10do_commandP3THD+0xc5)[0x56d6c5]
/softs/mysql/5-5-8/bin/mysqld(_Z24do_handle_one_connectionP3THD+0xd4)[0x5f71c4]
/softs/mysql/5-5-8/bin/mysqld(handle_one_connection+0x4a)[0x5f733a]
/softs/mysql/5-5-8/bin/mysqld(pfs_spawn_thread+0x57)[0x768f97]
/lib64/libpthread.so.0[0x2b5443c99193]
/lib64/libc.so.6(__clone+0x6d)[0x2b5444716dfd]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0xa7b0d58 = SELECT DISTINCT column_name FROM information_schema.columns WHERE table_name='agm_commissionclaiminginvoice_master' AND table_schema=SCHEMA() AND column_name NOT IN ('bigram_sig_p0', 'bigram_sig_p1', 'bigram_sig_p2', 'bigram_sig_p3', 'bigram_sig_p4', 'bigram_sig_p5', 'bigram_sig_p6', 'bigram_sig_p7', 'sgram_sig_p0', 'sgram_sig_p1', 'sgram_sig_p2', 'sgram_sig_p3', 'sgram_sig_p4', 'sgram_sig_p5', 'sgram_sig_p6', 'sgram_sig_p7') ORDER BY ordinal_position
thd->thread_id=3
thd->killed=NOT_KILLED
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.
140305 10:44:16 mysqld_safe Number of processes running now: 0
140305 10:44:16 mysqld_safe mysqld restarted
140305 10:44:16 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use InnoDB's own implementation
InnoDB: Compressed tables use zlib 1.2.3
140305 10:44:16  InnoDB: Using Linux native AIO
140305 10:44:16  InnoDB: Initializing buffer pool, size = 1.5G
140305 10:44:16  InnoDB: Completed initialization of buffer pool
140305 10:44:16  InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 148711596186
140305 10:44:16  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...
InnoDB: Doing recovery: scanned up to log sequence number 148711598300
140305 10:44:18  InnoDB: 1.1.4 started; log sequence number 148711598300
140305 10:44:18 [Note] Event Scheduler: Loaded 0 events
140305 10:44:18 [Note] /softs/mysql/5-5-8/bin/mysqld: ready for connections.
Version: '5.5.8'  socket: '/oradata5/mysql/GHI09/mysql.sock'  port: 3414  Source distribution

How to repeat:
Since, It is a DEV system, not sure, which operation would have caused this issue.

Suggested fix:
Not available
[5 Mar 2014 10:31] MySQL Verification Team
5.5.8 is far too old, the current version is 5.5.36:
http://dev.mysql.com/downloads/mysql/5.5.html

This looks like a known and fixed bug:
http://bugs.mysql.com/bug.php?id=56115
[5 Mar 2014 10:56] Veeresh Bhat
Hi Shane,

Thanks for the reply, Is there any fix available for 5.5.8 ?

Regards,
Veeresh