hyc(a)symas.com said the following on 12/02/07 11:04:
> I've written up all of the remaining missing pages noted in this ITS. Someone
> else should review the docs to double-check and see if anything was omitted.
> I'll leave it up to someone else to add to RE23 if desired, otherwise we'll
> just leave these for RE24.
I can't see any of these in man3 at:
http://www.openldap.org/devel/cvsweb.cgi/doc/man/man3/?hideattic=1&sortbyda…
Am I looking in the wrong place?
Gavin.
--
Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry(a)suretecsystems.com
Open Source. Open Solutions.(tm)
http://www.suretecsystems.com/
Sure. New core dumps and binary file is at
http://mariska.inter.net.il/~imriz/slapd-core.tar.gz
Please notice that the previous dump was from FreeBSD ports (OpenLDAP
version 2.3.33).
This one was fetched from the CVS (OPENLDAP_REL_ENG_2_3), with the
following configure options:
./configure --with-threads=posix --with-tls=openssl --enable-dynamic
--without-cyrus-sasl --enable-modules --localstatedir=/var/
db --enable-ldbm=mod --enable-crypt --enable-lmpasswd --enable-ldap=mod
--enable-meta=mod --enable-rewrite --enable-null=mod --enabl
e-monitor=mod --enable-proxycache --disable-syncprov --enable-bdb=mod
--enable-hdb=mod --enable-dbm-api=berkeley --disable-slurpd --
prefix=/usr/local --enable-debug
-----Original Message-----
From: Howard Chu [mailto:openldap-its@OpenLDAP.org]
Sent: Tuesday, February 13, 2007 1:14 AM
To: Imri Zvik
Subject: Re: slapd+pcache keeps crashing on FreeBSD 6.2 (ITS#4841)
It looks like this core is from a binary without debug symbols present,
can you
recompile with debugging enabled and get a new stack trace and core
file?
Full_Name: Imri Zvik
Version: 2.3.33
OS: FreeBSD 6.2
URL: http://mariska.inter.net.il/~imriz/75624-slapd.core
Submission from: (NULL) (213.8.76.159)
slapd keeps crashing every couple of hours, backtrace is as follows:
(gdb) bt
#0 0xa83ae58a in strcasecmp () from /lib/libc.so.6
#1 0x080a934c in an_find ()
#2 0x080d59bd in overlay_init ()
#3 0x080d61dc in overlay_init ()
#4 0x080c837d in overlay_op_walk ()
#5 0x080c8599 in overlay_op_walk ()
#6 0x080c8616 in overlay_op_walk ()
#7 0x0806ebc3 in fe_op_search ()
#8 0x0806e6e2 in do_search ()
#9 0x0806c147 in connection_done ()
#10 0xa816b936 in ldap_int_thread_pool_wrapper () from
/usr/local/lib/libldap_r-2.3.so.2
#11 0xa83025cf in pthread_create () from /usr/lib/libthr.so.2
#12 0x00000000 in ?? ()
complete core dump is provided.
I've written up all of the remaining missing pages noted in this ITS. Someone
else should review the docs to double-check and see if anything was omitted.
I'll leave it up to someone else to add to RE23 if desired, otherwise we'll
just leave these for RE24.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
Chief Architect, OpenLDAP http://www.openldap.org/project/
ando(a)sys-net.it wrote:
> Full_Name: Pierangelo Masarati
> Version: HEAD
> OS: irrelevant?
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (81.72.89.40)
> Submitted by: ando
>
>
> I'm seeing occasional failures of syncrepl-related tests in HEAD. In case of
> test043, results differend once, but after repeating the test everything went
> smoth.
>
> In some cases test045 resulted in a core dump:
> In this case, numcsns is 8 because syncprov incorrectly tested for
> BER_BVISEMPTY() instead of BER_BVISNULL when creating the csn array:
Good catch.
> Fixing that still results in a test failure, but without core dump:
> apparently, none of the modifications made it into the consumer.
> After another try, things just go smooth again... keep testing.
We need to change these fixed delays for replication into explicit checks
like you did for test049. Otherwise it will take too long to loop the tests
enough times to trigger an error...
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
Chief Architect, OpenLDAP http://www.openldap.org/project/
Full_Name: Pierangelo Masarati
Version: HEAD
OS: irrelevant?
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.72.89.40)
Submitted by: ando
I'm seeing occasional failures of syncrepl-related tests in HEAD. In case of
test043, results differend once, but after repeating the test everything went
smoth.
In some cases test045 resulted in a core dump:
(gdb) bt
#0 0x00418060 in memchr () from /lib/tls/libc.so.6
#1 0x080f5eef in slap_parse_csn_sid (csn=0x87b6798) at ldapsync.c:128
#2 0x080f5fa1 in slap_parse_csn_sids (csns=0x87b6778, numcsns=8)
at ldapsync.c:148
#3 0x081ce0c6 in syncprov_db_open (be=0x8770bd0) at syncprov.c:2544
#4 0x080f31de in over_db_func (be=0x8770bd0, which=db_open) at backover.c:61
#5 0x080f35dd in over_db_open (be=0x8770bd0) at backover.c:173
#6 0x0808e1d1 in backend_startup_one (be=0x8770bd0) at backend.c:212
#7 0x0808e65e in backend_startup (be=0x8770bd0) at backend.c:303
#8 0x080b578a in slap_startup (be=0x0) at init.c:248
#9 0x08062ee1 in main (argc=8, argv=0xbffa3554) at main.c:919
In this case, numcsns is 8 because syncprov incorrectly tested for
BER_BVISEMPTY() instead of BER_BVISNULL when creating the csn array:
(gdb) p a->a_vals[0]@8
$2 = {{
bv_len = 40,
bv_val = 0x87deb60 "20070210093621.965471Z#000000#000#000000"
}, {
bv_len = 7566177,
bv_val = 0x0
}, {
bv_len = 24,
bv_val = 0x11 ""
}, {
bv_len = 1820143995,
bv_val = 0x706164
"�s����F���\211L$\004\213E\b\211\004$�\037���\205�\211E�\017\204\r����\033���=�\206��tb\213M�\213\001�@\030\002\215v"
}, {
bv_len = 541392999,
bv_val = 0x21 ""
}, {
bv_len = 142432232,
bv_val = 0x65 ""
}, {
bv_len = 142470176,
bv_val = 0x0
}, {
bv_len = 142305208,
bv_val = 0x0
}}
Fixing that still results in a test failure, but without core dump:
bash-3.00$ SLAPD_DEBUG=stats ./run test045
Cleaning up test run directory leftover from previous run.
Running ./scripts/test045-syncreplication-proxied...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Using ldapsearch to check that master slapd is running...
Using ldapadd to create the context prefix entry in the master...
Starting slave slapd on TCP/IP port 9012...
Using ldapsearch to check that slave slapd is running...
Starting proxy slapd on TCP/IP port 9013...
Using ldapsearch to check that proxy slapd is running...
1 > Using ldapadd to populate the master directory...
Waiting 15 seconds for syncrepl to receive changes...
1 < Comparing retrieved entries from master and slave...
2 > Stopping the provider, sleeping 10 seconds and restarting it...
Using ldapsearch to check that master slapd is running...
Using ldapmodify to modify master directory...
Waiting 15 seconds for syncrepl to receive changes...
2 < Comparing retrieved entries from master and slave...
test failed - master and slave databases differ
apparently, none of the modifications made it into the consumer.
After another try, things just go smooth again... keep testing.
p.