Segmentation Faults (segfaults) in MySQL Server in Red Hat Enterprise Linux 5

Solution Verified - Updated -

Issue

  • mysqld has segfaulted a number of times in the past few days.
  • mysqld segfaults when attempting to show the CREATE TABLE statement that defines a view with a missing table.  The following message appears in /var/log/mysqld.log:
    091116  2:01:51 - 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=2147483648
    read_buffer_size=131072
    max_used_connections=451
    max_connections=500
    threads_connected=36
    It is possible that mysqld could use up to 
    key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 3185148 K
    bytes of memory
    Hope that's ok; if not, decrease some variables in the equation.
    
    thd=0x2aab40ad17a0
    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=0x4a142fb0, backtrace may not be correct.
    Stack range sanity check OK, backtrace follows:
    (nil)
    Stack trace seems successful - bottom reached
    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 0x2aab4084b0f0  is invalid pointer
    thd->thread_id=1731495
    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.
    

Environment

Red Hat Enterprise Linux 5.4 / mysql-server-5.0.77-3.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.