(gdb) set args -h "ldap:/// ldapi:///" -u ldap -d 0 (gdb) run Starting program: /usr/local/openldap/libexec/slapd -h "ldap:/// ldapi:///" -u ldap -d 0 [Thread debugging using libthread_db enabled] [New Thread 0x7ffccd356700 (LWP 12717)] [New Thread 0x7ffcccb55700 (LWP 12718)] [New Thread 0x7ffccc354700 (LWP 12719)] [New Thread 0x7ffccbb53700 (LWP 12726)] [New Thread 0x7ffccb352700 (LWP 12729)] [New Thread 0x7ffccab51700 (LWP 12730)] [New Thread 0x7ffcca350700 (LWP 12731)] [New Thread 0x7ffcc9b4f700 (LWP 12735)] [New Thread 0x7ffcc934e700 (LWP 12736)] [New Thread 0x7ffcc8b4d700 (LWP 12737)] [New Thread 0x7ffcc834c700 (LWP 12738)] [New Thread 0x7ffcc7b4b700 (LWP 12739)] [New Thread 0x7ffcc734a700 (LWP 12740)] [New Thread 0x7ffcc6b49700 (LWP 12741)] [New Thread 0x7ffcc6348700 (LWP 12742)] [New Thread 0x7ffcc5b47700 (LWP 12747)] [New Thread 0x7ffcc5346700 (LWP 12748)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffcc834c700 (LWP 12738)] 0x0000003f05e091c0 in pthread_mutex_lock () from /lib64/libpthread.so.0 Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-13.el6.x86_64 cyrus-sasl-md5-2.1.23-13.el6.x86_64 cyrus-sasl-plain-2.1.23-13.el6.x86_64 db4-4.7.25-16.el6.x86_64 glibc-2.12-1.47.el6_2.9.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 openssl-1.0.0-20.el6_2.3.x86_64 tcp_wrappers-libs-7.6-57.el6.x86_64 zlib-1.2.3-27.el6.x86_64 (gdb) (gdb) (gdb) bt #0 0x0000003f05e091c0 in pthread_mutex_lock () from /lib64/libpthread.so.0 #1 0x00000000005b9e46 in ldap_pvt_thread_mutex_lock (mutex=0x71696e556d6f63ac) at thr_posix.c:296 #2 0x00000000004ce355 in bdb_cache_add (bdb=0xb1c700, eip=0x23b067e0, e=0xe5d158, nrdn=0x7ffcc834b3f0, txn=0x11dc4b00, lock=0x7ffcc834b460) at cache.c:1171 #3 0x00000000004cac72 in bdb_add (op=0x11730800, rs=0x7ffcc834ba10) at add.c:480 #4 0x0000000000434ed7 in fe_op_add (op=0x11730800, rs=0x7ffcc834ba10) at add.c:334 #5 0x00000000004347e5 in do_add (op=0x11730800, rs=0x7ffcc834ba10) at add.c:194 #6 0x000000000042b5fc in connection_operation (ctx=0x7ffcc834bb40, arg_v=0x11730800) at connection.c:1150 #7 0x000000000042bb9d in connection_read_thread (ctx=0x7ffcc834bb40, argv=0x1e) at connection.c:1286 #8 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #9 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #10 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 1 [Switching to thread 1 (Thread 0x7ffff7538720 (LWP 12714))]#0 0x0000003f05e0804d in pthread_join () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0804d in pthread_join () from /lib64/libpthread.so.0 #1 0x00000000005b9d34 in ldap_pvt_thread_join (thread=140723751315200, thread_return=0x0) at thr_posix.c:197 #2 0x0000000000428586 in slapd_daemon () at daemon.c:2930 #3 0x0000000000406ca3 in main (argc=7, argv=0x7fffffffe648) at main.c:1012 (gdb) thread 2 [Switching to thread 2 (Thread 0x7ffccd356700 (LWP 12717))]#0 0x0000003f05e0e185 in __lll_unlock_wake () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0e185 in __lll_unlock_wake () from /lib64/libpthread.so.0 #1 0x0000003f05e0a697 in _L_unlock_657 () from /lib64/libpthread.so.0 #2 0x0000003f05e0a5ff in pthread_mutex_unlock () from /lib64/libpthread.so.0 #3 0x00000000005b9e7a in ldap_pvt_thread_mutex_unlock (mutex=0xa94008) at thr_posix.c:308 #4 0x00000000005b7e3d in ldap_pvt_thread_pool_submit (tpool=0x8f41e0, start_routine=0x42baa7 , arg=0x1b) at tpool.c:342 #5 0x000000000042bc76 in connection_read_activate (s=27) at connection.c:1312 #6 0x0000000000427e03 in slapd_daemon_task (ptr=0x7fffffffe3f8) at daemon.c:2794 #7 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #8 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 3 [Switching to thread 3 (Thread 0x7ffcccb55700 (LWP 12718))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 4 [Switching to thread 4 (Thread 0x7ffccc354700 (LWP 12719))]#0 0x0000003f056f542e in __lll_lock_wait_private () from /lib64/libc.so.6 (gdb) bt #0 0x0000003f056f542e in __lll_lock_wait_private () from /lib64/libc.so.6 #1 0x0000003f056e2648 in _L_lock_798 () from /lib64/libc.so.6 #2 0x0000003f056e2112 in __vsyslog_chk () from /lib64/libc.so.6 #3 0x0000003f056e25d0 in syslog () from /lib64/libc.so.6 #4 0x00000000004424ab in slap_send_ldap_result (op=0x36d10000, rs=0x7ffccc353a10) at result.c:862 #5 0x00000000004ec92c in bdb_search (op=0x36d10000, rs=0x7ffccc353a10) at search.c:1083 #6 0x000000000042f10d in fe_op_search (op=0x36d10000, rs=0x7ffccc353a10) at search.c:402 #7 0x000000000042e951 in do_search (op=0x36d10000, rs=0x7ffccc353a10) at search.c:247 #8 0x000000000042b5fc in connection_operation (ctx=0x7ffccc353b40, arg_v=0x36d10000) at connection.c:1150 #9 0x000000000042bb9d in connection_read_thread (ctx=0x7ffccc353b40, argv=0x1b) at connection.c:1286 #10 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #11 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #12 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 5 [Switching to thread 5 (Thread 0x7ffccbb53700 (LWP 12726))]#0 0x0000003f05e0e48d in write () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0e48d in write () from /lib64/libpthread.so.0 #1 0x00000000005f15f5 in sb_stream_write (sbiod=0xc501b0, buf=0x10c685e0, len=904) at sockbuf.c:535 #2 0x00000000005f2094 in sb_debug_write (sbiod=0xc25e60, buf=0x10c685e0, len=904) at sockbuf.c:854 #3 0x00000000005f14d4 in ber_int_sb_write (sb=0xc50240, buf=0x10c685e0, len=904) at sockbuf.c:445 #4 0x00000000005ed8ca in ber_flush2 (sb=0xc50240, ber=0x7ffccb9d1550, freeit=0) at io.c:246 #5 0x0000000000440deb in send_ldap_ber (op=0x14b58c00, ber=0x7ffccb9d1550) at result.c:338 #6 0x0000000000444c25 in slap_send_search_entry (op=0x14b58c00, rs=0x7ffccbb52a10) at result.c:1426 #7 0x00000000004ec5d3 in bdb_search (op=0x14b58c00, rs=0x7ffccbb52a10) at search.c:1014 #8 0x000000000042f10d in fe_op_search (op=0x14b58c00, rs=0x7ffccbb52a10) at search.c:402 #9 0x000000000042e951 in do_search (op=0x14b58c00, rs=0x7ffccbb52a10) at search.c:247 #10 0x000000000042b5fc in connection_operation (ctx=0x7ffccbb52b40, arg_v=0x14b58c00) at connection.c:1150 #11 0x000000000042bb9d in connection_read_thread (ctx=0x7ffccbb52b40, argv=0x1d) at connection.c:1286 #12 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #13 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #14 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 6 [Switching to thread 6 (Thread 0x7ffccb352700 (LWP 12729))]#0 0x00000000005e94a3 in ber_tag_and_rest (ber=0x205bf360, bv=0x7ffccb3519a0) at decode.c:106 106 decode.c: No such file or directory. in decode.c (gdb) bt #0 0x00000000005e94a3 in ber_tag_and_rest (ber=0x205bf360, bv=0x7ffccb3519a0) at decode.c:106 #1 0x00000000005e95d4 in ber_peek_element (ber=0x205bf360, bv=0x7ffccb3519a0) at decode.c:176 #2 0x00000000005e96e0 in ber_skip_element (ber=0x205bf360, bv=0x7ffccb3519a0) at decode.c:227 #3 0x00000000005e9db9 in ber_get_stringbv (ber=0x205bf360, bv=0x7ffccb3519a0, option=0) at decode.c:482 #4 0x00000000005eaa8b in ber_scanf (ber=0x205bf360, fmt=0x60a16f "m") at decode.c:775 #5 0x000000000044a769 in do_modify (op=0xc58c00, rs=0x7ffccb351a10) at modify.c:71 #6 0x000000000042b5fc in connection_operation (ctx=0x7ffccb351b40, arg_v=0xc58c00) at connection.c:1150 #7 0x000000000042bb9d in connection_read_thread (ctx=0x7ffccb351b40, argv=0x1b) at connection.c:1286 #8 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #9 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #10 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 7 [Switching to thread 7 (Thread 0x7ffccab51700 (LWP 12730))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 8 [Switching to thread 8 (Thread 0x7ffcca350700 (LWP 12731))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 9 [Switching to thread 9 (Thread 0x7ffcc9b4f700 (LWP 12735))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 10 [Switching to thread 10 (Thread 0x7ffcc934e700 (LWP 12736))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 11 [Switching to thread 11 (Thread 0x7ffcc8b4d700 (LWP 12737))]#0 0x0000003f056437c0 in _itoa_word () from /lib64/libc.so.6 (gdb) bt #0 0x0000003f056437c0 in _itoa_word () from /lib64/libc.so.6 #1 0x0000003f05646368 in vfprintf () from /lib64/libc.so.6 #2 0x0000003f0564e988 in fprintf () from /lib64/libc.so.6 #3 0x0000003f056e2388 in __vsyslog_chk () from /lib64/libc.so.6 #4 0x0000003f056e25d0 in syslog () from /lib64/libc.so.6 #5 0x0000000000442595 in slap_send_ldap_result (op=0x14b59c00, rs=0x7ffcc8b4ca10) at result.c:867 #6 0x00000000004d485f in bdb_delete (op=0x14b59c00, rs=0x7ffcc8b4ca10) at delete.c:588 #7 0x000000000044e4cc in fe_op_delete (op=0x14b59c00, rs=0x7ffcc8b4ca10) at delete.c:174 #8 0x000000000044e13f in do_delete (op=0x14b59c00, rs=0x7ffcc8b4ca10) at delete.c:95 #9 0x000000000042b5fc in connection_operation (ctx=0x7ffcc8b4cb40, arg_v=0x14b59c00) at connection.c:1150 #10 0x000000000042bb9d in connection_read_thread (ctx=0x7ffcc8b4cb40, argv=0x24) at connection.c:1286 #11 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #12 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #13 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 12 [Switching to thread 12 (Thread 0x7ffcc834c700 (LWP 12738))]#0 0x0000003f05e091c0 in pthread_mutex_lock () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e091c0 in pthread_mutex_lock () from /lib64/libpthread.so.0 #1 0x00000000005b9e46 in ldap_pvt_thread_mutex_lock (mutex=0x71696e556d6f63ac) at thr_posix.c:296 #2 0x00000000004ce355 in bdb_cache_add (bdb=0xb1c700, eip=0x23b067e0, e=0xe5d158, nrdn=0x7ffcc834b3f0, txn=0x11dc4b00, lock=0x7ffcc834b460) at cache.c:1171 #3 0x00000000004cac72 in bdb_add (op=0x11730800, rs=0x7ffcc834ba10) at add.c:480 #4 0x0000000000434ed7 in fe_op_add (op=0x11730800, rs=0x7ffcc834ba10) at add.c:334 #5 0x00000000004347e5 in do_add (op=0x11730800, rs=0x7ffcc834ba10) at add.c:194 #6 0x000000000042b5fc in connection_operation (ctx=0x7ffcc834bb40, arg_v=0x11730800) at connection.c:1150 #7 0x000000000042bb9d in connection_read_thread (ctx=0x7ffcc834bb40, argv=0x1e) at connection.c:1286 #8 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #9 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #10 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 13 [Switching to thread 13 (Thread 0x7ffcc7b4b700 (LWP 12739))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 14 [Switching to thread 14 (Thread 0x7ffcc734a700 (LWP 12740))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 15 [Switching to thread 15 (Thread 0x7ffcc6b49700 (LWP 12741))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 16 [Switching to thread 16 (Thread 0x7ffcc6348700 (LWP 12742))]#0 0x0000003f056de8b3 in select () from /lib64/libc.so.6 (gdb) bt #0 0x0000003f056de8b3 in select () from /lib64/libc.so.6 #1 0x00000000004f04d0 in bdb_trans_backoff (num_retries=1) at trans.c:55 #2 0x00000000004c997f in bdb_add (op=0x11731400, rs=0x7ffcc6347a10) at add.c:147 #3 0x0000000000434ed7 in fe_op_add (op=0x11731400, rs=0x7ffcc6347a10) at add.c:334 #4 0x00000000004347e5 in do_add (op=0x11731400, rs=0x7ffcc6347a10) at add.c:194 #5 0x000000000042b5fc in connection_operation (ctx=0x7ffcc6347b40, arg_v=0x11731400) at connection.c:1150 #6 0x000000000042bb9d in connection_read_thread (ctx=0x7ffcc6347b40, argv=0x25) at connection.c:1286 #7 0x00000000005b8871 in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:688 #8 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #9 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 17 [Switching to thread 17 (Thread 0x7ffcc5b47700 (LWP 12747))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 18 [Switching to thread 18 (Thread 0x7ffcc5346700 (LWP 12748))]#0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 (gdb) bt #0 0x0000003f05e0b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005b9df3 in ldap_pvt_thread_cond_wait (cond=0xa94030, mutex=0xa94008) at thr_posix.c:277 #2 0x00000000005b87ca in ldap_int_thread_pool_wrapper (xpool=0xa94000) at tpool.c:675 #3 0x0000003f05e077f1 in start_thread () from /lib64/libpthread.so.0 #4 0x0000003f056e5ccd in clone () from /lib64/libc.so.6 (gdb) thread 19 Thread ID 19 not known. (gdb) (gdb) generate-core-file warning: Memory read failed for corefile section, 286720 bytes at 0x7ffd4d357000. warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffd5459d000. warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffd5496f000. warning: Memory read failed for corefile section, 286720 bytes at 0x7fffd496f000. warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff5db5000. Saved corefile core.12714 (gdb) quit A debugging session is active. Inferior 1 [process 12714] will be killed. Quit anyway? (y or n) y