[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4300) slapd crash with monitor backend
OK.
Here are some news: it confirms the problem. I have a gdb trace
same thing on the fresh 2.3.15
(gdb) bt
#0 0x402f583b in raise () from /lib/tls/libc.so.6
#1 0x402f6fa2 in abort () from /lib/tls/libc.so.6
#2 0x402ef2df in __assert_fail () from /lib/tls/libc.so.6
#3 0x0812191e in monitor_cache_dup ()
(gdb)
and on the slapd terminal:
=> send_search_entry: conn 10 dn="cn=Backend
5,cn=Backends,cn=Monitor" (attrsOnly)
ber_flush: 46 bytes to sd 13
<= send_search_entry: conn 10 exit.
=> send_search_entry: conn 10 dn="cn=Backend
6,cn=Backends,cn=Monitor" (attrsOnly)
ber_flush: 46 bytes to sd 13
<= send_search_entry: conn 10 exit.
send_ldap_result: conn=10 op=2 p=3
send_ldap_response: msgid=3 tag=101 err=0
ber_flush: 14 bytes to sd 13
connection_get(13): got connid=10
connection_read(13): checking for input on id=10
ber_get_next
ber_get_next: tag 0x30 len 82 contents:
ber_get_next
do_search
ber_get_next on fd 13 failed errno=11 (Resource temporarily unavailable)
ber_scanf fmt ({miiiib) ber:
>>> dnPrettyNormal: <cn=Connection 9,cn=Connections,cn=Monitor>
=> ldap_bv2dn(cn=Connection 9,cn=Connections,cn=Monitor,0)
ldap_err2string
<= ldap_bv2dn(cn=Connection 9,cn=Connections,cn=Monitor)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=Connection 9,cn=Connections,cn=Monitor)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=connection 9,cn=connections,cn=monitor)=0 Success
<<< dnPrettyNormal: <cn=Connection 9,cn=Connections,cn=Monitor>,
<cn=connection 9,cn=connections,cn=monitor>
ber_scanf fmt (m) ber:
ber_scanf fmt ({M}}) ber:
==> limits_get: conn=10 op=3 dn="cn=adm,dc=univmed,dc=fr"
=> monitor_back_search
slapd: cache.c:114: monitor_cache_lock: Assertion `e != ((void *)0)'
failed.
Compile options:
export CFLAGS="-O3 -fomit-frame-pointer -mcpu=pentiumpro -march=i686
-ffast-math -D_REENTRANT -fPIC"
export LDFLAGS=-lcrypt
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/sbin
--enable-ldbm --sbindir=/usr/sbin\
--enable-ldbm-api=berkeley --enable-dynamic --enable-crypt
--enable-monitor --with-monitor-module=static\
--enable-shared --without-kerberos --enable-password --enable-local
--without-cyrus-sasl --with-tls\
--mandir=/usr/share/man
Kurt D. Zeilenga a écrit :
You should see if any of the changes since 2.3.11 have
addressed this. That is, you should try to reproduce
the problem using 2.3.14 (or .15 when its released,
or OPENLDAP_REL_ENG_2_3).
Kurt
At 03:22 AM 1/4/2006, lalot@univ-aix.fr wrote:
Full_Name: LALOT Dominique
Version: 2.3.11 bdb 4.3
OS: Linux 2.6 (debian stable)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.50.125.9)
database monitor
access to dn.subtree=cn=monitor
by dn.exact=cn=adm,dc=xxx,dc=fr read
by * none
Using phpldapdmin 0.9.5 as a client, I can log in cn=monitor
see the branches
I open connections, then trying to see something under, see 3 branches
Clic the first and slapd crash.. Don't know how to debug (get a core dump?)
Same if I do the test in some other branch
Last extract of the logs:
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 op=4 SRCH attr=objectClass
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 op=4 SEARCH RESULT tag=101 err=0
nentries=1 text=
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 op=5 SRCH
base="cn=Current,cn=Connections,cn=Monitor" scope=0 deref=1
filter="(objectClass=*)"
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 op=5 SRCH attr=objectClass
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 op=5 SEARCH RESULT tag=101 err=0
nentries=1 text=
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 op=6 UNBIND
Jan 4 12:13:42 anuaire slapd[4094]: conn=23 fd=18 closed
Jan 4 12:13:45 anuaire slapd[4094]: conn=24 fd=18 ACCEPT from
IP=127.0.0.1:32988 (IP=0.0.0.0:389)
Jan 4 12:13:45 anuaire slapd[4094]: conn=24 op=0 BIND dn="cn=adm,dc=xx,dc=fr"
method=128
Jan 4 12:13:45 anuaire slapd[4094]: conn=24 op=0 BIND dn="cn=adm,dc=xx,dc=fr"
mech=SIMPLE ssf=0
Jan 4 12:13:45 anuaire slapd[4094]: conn=24 op=0 RESULT tag=97 err=0 text=
Jan 4 12:13:45 anuaire slapd[4094]: conn=24 op=1 SRCH base="cn=Connection
23,cn=Connections,cn=Monitor" scope=0 deref=1 filter="(objectClass=*)"
Jan 4 12:13:45 anuaire slapd[4094]: conn=24 op=1 SRCH attr=objectClass
--
Dominique LALOT
Ingénieur Système Réseau CISCAM Pole Réseau
Université de la Méditerranée http://annuaire.univmed.fr/showuser.php?uid=lalot