Anyone using AMD64 + FreeBSD + openldap? (was: openldap-2.1.27 -

Jason Lixfeld jason+lists.freebsd at lixfeld.ca
Fri Apr 9 05:52:07 PDT 2004


On Apr 9, 2004, at 6:25 AM, Tilman Linneweh wrote:

> * Jason Lixfeld [2004-04-09 06:25]:
>> On Apr 8, 2004, at 5:09 PM, Tilman Linneweh wrote:
>>
>>> * Jason Lixfeld [Do, 08 Apr 2004 at 19:35 GMT]:
>>>>> I use OpenLDAP 2.2/back-bdb/bdb 4.2.52+patches on RELENG_4.
>>>>> I don't see such problems.  I just now starting to toy with
>>>>> RELENG_5_2.
>>>>
>>>> What hardware are you using?  I can't run BDB because of AMD64 
>>>> issues
>>>> with fast mutexes so I'm using ldbm instead.
>>>>
>>>>> I also note that I haven't had any problems using db_recover
>>>>> to recover from hard crashes.
>>>>
>>>> Again, this would be fine if I could run BDB.
>>>
>>> Matthias Andree suggested, a possible workaround to the problems with
>>> the fast mutexes may be to add --with-mutex=x86/gcc-assembly to the
>>> CONFIGURE_ARGS.
>>
>> I'm using ports, so I added that to the Makefile in two locations.  I
>> also noted that the configure script didn't seem to have an option for
>> --with-mutex when I ran ./configure --help.  Modified Makefile is
>> below.
>>
>
> Sorry for being unclear.
> Not to the openldap port, but the BDB port you are running (e.g. db41).

Ok, that did it.  Worked with db42 no problem.  Thank you!

NOW, any idea why slapd won't die after the first transaction:

If I start slapd and kill it before the first transaction, it will die, 
no problem:

su-2.05b# /usr/local/libexec/slapd -u ldap -g ldap -d 256
slapd starting
^Cslapd shutdown: waiting for 0 threads to terminate
slapd stopped.
su-2.05b#

If transactions have already gone through, slapd never dies and I have 
to kill it from another window.

su-2.05b# /usr/local/libexec/slapd -u ldap -g ldap -d 256
slapd starting
conn=0 fd=9 ACCEPT from IP=x.x.x.x:45352 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="dc=xxx,dc=yyy" scope=2 
filter="(&(objectClass=*)(uid=jlixfeld))"
conn=0 op=1 SRCH attr=uid
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=0 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" method=128
conn=0 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" mech=SIMPLE 
ssf=0
conn=0 op=2 RESULT tag=97 err=0 text=
conn=1 fd=14 ACCEPT from IP=x.x.x.x:45350 (IP=0.0.0.0:389)
conn=1 op=0 BIND dn="" method=128
conn=1 op=0 RESULT tag=97 err=0 text=
conn=1 op=1 SRCH base="dc=xxx,dc=yyy" scope=2 
filter="(&(objectClass=*)(uid=jlixfeld))"
conn=1 op=1 SRCH attr=uid
conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=1 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" method=128
conn=1 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" mech=SIMPLE 
ssf=0
conn=1 op=2 RESULT tag=97 err=0 text=
conn=2 fd=15 ACCEPT from IP=x.x.x.x:45349 (IP=0.0.0.0:389)
conn=2 op=0 BIND dn="" method=128
conn=2 op=0 RESULT tag=97 err=0 text=
conn=2 op=1 SRCH base="dc=xxx,dc=yyy" scope=2 
filter="(&(objectClass=*)(uid=jlixfeld))"
conn=2 op=1 SRCH attr=uid
conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=2 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" method=128
conn=2 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" mech=SIMPLE 
ssf=0
conn=2 op=2 RESULT tag=97 err=0 text=
conn=3 fd=16 ACCEPT from IP=x.x.x.x:45348 (IP=0.0.0.0:389)
conn=3 op=0 BIND dn="" method=128
conn=3 op=0 RESULT tag=97 err=0 text=
conn=3 op=1 SRCH base="dc=xxx,dc=yyy" scope=2 
filter="(&(objectClass=*)(uid=jlixfeld))"
conn=3 op=1 SRCH attr=uid
conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=3 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" method=128
conn=3 op=2 BIND dn="uid=jlixfeld,cn=Manager,dc=xxx,dc=yyy" mech=SIMPLE 
ssf=0
conn=3 op=2 RESULT tag=97 err=0 text=
^Cconn=0 fd=9 closed
conn=1 fd=14 closed
conn=2 fd=15 closed
conn=3 fd=16 closed
slapd shutdown: waiting for 0 threads to terminate
^C^C^C^CKilled

> regards
> tilman



More information about the freebsd-amd64 mailing list