--=-KyDwFvnw0ca1u3hWxz7q
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Dnia 2012-02-15, =C5=9Bro o godzinie 10:11 -0800, Quanah Gibson-Mount pisze=
:
> --On Wednesday, February 15, 2012 1:00 PM +0000 tomasz.rutkowski(a)tombas.p=
l=20
> wrote:
>=20
> > Full_Name: Tomasz Rutkowski
> > Version: 2.4.28, 2.4.29
> > OS: PLD Linux (Th) x86_64
> > URL:
> > Submission from: (NULL) (91.216.16.90)
> >
> >
> > back_mdb crashes when it's accessed through back_relay (rwm-suffixmassa=
ge
> > rewrite) for authentication, works normal for search/write however.
>=20
>=20
> Please provide a full backtrace from gdb, with debugging symbols.
>=20
mdb: o=3Dcompany
relay+rwm: dc=3Dcompany,dc=3Dpl -> ou=3Daccounts,o=3Dcompany
given:
ldapsearch -b dc=3Dcompany,dc=3Dpl -D \
uid=3Duser,ou=3Dpeople,ou=3Daccounts,o=3Dcompany
works, but:
ldapsearch -b dc=3Dcompany,dc=3Dpl -D \
uid=3Duser,ou=3Dpeople,dc=3Dcompany,dc=3Dpl
segfaults
with best regards
--=20
Tomasz Rutkowski <tomasz.rutkowski(a)tombas.pl>
TOMBAS Tomasz Rutkowski
--=-KyDwFvnw0ca1u3hWxz7q
Content-Disposition: attachment; filename="ol-bt_full.txt"
Content-Type: text/plain; name="ol-bt_full.txt"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
(gdb) bt full
#0 mdb_txn_begin (env=0x0, parent=0x0, flags=131072, ret=0x7fffe40014c0) at ../../../libraries/libmdb/mdb.c:1516
txn = <optimized out>
rc = <optimized out>
size = <optimized out>
#1 0x00007ffff4c0b6a6 in mdb_opinfo_get (op=0x7fffe42275c0, mdb=0x555555a0dbb0, rdonly=<optimized out>, moip=0x7fffee5d3f70) at id2entry.c:457
rc = <optimized out>
renew = 0
data = <optimized out>
ctx = 0x7fffee5d4b60
moi = 0x7fffe40014b0
oex = <optimized out>
__PRETTY_FUNCTION__ = "mdb_opinfo_get"
#2 0x00007ffff4c0b90e in mdb_entry_get (op=0x7fffe42275c0, ndn=0x7fffe42275f8, oc=0x0, at=0x0, rw=0, ent=0x7fffee5d4478) at id2entry.c:294
mdb = 0x555555a0dbb0
moi = 0x7fffe40014b0
txn = 0x0
e = 0x0
rc = <optimized out>
at_name = <optimized out>
#3 0x00005555555fb724 in overlay_entry_get_ov ()
No symbol table info available.
#4 0x00005555555fb787 in ?? ()
No symbol table info available.
#5 0x00007ffff37dbf5b in ppolicy_bind_response (op=0x7fffe42275c0, rs=0x7fffee5d4a00) at ppolicy.c:921
ppb = 0x7fffe4001340
on = 0x555555a10680
mod = 0x0
m = <optimized out>
pwExpired = 0
ngut = -1
warn = -1
age = <optimized out>
rc = <optimized out>
a = <optimized out>
now = <optimized out>
pwtime = -1
nowstr = "\000\000\000\000\000\000\000\000p\230\241UUU\000\000\300u\"\344\377\177"
timestamp = {
bv_len = 49,
bv_val = 0x7ffff4020b15 "H\213\223`\001"
}
bi = 0x555555a0e3c0
e = <optimized out>
#6 0x000055555559f337 in ?? ()
No symbol table info available.
#7 0x000055555559f8bb in ?? ()
No symbol table info available.
#8 0x00005555555a042d in slap_send_ldap_result ()
No symbol table info available.
#9 0x00005555555ad712 in fe_op_bind_success ()
No symbol table info available.
#10 0x00005555555ade5f in fe_op_bind ()
No symbol table info available.
#11 0x00005555555fba87 in overlay_op_walk ()
No symbol table info available.
#12 0x00005555555fbb6e in ?? ()
No symbol table info available.
#13 0x00005555555ad4e6 in do_bind ()
No symbol table info available.
#14 0x000055555558fc19 in ?? ()
No symbol table info available.
#15 0x000055555558ff1b in ?? ()
No symbol table info available.
#16 0x00007ffff7b9bd8a in ldap_int_thread_pool_wrapper (xpool=0x555555908b20) at tpool.c:688
pool = 0x555555908b20
task = 0x7fffe80008c0
work_list = <optimized out>
ctx = {
ltu_id = 140737192482560,
ltu_key = {{
ltk_key = 0x5555555e5f10,
ltk_data = 0x7fffe40008c0,
ltk_free = 0x5555555e5f30 <slap_sl_mem_destroy>
},
{
ltk_key = 0x7ffff2dd7010,
ltk_data = 0x7fffe4232b10,
ltk_free = 0x7ffff4c0ac40 <mdb_reader_free>
},
{
ltk_key = 0x55555558db30,
ltk_data = 0x7fffe42279f0,
ltk_free = 0x55555558dc10
},
{
ltk_key = 0x0,
ltk_data = 0x7fffe4225b90,
ltk_free = 0
},
{
ltk_key = 0x0,
ltk_data = 0x0,
ltk_free = 0
} <repeats 25 times>,
{
ltk_key = 0x0,
ltk_data = 0x7ffff6514fca,
ltk_free = 0
},
{
ltk_key = 0x0,
ltk_data = 0x0,
ltk_free = 0
},
{
ltk_key = 0x0,
ltk_data = 0x0,
ltk_free = 0
}}
}
kctx = <optimized out>
keyslot = <optimized out>
hash = <optimized out>
__PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper"
#17 0x00007ffff6513fef in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00007ffff6249cdd in clone () from /lib64/libc.so.6
No symbol table info available.
#19 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)
--=-KyDwFvnw0ca1u3hWxz7q
Content-Disposition: attachment; filename="ol-bt_threads.txt"
Content-Type: text/plain; name="ol-bt_threads.txt"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Thread 5 (Thread 0x7fffee5d5700 (LWP 10141)):
#0 mdb_txn_begin (env=0x0, parent=0x0, flags=131072, ret=0x7fffe40014c0) at ../../../libraries/libmdb/mdb.c:1516
#1 0x00007ffff4c0b6a6 in mdb_opinfo_get (op=0x7fffe42275c0, mdb=0x555555a0dbb0, rdonly=<optimized out>, moip=0x7fffee5d3f70) at id2entry.c:457
#2 0x00007ffff4c0b90e in mdb_entry_get (op=0x7fffe42275c0, ndn=0x7fffe42275f8, oc=0x0, at=0x0, rw=0, ent=0x7fffee5d4478) at id2entry.c:294
#3 0x00005555555fb724 in overlay_entry_get_ov ()
#4 0x00005555555fb787 in ?? ()
#5 0x00007ffff37dbf5b in ppolicy_bind_response (op=0x7fffe42275c0, rs=0x7fffee5d4a00) at ppolicy.c:921
#6 0x000055555559f337 in ?? ()
#7 0x000055555559f8bb in ?? ()
#8 0x00005555555a042d in slap_send_ldap_result ()
#9 0x00005555555ad712 in fe_op_bind_success ()
#10 0x00005555555ade5f in fe_op_bind ()
#11 0x00005555555fba87 in overlay_op_walk ()
#12 0x00005555555fbb6e in ?? ()
#13 0x00005555555ad4e6 in do_bind ()
#14 0x000055555558fc19 in ?? ()
#15 0x000055555558ff1b in ?? ()
#16 0x00007ffff7b9bd8a in ldap_int_thread_pool_wrapper (xpool=0x555555908b20) at tpool.c:688
#17 0x00007ffff6513fef in start_thread () from /lib64/libpthread.so.0
#18 0x00007ffff6249cdd in clone () from /lib64/libc.so.6
#19 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7fffeedd6700 (LWP 10140)):
#0 0x00007ffff6517f3c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007ffff7b9bde7 in ldap_int_thread_pool_wrapper (xpool=0x555555908b20) at tpool.c:675
#2 0x00007ffff6513fef in start_thread () from /lib64/libpthread.so.0
#3 0x00007ffff6249cdd in clone () from /lib64/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7ffff37d8700 (LWP 10139)):
#0 0x00007ffff624a3b3 in epoll_wait () from /lib64/libc.so.6
#1 0x000055555558ab80 in ?? ()
#2 0x00007ffff6513fef in start_thread () from /lib64/libpthread.so.0
#3 0x00007ffff6249cdd in clone () from /lib64/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7feb740 (LWP 10137)):
#0 0x00007ffff651529f in pthread_join () from /lib64/libpthread.so.0
#1 0x000055555558cf75 in slapd_daemon ()
#2 0x0000555555573f79 in main ()
--=-KyDwFvnw0ca1u3hWxz7q
Content-Disposition: attachment; filename="ol-segfault.txt"
Content-Type: text/plain; name="ol-segfault.txt"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Starting program: /usr/sbin/slapd -u slapd -g slapd -d 0 -h ldap:///
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff37d8700 (LWP 10138)]
[Thread 0x7ffff37d8700 (LWP 10138) exited]
[New Thread 0x7ffff37d8700 (LWP 10139)]
[New Thread 0x7fffeedd6700 (LWP 10140)]
[New Thread 0x7fffee5d5700 (LWP 10141)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee5d5700 (LWP 10141)]
mdb_txn_begin (env=0x0, parent=0x0, flags=131072, ret=0x7fffe40014c0) at ../../../libraries/libmdb/mdb.c:1516
1516 if (env->me_flags & MDB_FATAL_ERROR) {
--=-KyDwFvnw0ca1u3hWxz7q--