MySQL binlog index file corrupted with *** glibc detected *** /apps/mysql/bin/mysqld: double free or corruption (Doc ID 2123652.1)

Last updated on JULY 12, 2017

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.

Goal

Why does the MySQL binary log index contain a stack trace:

*** glibc detected *** /apps/mysql/bin/mysqld: double free or corruption (fasttop): 0x00007f7fa0016920 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3848275e66]
/lib64/libldap-2.4.so.2(ldap_int_tls_destroy+0x15)[0x7f7fb0625f55]
/lib64/libldap-2.4.so.2(ldap_ld_free+0x29f)[0x7f7fb060c0df]
/lib64/security/pam_ldap.so(+0x53f7)[0x7f7fb08473f7]
/lib64/security/pam_ldap.so(+0x56c1)[0x7f7fb08476c1]
/lib64/security/pam_ldap.so(+0x66f3)[0x7f7fb08486f3]
/lib64/security/pam_ldap.so(pam_sm_authenticate+0x2fc)[0x7f7fb08489fc]
/lib64/libpam.so.0(+0x2cee)[0x7f7fc6052cee]
/lib64/libpam.so.0(pam_authenticate+0x40)[0x7f7fc6052600]
/apps/mysql/lib/plugin/authentication_pam.so(+0x141d)[0x7f7fc625f41d]
/apps/mysql/bin/mysqld[0x6b7874]
/apps/mysql/bin/mysqld(_Z16acl_authenticateP3THDj+0xe54)[0x6ca204]
/apps/mysql/bin/mysqld(_Z16login_connectionP3THD+0x1c9)[0x6f54c9]
/apps/mysql/bin/mysqld(_Z22thd_prepare_connectionP3THD+0x24)[0x6f56f4]
/apps/mysql/bin/mysqld(_Z24do_handle_one_connectionP3THD+0xf3)[0x6f5f83]
/apps/mysql/bin/mysqld(handle_one_connection+0x45)[0x6f6085]
/apps/mysql/bin/mysqld(pfs_spawn_thread+0x126)[0xb0f6c6]
/lib64/libpthread.so.0[0x38486079d1]
/lib64/libc.so.6(clone+0x6d)[0x38482e88fd] 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms