[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: OpenLDAP keeps on dying sporadically
Ok, here is the first result running the debugging mode with gdb(1)
>> Procedure overview:
(gdb) run
(gdb) bt full
(gdb) thread apply all bt
(gdb) generate-core-file
>> This came up:
candidates = Error accessing memory address 0x7ffffeafb6f0: Bad address.
# ================================================== #
root@FreeBSD [~]$ gdb --args /usr/local/libexec/slapd -d -1 -f
/usr/local/etc/openldap/slapd.conf -u ldap -g ldap -h
"ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap:/// ldaps:///"
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run
Starting program: /usr/local/libexec/slapd -d -1 -f
/usr/local/etc/openldap/slapd.conf -u ldap -g ldap -h
ldapi://%2fvar%2frun%2fopenldap%2fldapi/\ ldap:///\ ldaps:///
[New LWP 101138]
[New Thread 802806400 (LWP 101138/slapd)]
[...]
553e8a87 conn=1006 op=2 SRCH attr=mailAlias
553e8a87 send_ldap_result: err=0 matched="" text=""
0010: 51 bd aa 7d 3f 1c 50 fb 25 f8 59 9e 9d 9a ba 0f Q..}?.P.%.Y.....
0020: d0 07 aa 95 ac 1c e7 3e 81 f6 e6 0b 6d 09 94 9b .......>....m...
0730: 1b 51 e3 08 4b 38 ec f1 ee 8c 0f 35 cd 55 eb 80 .Q..K8.....5.U..
553e8a87 ==> limits_get: conn=1006 op=2 self="[anonymous]"
this="ou=accounts,ou=mail,dc=mydomain,dc=local"
0740: 83 e2 3b b5 13 fd 08 51 13 25 d9 7d 57 9f 6b e9 ..;....Q.%.}W.k.
[New Thread 943c11800 (LWP 100198/slapd)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 943c11800 (LWP 100198/slapd)]
mdb_search (op=0x94581c400, rs=0x7ffffebfbb60) at search.c:404
404 search.c: No such file or directory.
in search.c
Current language: auto; currently minimal
(gdb) bt full
#0 mdb_search (op=0x94581c400, rs=0x7ffffebfbb60) at search.c:404
mdb = (struct mdb_info *) 0x80290a000
id = 0
cursor = 0
nsubs = 128
ncand = 0
cscope = 0
lastid = 18446744073709551615
candidates = Error accessing memory address 0x7ffffeafb6f0: Bad
address.
(gdb) thread apply all bt
[New Thread 943c15000 (LWP 101255/slapd)]
[New Thread 943c14c00 (LWP 101213/slapd)]
[New Thread 943c14800 (LWP 101202/slapd)]
[New Thread 943c14400 (LWP 100898/slapd)]
[New Thread 943c14000 (LWP 100884/slapd)]
[New Thread 943c13c00 (LWP 100647/slapd)]
[New Thread 943c13800 (LWP 100619/slapd)]
[New Thread 943c13400 (LWP 100577/slapd)]
[New Thread 943c13000 (LWP 100531/slapd)]
[New Thread 943c12c00 (LWP 100515/slapd)]
[New Thread 943c12800 (LWP 100347/slapd)]
[New Thread 943c12400 (LWP 100311/slapd)]
[New Thread 943c12000 (LWP 100296/slapd)]
[New Thread 943c11c00 (LWP 100268/slapd)]
[New Thread 943c11400 (LWP 100165/slapd)]
[New Thread 802807800 (LWP 100103/slapd)]
Thread 19 (Thread 802807800 (LWP 100103/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfd48f in lutil_debug () from
/usr/local/lib/liblber-2.4.so.2
#5 0x000000000043b96f in slapd_daemon_task (ptr=0x8028afb08) at
daemon.c:2530
#6 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#7 0x0000000000000000 in ?? ()
Thread 18 (Thread 943c11400 (LWP 100165/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfcf4a in ber_log_bprint () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800c0017e in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#8 0x00000008009e1905 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#9 0x0000000801807e84 in BIO_read () from /lib/libcrypto.so.7
#10 0x000000080146ce97 in ssl3_read_n () from /usr/lib/libssl.so.7
#11 0x000000080146db61 in ssl3_read_bytes () from /usr/lib/libssl.so.7
#12 0x0000000801470aa0 in ssl3_read () from /usr/lib/libssl.so.7
#13 0x00000008009e16b8 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x0000000800c00126 in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#15 0x0000000800bff0f2 in ber_int_sb_read () from
/usr/local/lib/liblber-2.4.so.2
#16 0x0000000800bfc720 in ber_get_next () from
/usr/local/lib/liblber-2.4.so.2
#17 0x0000000000444cf5 in connection_input (conn=0x8034099c0,
cri=0x7fffff3fcc18) at connection.c:1572
#18 0x0000000000444ac5 in connection_read (s=28, cri=0x7fffff3fcc18) at
connection.c:1460
#19 0x0000000000442291 in connection_read_thread (ctx=0x7fffff3fcc80,
argv=0x1c) at connection.c:1284
#20 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#21 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#22 0x0000000000000000 in ?? ()
Thread 17 (Thread 943c11c00 (LWP 100268/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfcf4a in ber_log_bprint () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800c0028e in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#8 0x00000008009e1895 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#9 0x0000000801807f6a in BIO_write () from /lib/libcrypto.so.7
#10 0x00000008017d36cc in BIO_f_buffer () from /lib/libcrypto.so.7
#11 0x00000008014659e7 in ssl3_accept () from /usr/lib/libssl.so.7
#12 0x0000000801470dd7 in ssl23_accept () from /usr/lib/libssl.so.7
#13 0x00000008009e0cd9 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x00000008009dee4b in ldap_pvt_tls_accept () from
/usr/local/lib/libldap_r-2.4.so.2
#15 0x0000000000444703 in connection_read (s=35, cri=0x7ffffe3fac18) at
connection.c:1372
#16 0x0000000000442291 in connection_read_thread (ctx=0x7ffffe3fac80,
argv=0x23) at connection.c:1284
#17 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#18 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#19 0x0000000000000000 in ?? ()
Thread 16 (Thread 943c12000 (LWP 100296/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd2a9 in ber_dump () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfd1cf in ber_log_dump () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800bf9266 in ber_scanf () from /usr/local/lib/liblber-2.4.so.2
#8 0x0000000000472692 in do_bind (op=0x94601cc00, rs=0x7ffffdbf9b60) at
bind.c:102
#9 0x0000000000443398 in connection_operation (ctx=0x7ffffdbf9c80,
arg_v=0x94601cc00) at connection.c:1155
#10 0x000000000044235b in connection_read_thread (ctx=0x7ffffdbf9c80,
argv=0x1d) at connection.c:1291
#11 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#12 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()
Thread 15 (Thread 943c12400 (LWP 100311/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
---Type <return> to continue, or q <return> to quit---
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dfc087 in fflush () from /lib/libc.so.7
#4 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfcf4a in ber_log_bprint () from
/usr/local/lib/liblber-2.4.so.2
#6 0x0000000800c0028e in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#7 0x00000008009e1895 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#8 0x0000000801807f6a in BIO_write () from /lib/libcrypto.so.7
#9 0x00000008017d36cc in BIO_f_buffer () from /lib/libcrypto.so.7
#10 0x00000008014659e7 in ssl3_accept () from /usr/lib/libssl.so.7
#11 0x0000000801470dd7 in ssl23_accept () from /usr/lib/libssl.so.7
#12 0x00000008009e0cd9 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#13 0x00000008009dee4b in ldap_pvt_tls_accept () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x0000000000444703 in connection_read (s=37, cri=0x7ffffd3f8c18) at
connection.c:1372
#15 0x0000000000442291 in connection_read_thread (ctx=0x7ffffd3f8c80,
argv=0x25) at connection.c:1284
#16 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#17 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#18 0x0000000000000000 in ?? ()
Thread 14 (Thread 943c12800 (LWP 100347/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dfc087 in fflush () from /lib/libc.so.7
#4 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfcf4a in ber_log_bprint () from
/usr/local/lib/liblber-2.4.so.2
#6 0x0000000800c0028e in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#7 0x00000008009e1895 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#8 0x0000000801807f6a in BIO_write () from /lib/libcrypto.so.7
#9 0x00000008017d36cc in BIO_f_buffer () from /lib/libcrypto.so.7
#10 0x00000008014659e7 in ssl3_accept () from /usr/lib/libssl.so.7
#11 0x0000000801470dd7 in ssl23_accept () from /usr/lib/libssl.so.7
#12 0x00000008009e0cd9 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#13 0x00000008009dee4b in ldap_pvt_tls_accept () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x0000000000444703 in connection_read (s=36, cri=0x7ffffcbf7c18) at
connection.c:1372
#15 0x0000000000442291 in connection_read_thread (ctx=0x7ffffcbf7c80,
argv=0x24) at connection.c:1284
#16 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#17 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#18 0x0000000000000000 in ?? ()
Thread 13 (Thread 943c12c00 (LWP 100515/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dfc087 in fflush () from /lib/libc.so.7
#4 0x0000000800bfcee0 in ber_pvt_log_printf () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfbe78 in ber_flush2 () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000000460d1a in send_ldap_ber (op=0x946c6ac00,
ber=0x7ffffc266168) at result.c:339
#7 0x000000000045c9e6 in send_ldap_response (op=0x946c6ac00,
rs=0x7ffffc3f6bd0) at result.c:705
#8 0x000000000045d25c in slap_send_ldap_result (op=0x946c6ac00,
rs=0x7ffffc3f6bd0) at result.c:861
#9 0x0000000802c1e61b in mdb_search (op=0x946c6ac00, rs=0x7ffffc3f6bd0)
at search.c:1164
#10 0x00000000004473ad in fe_op_search (op=0x946c6ac00,
rs=0x7ffffc3f6bd0) at search.c:402
#11 0x0000000000446bc2 in do_search (op=0x946c6ac00, rs=0x7ffffc3f6bd0)
at search.c:247
#12 0x0000000000443398 in connection_operation (ctx=0x7ffffc3f6c80,
arg_v=0x946c6ac00) at connection.c:1155
#13 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#15 0x0000000000000000 in ?? ()
Thread 12 (Thread 943c13000 (LWP 100531/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dfc087 in fflush () from /lib/libc.so.7
#4 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd2b5 in ber_dump () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfd1cf in ber_log_dump () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800bfca96 in ber_get_next () from
/usr/local/lib/liblber-2.4.so.2
#8 0x0000000000444cf5 in connection_input (conn=0x8034097b0,
cri=0x7ffffbbf5c18) at connection.c:1572
#9 0x0000000000444ac5 in connection_read (s=27, cri=0x7ffffbbf5c18) at
connection.c:1460
#10 0x0000000000442291 in connection_read_thread (ctx=0x7ffffbbf5c80,
argv=0x1b) at connection.c:1284
#11 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#12 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()
Thread 11 (Thread 943c13400 (LWP 100577/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
---Type <return> to continue, or q <return> to quit---
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfcf4a in ber_log_bprint () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800c0028e in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#8 0x00000008009e1895 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#9 0x0000000801807f6a in BIO_write () from /lib/libcrypto.so.7
#10 0x00000008017d36cc in BIO_f_buffer () from /lib/libcrypto.so.7
#11 0x00000008014659e7 in ssl3_accept () from /usr/lib/libssl.so.7
#12 0x0000000801470dd7 in ssl23_accept () from /usr/lib/libssl.so.7
#13 0x00000008009e0cd9 in ldap_start_tls_s () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x00000008009dee4b in ldap_pvt_tls_accept () from
/usr/local/lib/libldap_r-2.4.so.2
#15 0x0000000000444703 in connection_read (s=38, cri=0x7ffffb3f4c18) at
connection.c:1372
#16 0x0000000000442291 in connection_read_thread (ctx=0x7ffffb3f4c80,
argv=0x26) at connection.c:1284
#17 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#18 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#19 0x0000000000000000 in ?? ()
Thread 10 (Thread 943c13800 (LWP 100619/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfd48f in lutil_debug () from
/usr/local/lib/liblber-2.4.so.2
#5 0x000000000045c3a0 in send_ldap_response (op=0x947811400,
rs=0x7ffffabf3b60) at result.c:609
#6 0x000000000045d25c in slap_send_ldap_result (op=0x947811400,
rs=0x7ffffabf3b60) at result.c:861
#7 0x0000000802c1e61b in mdb_search (op=0x947811400, rs=0x7ffffabf3b60)
at search.c:1164
#8 0x00000000004473ad in fe_op_search (op=0x947811400,
rs=0x7ffffabf3b60) at search.c:402
#9 0x0000000000446bc2 in do_search (op=0x947811400, rs=0x7ffffabf3b60)
at search.c:247
#10 0x0000000000443398 in connection_operation (ctx=0x7ffffabf3c80,
arg_v=0x947811400) at connection.c:1155
#11 0x000000000044235b in connection_read_thread (ctx=0x7ffffabf3c80,
argv=0x17) at connection.c:1291
#12 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#13 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#14 0x0000000000000000 in ?? ()
Thread 9 (Thread 943c13c00 (LWP 100647/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd158 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfd2b5 in ber_dump () from /usr/local/lib/liblber-2.4.so.2
#7 0x0000000800bfd1cf in ber_log_dump () from
/usr/local/lib/liblber-2.4.so.2
#8 0x0000000800bfca96 in ber_get_next () from
/usr/local/lib/liblber-2.4.so.2
#9 0x0000000000444cf5 in connection_input (conn=0x80340a200,
cri=0x7ffffa3f2c18) at connection.c:1572
#10 0x0000000000444ac5 in connection_read (s=32, cri=0x7ffffa3f2c18) at
connection.c:1460
#11 0x0000000000442291 in connection_read_thread (ctx=0x7ffffa3f2c80,
argv=0x20) at connection.c:1284
#12 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#13 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#14 0x0000000000000000 in ?? ()
Thread 8 (Thread 943c14000 (LWP 100884/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dfc087 in fflush () from /lib/libc.so.7
#4 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd2b5 in ber_dump () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfd1cf in ber_log_dump () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800bf9266 in ber_scanf () from /usr/local/lib/liblber-2.4.so.2
#8 0x0000000000445bc1 in do_search (op=0x94801c400, rs=0x7ffff9bf1b60)
at search.c:72
#9 0x0000000000443398 in connection_operation (ctx=0x7ffff9bf1c80,
arg_v=0x94801c400) at connection.c:1155
#10 0x000000000044235b in connection_read_thread (ctx=0x7ffff9bf1c80,
argv=0x19) at connection.c:1291
#11 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#12 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()
Thread 7 (Thread 943c14400 (LWP 100898/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfcf4a in ber_log_bprint () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800c0017e in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
---Type <return> to continue, or q <return> to quit---
#8 0x0000000800bff0f2 in ber_int_sb_read () from
/usr/local/lib/liblber-2.4.so.2
#9 0x0000000800bfca1a in ber_get_next () from
/usr/local/lib/liblber-2.4.so.2
#10 0x0000000000444cf5 in connection_input (conn=0x8034095a0,
cri=0x7ffff93f0c18) at connection.c:1572
#11 0x0000000000444ac5 in connection_read (s=26, cri=0x7ffff93f0c18) at
connection.c:1460
#12 0x0000000000442291 in connection_read_thread (ctx=0x7ffff93f0c80,
argv=0x1a) at connection.c:1284
#13 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#14 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#15 0x0000000000000000 in ?? ()
Thread 6 (Thread 943c14800 (LWP 101202/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dfc087 in fflush () from /lib/libc.so.7
#4 0x0000000800bfcee0 in ber_pvt_log_printf () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800c00167 in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bff0f2 in ber_int_sb_read () from
/usr/local/lib/liblber-2.4.so.2
#7 0x0000000800bfca1a in ber_get_next () from
/usr/local/lib/liblber-2.4.so.2
#8 0x0000000000444cf5 in connection_input (conn=0x803408940,
cri=0x7ffff8befc18) at connection.c:1572
#9 0x0000000000444ac5 in connection_read (s=20, cri=0x7ffff8befc18) at
connection.c:1460
#10 0x0000000000442291 in connection_read_thread (ctx=0x7ffff8befc80,
argv=0x14) at connection.c:1284
#11 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#12 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()
Thread 5 (Thread 943c14c00 (LWP 101213/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801aa27f4 in pthread_mutex_destroy () from /lib/libthr.so.3
#2 0x0000000801dfc237 in flockfile () from /lib/libc.so.7
#3 0x0000000801dd7e64 in fputs () from /lib/libc.so.7
#4 0x0000000800bfcc66 in ber_error_print () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfd002 in ber_bprint () from /usr/local/lib/liblber-2.4.so.2
#6 0x0000000800bfd2b5 in ber_dump () from /usr/local/lib/liblber-2.4.so.2
#7 0x0000000800bfd1cf in ber_log_dump () from
/usr/local/lib/liblber-2.4.so.2
#8 0x0000000800bf9266 in ber_scanf () from /usr/local/lib/liblber-2.4.so.2
#9 0x0000000000445bc1 in do_search (op=0x948c6ac00, rs=0x7ffff83eeb60)
at search.c:72
#10 0x0000000000443398 in connection_operation (ctx=0x7ffff83eec80,
arg_v=0x948c6ac00) at connection.c:1155
#11 0x000000000044235b in connection_read_thread (ctx=0x7ffff83eec80,
argv=0x1e) at connection.c:1291
#12 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#13 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#14 0x0000000000000000 in ?? ()
Thread 4 (Thread 943c15000 (LWP 101255/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x0000000801dfc0a9 in fflush () from /lib/libc.so.7
#2 0x0000000800bfcee0 in ber_pvt_log_printf () from
/usr/local/lib/liblber-2.4.so.2
#3 0x0000000800c00167 in ber_int_sb_write () from
/usr/local/lib/liblber-2.4.so.2
#4 0x0000000800bff0f2 in ber_int_sb_read () from
/usr/local/lib/liblber-2.4.so.2
#5 0x0000000800bfc720 in ber_get_next () from
/usr/local/lib/liblber-2.4.so.2
#6 0x0000000000444cf5 in connection_input (conn=0x803408b50,
cri=0x7ffff7bedc18) at connection.c:1572
#7 0x0000000000444ac5 in connection_read (s=21, cri=0x7ffff7bedc18) at
connection.c:1460
#8 0x0000000000442291 in connection_read_thread (ctx=0x7ffff7bedc80,
argv=0x15) at connection.c:1284
#9 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#10 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#11 0x0000000000000000 in ?? ()
Thread 3 (Thread 943c11800 (LWP 100198/slapd)):
#0 mdb_search (op=0x94581c400, rs=0x7ffffebfbb60) at search.c:404
#1 0x00000000004473ad in fe_op_search (op=0x94581c400,
rs=0x7ffffebfbb60) at search.c:402
#2 0x0000000000446bc2 in do_search (op=0x94581c400, rs=0x7ffffebfbb60)
at search.c:247
#3 0x0000000000443398 in connection_operation (ctx=0x7ffffebfbc80,
arg_v=0x94581c400) at connection.c:1155
#4 0x000000000044235b in connection_read_thread (ctx=0x7ffffebfbc80,
argv=0x18) at connection.c:1291
#5 0x00000008009b7f9a in ldap_pvt_thread_pool_submit () from
/usr/local/lib/libldap_r-2.4.so.2
#6 0x0000000801a9c4f5 in pthread_create () from /lib/libthr.so.3
#7 0x0000000000000000 in ?? ()
Thread 2 (Thread 802806400 (LWP 100636/slapd)):
#0 0x0000000801aa78cc in __error () from /lib/libthr.so.3
#1 0x000000000043a770 in slapd_daemon () at daemon.c:2929
#2 0x0000000000416b5a in main (argc=11, argv=0x7fffffffe568) at main.c:1012
404 in search.c
(gdb) generate-core-file
warning: Memory read failed for corefile section, 5368709120 bytes at
0x0000000803c00000
Killed
root@FreeBSD [~] $ ls -lach ./
-rw-r--r-- 1 root wheel 3.6G 27 Apr 22:01 core.38120
# ================================================== #
Seems like something went wrong here. Am I using gdb wrong?
Am 27.04.15 um 19:04 schrieb Michael Ströder:
Leander Schäfer wrote:
Can you please provide me a link, cause I wasn't able to find
"current RE24" on the official website nor on the FTP mirror.
Use git or this link to checkout snapshot of the RE24 branch:
http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=snapshot;h=refs/heads/OPENLDAP_REL_ENG_2_4;sf=tgz
Ciao, Michael.