Hallvard suggested that a backtrace might help. This is what
I was able to get:
(gdb) bt full
#0 0x0fb4fce0 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x0fb51620 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x0fb478dc in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x0ffb459c in ldap_new_connection (ld=0x10016128,
srvlist=0x10020278, use_ldsb=0, connect=1, bind=0xff9b4624)
at request.c:465
tv = {tv_sec = 0, tv_usec = 100000}
res = (LDAPMessage *) 0x10021458
msgid = 530
rc = 0
passwd = {bv_len = 0, bv_val = 0x0}
err = 1
savedefconn = (LDAPConn *) 0x10016098
lc = (LDAPConn *) 0x10016310
srv = (LDAPURLDesc *) 0x10020278
__PRETTY_FUNCTION__ =
"ldap_new_connection"
#4 0x0ffb3c44 in ldap_send_server_request (ld=0x10016128,
ber=0x10020338, msgid=529, parentreq=0x100163e0,
srvlist=0x10020278, lc=0x0, bind=0xff9b4624) at
request.c:206
lr = (LDAPRequest *) 0xffb6cb8
incparent = 1
rc = -6601376
#5 0x0ffb5d34 in ldap_chase_v3referrals (ld=0x10016128,
lr=0x100163e0, refs=0x0, sref=1, errstrp=0x100163fc,
hadrefp=0xff9b46f4) at request.c:1013
unfollowed = 0x0
unfollowedcnt = 0
origreq = (LDAPRequest *) 0x100163e0
srv = (LDAPURLDesc *) 0x10020278
ber = (BerElement *) 0x10020338
refarray = (char **) 0x10016218
lc = (LDAPConn *) 0x0
rc = 0
count = 0
i = 0
j = 267910176
id = 529
rinfo = {ri_msgid = 528, ri_request = 99, ri_url =
0x100201f0
"ldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,
dc=com??sub"}
#6 0x0ff970e0 in try_read1msg (ld=0x10016128, msgid=528,
all=1, lcp=0xff9b47e0, result=0xff9b48bc) at result.c:560
tmpber = {ber_opts = {lbo_valid = 2, lbo_options =
1, lbo_debug = 0}, ber_tag = 0, ber_len = 73, ber_usertag =
0,
ber_buf = 0x100201a0
" |