(ITS#6171) Kill or fix K&R support
by h.b.furuseth@usit.uio.no
Full_Name: Hallvard B Furuseth
Version: 2.0.0 and later
OS:
URL: http://www.openldap.org/lists/openldap-devel/200706/msg00009.html
Submission from: (NULL) (129.240.6.233)
Submitted by: hallvard
openldap-devel thread "Kill K&R C support?" from jun 2007,
edited into a single quote/response stream:
Hallvard B Furuseth wrote:
>Kurt Zeilenga wrote:
>>Hallvard B Furuseth wrote:
>>> As far as I can tell, OpenLDAP has been unusable with K&R C since
>>> openldap-2.0: lber.h in that release had prototypes unprotected
>>> by LDAP_P() in struct sockbuf_io. They've been there ever since.
>>> So LDAP_P() can [edit: probably] go.
>>
>> I note that the intent was to allow use of -lldap/-llber in K&R C
>> programs, but to require ISO C to build OpenLDAP Software.
>
> Which I think made sense. But now, apparently nobody has complained
> about the problem for 7 years. Time to quit worrying about K&R?
>
>> Seems the former is broken (lber.h issues).
Still broken today (jun 2009).
>>> Don't know which other not-strict-ISO support is still useful -
>>> I note lber.h has used <string.h> since openldap-2.2.4, for example.
>>> libldap/open.c has used <limits.h> since 2.0.0.
>>
>> The latter isn't a problem with regard to the above intent.
>>
>>> HEAD wraps that
>>> in HAVE_LIMITS_H, but it does not protect INT_MAX the same way.
>>
>> Likewise.
14 years, 5 months
Re: (ITS#6170) test039 seg faults
by michael@stroeder.com
michael@nb2:/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests>
gdb -c core.22616
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/.libs/lt-slapd
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-suse-linux".
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>...
warning: Can't read pathname for load map: Input/output error.
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/libraries/libldap_r/.libs/libldap_r-2.4-releng.so.2...done.
Loaded symbols for
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/libraries/libldap_r/.libs/libldap_r-2.4-releng.so.2
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/libraries/liblber/.libs/liblber-2.4-releng.so.2...done.
Loaded symbols for
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/libraries/liblber/.libs/liblber-2.4-releng.so.2
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /usr/lib/libdb-4.5.so...done.
Loaded symbols for /usr/lib/libdb-4.5.so
Reading symbols from /usr/lib/libodbc.so.1...done.
Loaded symbols for /usr/lib/libodbc.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libsasl2.so.2...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/libssl.so.0.9.8
Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.8
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/libltdl.so.7...done.
Loaded symbols for /usr/lib/libltdl.so.7
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libkrb5support.so.0...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/libkeyutils.so.1...done.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/sasl2/libcrammd5.so...done.
Loaded symbols for /usr/lib/sasl2/libcrammd5.so
Reading symbols from /usr/lib/sasl2/liblogin.so...done.
Loaded symbols for /usr/lib/sasl2/liblogin.so
Reading symbols from /usr/lib/sasl2/libsasldb.so...done.
Loaded symbols for /usr/lib/sasl2/libsasldb.so
Reading symbols from /usr/lib/sasl2/libotp.so...done.
Loaded symbols for /usr/lib/sasl2/libotp.so
Reading symbols from /usr/lib/sasl2/libplain.so...done.
Loaded symbols for /usr/lib/sasl2/libplain.so
Reading symbols from /usr/lib/sasl2/libgssapiv2.so...done.
Loaded symbols for /usr/lib/sasl2/libgssapiv2.so
Reading symbols from /usr/lib/sasl2/libdigestmd5.so...done.
Loaded symbols for /usr/lib/sasl2/libdigestmd5.so
Reading symbols from /usr/lib/sasl2/libanonymous.so...done.
Loaded symbols for /usr/lib/sasl2/libanonymous.so
Reading symbols from /usr/lib/sasl2/libntlm.so...done.
Loaded symbols for /usr/lib/sasl2/libntlm.so
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/back-hdb/.libs/back_hdb-2.4-releng.so.2...done.
Loaded symbols for ../servers/slapd/back-hdb/.libs/back_hdb-2.4-releng.so.2
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/back-relay/.libs/back_relay-2.4-releng.so.2...done.
Loaded symbols for
../servers/slapd/back-relay/.libs/back_relay-2.4-releng.so.2
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/back-ldap/.libs/back_ldap-2.4-releng.so.2...done.
Loaded symbols for
../servers/slapd/back-ldap/.libs/back_ldap-2.4-releng.so.2
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/back-meta/.libs/back_meta-2.4-releng.so.2...done.
Loaded symbols for
../servers/slapd/back-meta/.libs/back_meta-2.4-releng.so.2
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/back-monitor/.libs/back_monitor-2.4-releng.so.2...done.
Loaded symbols for
../servers/slapd/back-monitor/.libs/back_monitor-2.4-releng.so.2
Reading symbols from
/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/overlays/.libs/rwm-2.4-releng.so.2...done.
Loaded symbols for ../servers/slapd/overlays/.libs/rwm-2.4-releng.so.2
[New Thread 22784]
[New Thread 22616]
[New Thread 22926]
[New Thread 22646]
[New Thread 22965]
[New Thread 22892]
[New Thread 22950]
[New Thread 22909]
[New Thread 22875]
[New Thread 22939]
[New Thread 22816]
[New Thread 22953]
[New Thread 22848]
[New Thread 22818]
[New Thread 22631]
[New Thread 22765]
[New Thread 22937]
Core was generated by
`/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/servers/slapd/.libs/lt-'.
Program terminated with signal 6, Aborted.
#0 0xffffe430 in __kernel_vsyscall ()
(gdb) info threads
18 Thread 22937 0xffffe430 in __kernel_vsyscall ()
17 Thread 22765 0xffffe430 in __kernel_vsyscall ()
16 Thread 22631 0xffffe430 in __kernel_vsyscall ()
15 Thread 22818 0xffffe430 in __kernel_vsyscall ()
14 Thread 22848 0xffffe430 in __kernel_vsyscall ()
13 Thread 22953 0xffffe430 in __kernel_vsyscall ()
12 Thread 22816 0xffffe430 in __kernel_vsyscall ()
11 Thread 22939 0xffffe430 in __kernel_vsyscall ()
10 Thread 22875 0xffffe430 in __kernel_vsyscall ()
9 Thread 22909 0xffffe430 in __kernel_vsyscall ()
8 Thread 22950 0xffffe430 in __kernel_vsyscall ()
7 Thread 22892 0xffffe430 in __kernel_vsyscall ()
6 Thread 22965 0xffffe430 in __kernel_vsyscall ()
5 Thread 22646 0xffffe430 in __kernel_vsyscall ()
4 Thread 22926 0xffffe430 in __kernel_vsyscall ()
3 Thread 22616 0xffffe430 in __kernel_vsyscall ()
2 Thread 22784 0xffffe430 in __kernel_vsyscall ()
* 1 Thread 22800 0xffffe430 in __kernel_vsyscall ()
Thread 18 (Thread 22937):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590ec6 in ?? () from /lib/libc.so.6
#2 0x405100ba in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 17 (Thread 22765):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590e93 in ?? () from /lib/libc.so.6
#2 0x405100ae in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 16 (Thread 22631):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40584c56 in epoll_wait () from /lib/libc.so.6
#2 0x08073cf7 in slapd_daemon_task (ptr=0x0) at daemon.c:2325
#3 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#4 0x405843be in clone () from /lib/libc.so.6
Thread 15 (Thread 22818):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590e93 in ?? () from /lib/libc.so.6
#2 0x405100ae in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 14 (Thread 22848):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590e93 in ?? () from /lib/libc.so.6
#2 0x405100ae in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 13 (Thread 22953):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590e93 in ?? () from /lib/libc.so.6
#2 0x405100ae in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 12 (Thread 22816):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82a19d0, timeout=0x4235bb50) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82a19d0, msgid=25, all=1,
timeout=0x4235bbd0, result=0x4235bbd8) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82a1678, op=0x8289c10,
rs=0x4235c0c8, msgid=25, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078dd4f in ldap_back_modrdn (op=0x8289c10, rs=0x4235c0c8) at
modrdn.c:95
#6 0x080e05fc in overlay_op_walk (op=0x8289c10, rs=0x4235c0c8,
which=op_modrdn, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x8289c10, rs=0x4235c0c8,
which=op_modrdn) at backover.c:721
#8 0x08092b4f in fe_op_modrdn (op=0x8289c10, rs=0x4235c0c8) at modrdn.c:314
#9 0x080e05fc in overlay_op_walk (op=0x8289c10, rs=0x4235c0c8,
which=op_modrdn, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x8289c10, rs=0x4235c0c8,
which=op_modrdn) at backover.c:721
#11 0x080936b7 in do_modrdn (op=0x8289c10, rs=0x4235c0c8) at modrdn.c:186
#12 0x080772ff in connection_operation (ctx=0x4235c1cc, arg_v=0x8289c10)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x4235c1cc, argv=0x15) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 11 (Thread 22939):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590e93 in ?? () from /lib/libc.so.6
#2 0x405100ae in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 10 (Thread 22875):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x8289960, timeout=0x43362b50) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x8289960, msgid=5, all=1,
timeout=0x43362bd0, result=0x43362bd8) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x8289920, op=0x82a0de0,
rs=0x433630c8, msgid=5, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078dd4f in ldap_back_modrdn (op=0x82a0de0, rs=0x433630c8) at
modrdn.c:95
#6 0x080e05fc in overlay_op_walk (op=0x82a0de0, rs=0x433630c8,
which=op_modrdn, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x82a0de0, rs=0x433630c8,
which=op_modrdn) at backover.c:721
#8 0x08092b4f in fe_op_modrdn (op=0x82a0de0, rs=0x433630c8) at modrdn.c:314
#9 0x080e05fc in overlay_op_walk (op=0x82a0de0, rs=0x433630c8,
which=op_modrdn, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x82a0de0, rs=0x433630c8,
which=op_modrdn) at backover.c:721
#11 0x080936b7 in do_modrdn (op=0x82a0de0, rs=0x433630c8) at modrdn.c:186
#12 0x080772ff in connection_operation (ctx=0x433631cc, arg_v=0x82a0de0)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x433631cc, argv=0xe) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 9 (Thread 22909):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82b21d8, timeout=0x43d65a00) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82b21d8, msgid=1499, all=1,
timeout=0x43d65a80, result=0x43d65a88) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82b1d28, op=0x82b2648,
rs=0x43d670c8, msgid=1499, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078dadb in ldap_back_modify (op=0x82b2648, rs=0x43d670c8) at
modify.c:111
#6 0x080e05fc in overlay_op_walk (op=0x82b2648, rs=0x43d670c8,
which=op_modify, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x82b2648, rs=0x43d670c8,
which=op_modify) at backover.c:721
#8 0x0809082d in fe_op_modify (op=0x82b2648, rs=0x43d670c8) at modify.c:301
#9 0x080e05fc in overlay_op_walk (op=0x82b2648, rs=0x43d670c8,
which=op_modify, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x82b2648, rs=0x43d670c8,
which=op_modify) at backover.c:721
#11 0x0809136f in do_modify (op=0x82b2648, rs=0x43d670c8) at modify.c:175
#12 0x080772ff in connection_operation (ctx=0x43d671cc, arg_v=0x82b2648)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x43d671cc, argv=0xf) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 8 (Thread 22950):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82732c8, timeout=0x4516e9e0) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82732c8, msgid=36, all=1,
timeout=0x4516ea60, result=0x4516ea68) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x8273658, op=0x82e4298,
rs=0x4516f0c8, msgid=36, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078d2b2 in ldap_back_add (op=0x82e4298, rs=0x4516f0c8) at add.c:104
#6 0x080e05fc in overlay_op_walk (op=0x82e4298, rs=0x4516f0c8,
which=op_add, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x82e4298, rs=0x4516f0c8,
which=op_add) at backover.c:721
#8 0x0807ea1f in fe_op_add (op=0x82e4298, rs=0x4516f0c8) at add.c:334
#9 0x080e05fc in overlay_op_walk (op=0x82e4298, rs=0x4516f0c8,
which=op_add, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x82e4298, rs=0x4516f0c8,
which=op_add) at backover.c:721
#11 0x0807f5bb in do_add (op=0x82e4298, rs=0x4516f0c8) at add.c:194
#12 0x080772ff in connection_operation (ctx=0x4516f1cc, arg_v=0x82e4298)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x4516f1cc, argv=0x2b) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 7 (Thread 22892):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82e47f8, timeout=0x43863a00) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82e47f8, msgid=17, all=1,
timeout=0x43863a80, result=0x43863a88) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82e4648, op=0x82ab258,
rs=0x438650c8, msgid=17, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078dadb in ldap_back_modify (op=0x82ab258, rs=0x438650c8) at
modify.c:111
#6 0x080e05fc in overlay_op_walk (op=0x82ab258, rs=0x438650c8,
which=op_modify, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x82ab258, rs=0x438650c8,
which=op_modify) at backover.c:721
#8 0x0809082d in fe_op_modify (op=0x82ab258, rs=0x438650c8) at modify.c:301
#9 0x080e05fc in overlay_op_walk (op=0x82ab258, rs=0x438650c8,
which=op_modify, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x82ab258, rs=0x438650c8,
which=op_modify) at backover.c:721
#11 0x0809136f in do_modify (op=0x82ab258, rs=0x438650c8) at modify.c:175
#12 0x080772ff in connection_operation (ctx=0x438651cc, arg_v=0x82ab258)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x438651cc, argv=0x19) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 6 (Thread 22965):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x83188d0, timeout=0x45b72b50) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x83188d0, msgid=2, all=1,
timeout=0x45b72bd0, result=0x45b72bd8) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82ab5d0, op=0x8315870,
rs=0x45b730c8, msgid=2, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078dd4f in ldap_back_modrdn (op=0x8315870, rs=0x45b730c8) at
modrdn.c:95
#6 0x080e05fc in overlay_op_walk (op=0x8315870, rs=0x45b730c8,
which=op_modrdn, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x8315870, rs=0x45b730c8,
which=op_modrdn) at backover.c:721
#8 0x08092b4f in fe_op_modrdn (op=0x8315870, rs=0x45b730c8) at modrdn.c:314
#9 0x080e05fc in overlay_op_walk (op=0x8315870, rs=0x45b730c8,
which=op_modrdn, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x8315870, rs=0x45b730c8,
which=op_modrdn) at backover.c:721
#11 0x080936b7 in do_modrdn (op=0x8315870, rs=0x45b730c8) at modrdn.c:186
#12 0x080772ff in connection_operation (ctx=0x45b731cc, arg_v=0x8315870)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x45b731cc, argv=0x25) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 5 (Thread 22646):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82b7d80, timeout=0x41054bc0) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82b7d80, msgid=6, all=1,
timeout=0x41054c40, result=0x41054c48) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82b7d40, op=0x825ea70,
rs=0x410550c8, msgid=6, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078d75a in ldap_back_delete (op=0x825ea70, rs=0x410550c8) at
delete.c:62
#6 0x080e05fc in overlay_op_walk (op=0x825ea70, rs=0x410550c8,
which=op_delete, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x825ea70, rs=0x410550c8,
which=op_delete) at backover.c:721
#8 0x080917cb in fe_op_delete (op=0x825ea70, rs=0x410550c8) at delete.c:174
#9 0x080e05fc in overlay_op_walk (op=0x825ea70, rs=0x410550c8,
which=op_delete, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x825ea70, rs=0x410550c8,
which=op_delete) at backover.c:721
#11 0x08091d86 in do_delete (op=0x825ea70, rs=0x410550c8) at delete.c:95
#12 0x080772ff in connection_operation (ctx=0x410551cc, arg_v=0x825ea70)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x410551cc, argv=0x12) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 4 (Thread 22926):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82f0db8, timeout=0x442689e0) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82f0db8, msgid=2, all=1,
timeout=0x44268a60, result=0x44268a68) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82f0c30, op=0x82b5cb8,
rs=0x442690c8, msgid=2, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078d2b2 in ldap_back_add (op=0x82b5cb8, rs=0x442690c8) at add.c:104
#6 0x080e05fc in overlay_op_walk (op=0x82b5cb8, rs=0x442690c8,
which=op_add, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x82b5cb8, rs=0x442690c8,
which=op_add) at backover.c:721
#8 0x0807ea1f in fe_op_add (op=0x82b5cb8, rs=0x442690c8) at add.c:334
#9 0x080e05fc in overlay_op_walk (op=0x82b5cb8, rs=0x442690c8,
which=op_add, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x82b5cb8, rs=0x442690c8,
which=op_add) at backover.c:721
#11 0x0807f5bb in do_add (op=0x82b5cb8, rs=0x442690c8) at add.c:194
#12 0x080772ff in connection_operation (ctx=0x442691cc, arg_v=0x82b5cb8)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x442691cc, argv=0x1e) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
at bind.c:1704
#5 0x4078d75a in ldap_back_delete (op=0x825ea70, rs=0x410550c8) at
delete.c:62
#6 0x080e05fc in overlay_op_walk (op=0x825ea70, rs=0x410550c8,
which=op_delete, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x825ea70, rs=0x410550c8,
which=op_delete) at backover.c:721
#8 0x080917cb in fe_op_delete (op=0x825ea70, rs=0x410550c8) at delete.c:174
#9 0x080e05fc in overlay_op_walk (op=0x825ea70, rs=0x410550c8,
which=op_delete, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x825ea70, rs=0x410550c8,
which=op_delete) at backover.c:721
#11 0x08091d86 in do_delete (op=0x825ea70, rs=0x410550c8) at delete.c:95
#12 0x080772ff in connection_operation (ctx=0x410551cc, arg_v=0x825ea70)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x410551cc, argv=0x12) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
Thread 4 (Thread 22926):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4057a6a7 in poll () from /lib/libc.so.6
#2 0x40049f65 in ldap_int_select (ld=0x82f0db8, timeout=0x442689e0) at
os-ip.c:1056
#3 0x40031d1f in ldap_result (ld=0x82f0db8, msgid=2, all=1,
timeout=0x44268a60, result=0x44268a68) at result.c:335
#4 0x4078b371 in ldap_back_op_result (lc=0x82f0c30, op=0x82b5cb8,
rs=0x442690c8, msgid=2, timeout=0, sendok=LDAP_BACK_RETRY_SRES)
at bind.c:1704
#5 0x4078d2b2 in ldap_back_add (op=0x82b5cb8, rs=0x442690c8) at add.c:104
#6 0x080e05fc in overlay_op_walk (op=0x82b5cb8, rs=0x442690c8,
which=op_add, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#7 0x080e10f4 in over_op_func (op=0x82b5cb8, rs=0x442690c8,
which=op_add) at backover.c:721
#8 0x0807ea1f in fe_op_add (op=0x82b5cb8, rs=0x442690c8) at add.c:334
#9 0x080e05fc in overlay_op_walk (op=0x82b5cb8, rs=0x442690c8,
which=op_add, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#10 0x080e10f4 in over_op_func (op=0x82b5cb8, rs=0x442690c8,
which=op_add) at backover.c:721
#11 0x0807f5bb in do_add (op=0x82b5cb8, rs=0x442690c8) at add.c:194
#12 0x080772ff in connection_operation (ctx=0x442691cc, arg_v=0x82b5cb8)
at connection.c:1115
#13 0x08077c87 in connection_read_thread (ctx=0x442691cc, argv=0x1e) at
connection.c:1248
#14 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#15 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#16 0x405843be in clone () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 3 (Thread 22616):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x4024a747 in pthread_join () from /lib/libpthread.so.0
#2 0x40030204 in ldap_pvt_thread_join (thread=1086671760,
thread_return=0x0) at thr_posix.c:197
#3 0x080710f3 in slapd_daemon () at daemon.c:2700
#4 0x0805e205 in main (argc=8, argv=0xbf859b34) at main.c:950
Thread 2 (Thread 22784):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x40590e93 in ?? () from /lib/libc.so.6
#2 0x405100ae in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 22800):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0x404dd990 in raise () from /lib/libc.so.6
#2 0x404df2c8 in abort () from /lib/libc.so.6
#3 0x404d678e in __assert_fail () from /lib/libc.so.6
#4 0x4078a0eb in ldap_back_conn_delete (li=0x8202d90, lc=0x82a17e8) at
bind.c:157
#5 0x4078af81 in ldap_back_freeconn (li=0x8202d90, lc=0x82a17e8,
dolock=0) at bind.c:467
#6 0x4078b059 in ldap_back_release_conn_lock (li=0x8202d90,
lcp=0x41f5ace8, dolock=1) at bind.c:1147
#7 0x4078cc2d in ldap_back_bind (op=0x8289088, rs=0x41f5b0c8) at bind.c:355
#8 0x080e05fc in overlay_op_walk (op=0x8289088, rs=0x41f5b0c8,
which=op_bind, oi=0x81d8be0, on=0x81d8ce0) at backover.c:669
#9 0x080e10f4 in over_op_func (op=0x8289088, rs=0x41f5b0c8,
which=op_bind) at backover.c:721
#10 0x08095b5c in fe_op_bind (op=0x8289088, rs=0x41f5b0c8) at bind.c:383
#11 0x080e05fc in overlay_op_walk (op=0x8289088, rs=0x41f5b0c8,
which=op_bind, oi=0x81ffac0, on=0x81ffbc0) at backover.c:669
#12 0x080e10f4 in over_op_func (op=0x8289088, rs=0x41f5b0c8,
which=op_bind) at backover.c:721
#13 0x08096692 in do_bind (op=0x8289088, rs=0x41f5b0c8) at bind.c:205
#14 0x080772ff in connection_operation (ctx=0x41f5b1cc, arg_v=0x8289088)
at connection.c:1115
#15 0x08077c87 in connection_read_thread (ctx=0x41f5b1cc, argv=0x2c) at
connection.c:1248
#16 0x4002f430 in ldap_int_thread_pool_wrapper (xpool=0x81c77e8) at
tpool.c:698
#17 0x4024a1b5 in start_thread () from /lib/libpthread.so.0
#18 0x405843be in clone () from /lib/libc.so.6
14 years, 5 months
(ITS#6170) test039 seg faults
by michael@stroeder.com
Full_Name: Michael Ströder
Version: RE24 synced recently
OS: openSUSE Linux 11.1
URL:
Submission from: (NULL) (84.163.103.142)
I cannot tell whether that's a dup of ITS#5733.
----------------------------- Console output
-----------------------------------
>>>>> Starting test039-glue-ldap-concurrency ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to check that slapd is running...
Using ldapadd to populate the database...
Starting slapd on TCP/IP port 9012...
Using ldapsearch to check that slapd is running...
Using ldapadd to populate the database...
Starting slapd on TCP/IP port 9013...
Using ldapsearch to check that slapd is running...
MONITORDB mod
SRCDIR /usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests/testrun/./testdata
DSTDIR /usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests/testrun
pwd /usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests
Using tester for concurrent server access...
PID=22677 - Search(500): base="o=Example,c=US" scope=sub filter="(cn=Barbara
Jensen)" attrs=cn (more...).
PID=22679 - Read(1000): entry="cn=Barbara Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
PID=22685 - Modrdn(50): entry="cn=Dorothy Stevens,ou=Alumni
Association,ou=People,o=Example,c=US".
PID=22690 - Modify(50): entry="cn=Barbara Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
PID=22695 - Add/Delete(50): entry="cn=James A Jones 3,ou=Alumni
Association,ou=People,o=Example,c=US".
PID=22705 - Bind(1000): dn="cn=Barbara Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
slapd-bind PID=22705: ldap_sasl_bind_s: Invalid credentials (49)
PID=22715 - Search(500): base="ou=people,o=Example,c=US" scope=sub
filter="(cn=Bjorn Jensen)" attrs=cn (more...).
PID=22737 - Modrdn(50): entry="cn=John Doe,ou=Information Technology
Division,ou=People,o=Example,c=US".
PID=22724 - Read(1000): entry="cn=ITD Staff,ou=Groups,o=Example,c=US".
PID=22746 - Modify(50): entry="cn=Bjorn Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
PID=22758 - Add/Delete(50): entry="cn=James A Jones 5,o=Example,c=US".
PID=22772 - Bind(1000): dn="cn=Bjorn Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
PID=22786 - Search(500): base="ou=people,o=Example,c=US" scope=sub
filter="(cn=James A Jones 1)" attrs=cn (more...).
PID=22801 - Read(1000): entry="ou=Groups, o=Example,c=US".
PID=22817 - Modrdn(50): entry="cn=Ursula Hampster,ou=Alumni
Association,ou=People,o=Example,c=US".
PID=22833 - Modify(50): entry="cn=James A Jones 1,ou=Alumni
Association,ou=People,o=Example,c=US".
PID=22850 - Add/Delete(50): entry="cn=James A Jones 2,ou=Alumni
Association,ou=People,o=Example,c=US".
PID=22882 - Search(500): base="o=Example,c=US" scope=sub filter="(cn=Bjorn
Jensen)" attrs=cn (more...).
PID=22863 - Bind(1000): base="ou=People,o=Example,c=US",
filter="(userPassword=*)" attr="userPassword".
PID=22898 - Read(1000): entry="ou=Alumni Association, ou=People,
o=Example,c=US".
PID=22863 - Bind base="ou=People,o=Example,c=US" filter="(userPassword=*)" got
3 values.
slapd-bind PID=22863: ldap_sasl_bind_s: Invalid credentials (49)
slapd-search PID=22677: ldap_search_ext_s: Can't contact LDAP server (-1)
base="o=Example,c=US" filter="(cn=Barbara Jensen)"
PID=22677 - Search done (-1).
slapd-read PID=22679: ldap_search_ext_s(cn=Barbara Jensen,ou=Information
Technology Division,ou=People,o=Example,c=US): Can't contact
LDAP server (-1)
PID=22679 - Read done (-1).
slapd-modrdn PID=22685: ldap_rename_s: Can't contact LDAP server (-1)
PID=22685 - Modrdn done (-1).
slapd-modify PID=22690: ldap_modify_ext_s: Can't contact LDAP server (-1)
PID=22690 - Modify done (-1).
slapd-addel PID=22695: ldap_delete_ext_s: Can't contact LDAP server (-1)
PID=22695 - Add/Delete done (-1).
slapd-bind PID=22705: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=22705 - Bind done (-1).
slapd-modrdn PID=22737: ldap_rename_s: Can't contact LDAP server (-1)
PID=22737 - Modrdn done (-1).
slapd-search PID=22715: ldap_search_ext_s: Can't contact LDAP server (-1)
base="ou=people,o=Example,c=US" filter="(cn=Bjorn Jensen)"
PID=22715 - Search done (-1).
slapd-read PID=22724: ldap_search_ext_s(cn=ITD Staff,ou=Groups,o=Example,c=US):
Can't contact LDAP server (-1)
PID=22724 - Read done (-1).
slapd-modify PID=22833: ldap_modify_ext_s: Can't contact LDAP server (-1)
PID=22833 - Modify done (-1).
slapd-modify PID=22746: ldap_modify_ext_s: Can't contact LDAP server (-1)
PID=22746 - Modify done (-1).
slapd-addel PID=22758: ldap_add_ext_s: Can't contact LDAP server (-1)
PID=22758 - Add/Delete done (-1).
slapd-bind PID=22772: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=22772 - Bind done (-1).
slapd-search PID=22786: ldap_search_ext_s: Can't contact LDAP server (-1)
base="ou=people,o=Example,c=US" filter="(cn=James A Jones 1
)"
PID=22786 - Search done (-1).
slapd-modrdn PID=22817: ldap_rename_s: Can't contact LDAP server (-1)
PID=22817 - Modrdn done (-1).
slapd-read PID=22801: ldap_search_ext_s(ou=Groups, o=Example,c=US): Can't
contact LDAP server (-1)
PID=22801 - Read done (-1).
slapd-addel PID=22850: ldap_add_ext_s: Can't contact LDAP server (-1)
PID=22850 - Add/Delete done (-1).
slapd-bind PID=22863: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=22863 - Bind done 1 in 3.719714 seconds.
slapd-search PID=22882: ldap_search_ext_s: Can't contact LDAP server (-1)
base="o=Example,c=US" filter="(cn=Bjorn Jensen)"
PID=22882 - Search done (-1).
slapd-read PID=22898: ldap_search_ext_s(ou=Alumni Association, ou=People,
o=Example,c=US): Can't contact LDAP server (-1)
PID=22898 - Read done (-1).
PID=22986 - Modrdn(50): entry="cn=James A Jones 2,ou=Information Technology
Division,ou=People,o=Example,c=US".
slapd-modrdn PID=22986: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=22990 - Modify(50): entry="cn=ITD Staff,ou=Groups,o=Example,c=US".
PID=22992 - Add/Delete(50): entry="cn=James A Jones
4,ou=People,o=Example,c=US".
slapd-modify PID=22990: ldap_sasl_bind_s: Can't contact LDAP server (-1)
slapd-addel PID=22992: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=22999 - Bind(1000): dn="cn=Foo,ou=Meta,o=Example,c=US".
slapd-bind PID=22999: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=22999 - Bind done (-1).
PID=23005 - Search(500): base="o=Example,c=US" scope=sub filter="(cn=Alumni
Assoc Staff)" attrs=cn (more...).
slapd-search PID=23005: ldap_sasl_bind_s: Can't contact LDAP server (-1)
bindDN="cn=Manager,o=Example,c=US"
PID=23013 - Read(1000): entry="cn=James A Jones 1, ou=Alumni Association,
ou=People, o=Example,c=US".
slapd-read PID=23013: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23022 - Bind(1000): dn="".
slapd-bind PID=23022: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23022 - Bind done (-1).
PID=23032 - Search(500): base="o=Example,c=US" scope=sub filter="(cn=James*)"
attrs=cn (more...).
slapd-search PID=23032: ldap_sasl_bind_s: Can't contact LDAP server (-1)
bindDN="cn=Manager,o=Example,c=US"
PID=23041 - Read(1000): entry="ou=Meta,o=Example,c=US".
PID=23053 - Bind(1000): dn="cn=Barbara Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
slapd-read PID=23041: ldap_sasl_bind_s: Can't contact LDAP server (-1)
stopping: child exited with status 1
./scripts/test039-glue-ldap-concurrency: line 188: 22616 Aborted
(core dumped) $SLAPD -f $CONF3 -h $URI3 -d $LVL $TIMI
NG > $LOG3 2>&1
slapd-tester failed (1)!
./scripts/test039-glue-ldap-concurrency: line 193: kill: (22616) - No such
process
>>>>> ./scripts/test039-glue-ldap-concurrency failed (exit 1)
make[2]: *** [hdb-mod] Error 1
make[2]: Leaving directory
`/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory
`/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests'
make: *** [test] Error 2
slapd-bind PID=23053: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23066 - Search(500): base="cn=Monitor" scope=sub filter="(objectClass=*)"
attrs=cn (more...).
PID=23053 - Bind done (-1).
slapd-search PID=23066: ldap_sasl_bind_s: Can't contact LDAP server (-1)
bindDN="cn=Manager,o=Example,c=US"
PID=23091 - Bind(1000): dn="cn=Bjorn Jensen,ou=Information Technology
Division,ou=People,o=Example,c=US".
PID=23077 - Read(1000): entry="cn=Somewhere,ou=Meta,o=Example,c=US".
slapd-bind PID=23091: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23091 - Bind done (-1).
slapd-read PID=23077: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23106 - Search(500): base="cn=Monitor" scope=sub filter="(objectClass=*)"
attrs=cn (more...).
michael@nb2:/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap>
slapd-search PID=23106: ldap_sasl_bind_s: Can't contact LDAP serv
er (-1) bindDN="cn=Manager,o=Example,c=US"
PID=23119 - Read(1000): entry="cn=Backend 1,cn=Backends,cn=Monitor".
slapd-read PID=23119: ldap_sasl_bind_s: Can't contact LDAP server (-1)
slapd-bind PID=23135: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23152 - Search(500): base="cn=Monitor" scope=sub filter="(objectClass=*)"
attrs=cn (more...).
slapd-search PID=23152: ldap_sasl_bind_s: Can't contact LDAP server (-1)
bindDN="cn=Manager,o=Example,c=US"
PID=23181 - Bind(1000): dn="cn=Foo,ou=Meta,o=Example,c=US".
slapd-bind PID=23181: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23181 - Bind done (-1).
PID=23165 - Read(1000): entry="cn=Entries,cn=Statistics,cn=Monitor".
slapd-read PID=23165: ldap_sasl_bind_s: Can't contact LDAP server (-1)
PID=23194 - Search(500): base="cn=Monitor" scope=sub filter="(objectClass=*)"
attrs=cn (more...).
slapd-search PID=23194: ldap_sasl_bind_s: Can't contact LDAP server (-1)
bindDN="cn=Manager,o=Example,c=US"
14 years, 5 months
(ITS#6169) dds overlay bug(s) when expiring entries
by h.b.furuseth@usit.uio.no
Full_Name: Hallvard B Furuseth
Version: HEAD, RE24
OS: Linux
URL:
Submission from: (NULL) (129.240.6.233)
Submitted by: hallvard
Thinko in dds_expire():
Traversing a list chained on (struct dds_expire_t).de_next,
it keeps dds_expire_t **dep == &(previous element).de_next.
Before freeing (de = *dep), it points dep into de. Fixing.
Suspicious code in same function:
The 'default:' branch says "deferring" (deferring what? deletion?)
and does not increment ndeletes, yet 'dds_expire_t *de' is deleted
in that case as well. Is that intentional? I don't know dds. If
it's not, we could just move the free() into 'case LDAP_SUCCESS:'
and remove the 'de = NULL;' in the LDAP_NOT_ALLOWED_ON_NONLEAF case.
14 years, 5 months
(ITS#6168) Account locked without associated ppolicy
by coudot@linagora.com
Full_Name: Clement OUDOT
Version: 2.4.16
OS: Linux 2.6.18
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (83.145.72.122)
Hello,
I have a ppolicy overlay without default ppolicy:
---
overlay ppolicy
ppolicy_use_lockout
ppolicy_hash_cleartext
---
So only users with pwdPolicySubEntry should be submitted to password policy.
But if I add "pwdAccountLockedTime: 000001010000Z" to an entry without
pwdPolicySubEntry, this entry is locked.
14 years, 5 months
OpenLDAP dynamic configuration prefomance issue
by Dmitry Korotkov
Dear OpenLDAP team,
I made some OpenLDAP stress tests on our use cases and realized that
time of registering new objectClass using OpenLDAP dynamic configuration
grows linearly. It looks like slapd completely rewrites contents of
cn=config folder on any configuration change.
This issue makes OpenLDAP schema to be a bottleneck in our large
scalable application. Do you plan to store OpenLDAP configuration in bdb
or hdb database? Or another solution of this issue is planned?
WBR, Dmitry V. Korotkov
14 years, 5 months
(ITS#6167) back-ldap: TLS: uri list broken
by christian.fischer@fischundfischer.com
Full_Name: Christian Fischer
Version: 2.4.16
OS: gentoo amd64
URL:
Submission from: (NULL) (213.221.82.34)
back-ldap hangs on ldap_back_bind() while starting TLS if the first mirror in
uri list is down
ldap_pvt_thread_mutex_lock() in back-ldap/bind.c:1584 never returns and slapd
hangs
reproducible: always
steps to reproduce:
- configure a uri list with two mirrors, the first one offline, start TLS
database ldap
suffix "dc=foo,dc=bar"
uri "ldap://mirror01.foo.bar ldap://mirror02.foo.bar"
tls start tls_reqcert=never
14 years, 5 months
(ITS#6166) Overlay/backend restructuring
by h.b.furuseth@usit.uio.no
Full_Name: Hallvard B Furuseth
Version: RE25/RE30
OS:
URL:
Submission from: (NULL) (129.240.6.233)
Submitted by: hallvard
Some wishes/loose thoughts about overlay/backend code:
* Remove backends internally, making them like overlays? (RE30)
* Reduce copying of overlay data -op->o_bd->bd_info (RE25?)
* Lose slap_overinst, move its members into BackendInfo.
<hbf> Could we reduce complexity if there internally were no
(programmable) backends, only overlays? Backends would be thinly
disguised overlays. Maybe over a single fixed "core overlay"
which intercepts all calls, or the opposite - a fixed empty
backend.
<hbf> .what do overlays cost compared to backends? Must reduce copying,
but that seems already to be the plan. And slapd must repair some
data structures which overlays are not required to clean up - must
that stay? Am I talking sense at all?
<hyc> eh, not sure what you're really talking about. turn all backends
into overlays, to keep the API completely uniform?
<hbf> yes. and return values the same way - SLAP_CB_CONTINUE when they
don't know what to do, for example.
<hbf> there seems to be code snippets around doing similar things for
backends and overlays, and they mostly share the same data
structure. so i wondered if the backend stuff could simply go
away.
<hyc> so we'd still need special cases in the frontend to handle
SLAP_CB_CONTINUE falling out at the end
<hyc> ideally, sure.
<hyc> that seems like more of a 3.0 move than a 2.5
<hbf> yes, i suppose so
<hbf> and it depends on overlays being as fast as backends
<hyc> fast at what?
<hyc> there's no measurable overhead for overlays on top of backends
<hbf> handling a request. slapd does all this copying of overlay
structures that I haven't even tried to figure out, I assume that
costs time compared to a backend.
<hyc> well, a lot of that copying can go away if we just rationalize the
on_info stuff
<hyc> I already mentioned that on -devel a while back
<hyc> op->o_bd->bd_info
<hyc> if we referenced those pointers from op instead of op->o_bd we'd
need no copying at all
<hyc> but i think that would require changes to a lot of existing
backend code.
<hyc> the copying approach was taken to allow overlays to be slotted in
without modifying any backend code
<hbf> oh well, we've more pressing problems in that case
<hyc> actually come to think of it most backends don't care as it is. at
this point it's the overlays and bconfig that would need to be
changed
<hyc> I guess we should have made that change sooner rather than later,
as now the number of overlays is quite large :P
<hyc> hindsight, oh well.
<hyc> I wouldn't be opposed to attempting that change for 2.5. sooner is
obviously better now.
<hbf> related loose thought: overlays could lose all those
(slap_overinst *)op->o_bd->bd_info casts if the slap_overinst
members were inserted in BackendInfo and slap_overinst became an
obsolete wrapper about just BackendInfo. Costs ~24 bytes/backend.
<hyc> ok
<hyc> that sounds smart
14 years, 5 months