Comments - Authentication Plugin - PAM

10 years, 5 months ago Dmitry Bakshaev

we have troubles on smp/multicore systems with mariadb+pam+ldap+openssl on gentoo linux:

Version: '5.5.31-MariaDB' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Source distribution * glibc detected * /usr/sbin/mysqld: corrupted double-linked list: 0x00007f2088006a80 *

= Backtrace:

/lib64/libc.so.6(+0x793d6)[0x7f20ed3063d6] /lib64/libc.so.6(+0x79789)[0x7f20ed306789] /lib64/libc.so.6(+0x7a035)[0x7f20ed307035] /usr/lib64/libcrypto.so.1.0.0(CRYPTO_free+0x1d)[0x7f2091d65254] /usr/lib64/libssl.so.1.0.0(SSL_CTX_free+0x180)[0x7f2092034928] /usr/lib64/libldap-2.4.so.2(ldap_int_tls_destroy+0x15)[0x7f20926ae936] /lib64/ld-linux-x86-64.so.2(+0x12966)[0x7f20eeabb966] /lib64/ld-linux-x86-64.so.2(+0x13423)[0x7f20eeabc423] /lib64/ld-linux-x86-64.so.2(+0xde3f)[0x7f20eeab6e3f] /lib64/libdl.so.2(+0x15cf)[0x7f20ede345cf] /lib64/libdl.so.2(dlclose+0x1f)[0x7f20ede3416f] /lib64/libpam.so.0(+0x59d6)[0x7f20932009d6] /lib64/libpam.so.0(pam_end+0x33)[0x7f20931fe503] /usr/lib64/mysql/plugin/auth_pam.so(+0xb6c)[0x7f2093408b6c] /usr/sbin/mysqld[0x54bfc5] /usr/sbin/mysqld(_Z16acl_authenticateP3THDjj+0x895)[0x55edd3] /usr/sbin/mysqld[0x634615] /usr/sbin/mysqld(_Z16login_connectionP3THD+0x38)[0x63562c] /usr/sbin/mysqld(_Z22thd_prepare_connectionP3THD+0x21)[0x635c20] /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x136)[0x635fa8] /usr/sbin/mysqld(handle_one_connection+0x42)[0x636095] /lib64/libpthread.so.0(+0x8bbe)[0x7f20ee895bbe] /lib64/libc.so.6(clone+0x6d)[0x7f20ed36ec9d]

 
10 years, 5 months ago Dmitry Bakshaev

details:

/etc/mysql/my.cnf:
...
[mysqld]
plugin-load=auth_pam.so
...

/etc/pam.d/mysql:
auth required pam_ldap.so config=/etc/ldap_mysql.conf debug
account required pam_ldap.so config=/etc/ldap_mysql.conf debug

/etc/ldap_mysql.conf:
uri ldaps:ldap.xxx ldaps:ldap2.xxx
ssl on
scope sub

software versions:
dev-db/mariadb 5.5.31
sys-auth/pam_ldap 186
net-nds/openldap 2.4.35
sys-libs/pam 1.1.6

 
10 years, 5 months ago Sergei Golubchik

Please submit a bug report on http://mariadb.org/jira

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.