From owner-freebsd-smp@FreeBSD.ORG Mon Oct 18 20:17:15 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DA5116A4CE for ; Mon, 18 Oct 2004 20:17:15 +0000 (GMT) Received: from dses2.dhs.gov (dses2.dhs.gov [152.121.181.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D173043D3F for ; Mon, 18 Oct 2004 20:17:14 +0000 (GMT) (envelope-from James.Saint-Rossy@associates.usss.dhs.gov) Received: from dhsmail2.dhs.gov by dses2.dhs.gov for freebsd-smp@freebsd.org; Mon, 18 Oct 2004 16:17:09 -0400 Received: from unknown(161.214.104.9) by dhsmail2.dhs.gov via csmap id b0068ad0_2142_11d9_8567_0002b3d786ae_31467; Mon, 18 Oct 2004 20:17:09 +0000 (UTC) Received: from [10.119.187.210] ([10.119.187.210]) by mail1.usss.dhs.gov (MOS 3.4.6-GR) with ESMTP id AOS50032; Mon, 18 Oct 2004 16:17:00 -0400 (EDT) Message-Id: <417424BC.1010502@associates.usss.dhs.gov> Date: Mon, 18 Oct 2004 16:17:00 -0400 From: "James Saint-Rossy, Thomas" User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-smp@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=0/50, host=mail1.usss.dhs.gov Subject: OpenLDAP with KSE won't run. X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 20:17:15 -0000 I've been to the openldap group and searched the newsgroups/Archives without any luck. Hopefully you guys can help me. Basically, I'm trying to get OpenLDAP to run using threads instead of as a single process. OS: 5.2.1-RELEASE FreeBSD OpenLDAP ver: openldap-server-2.2.17 (also tested with 2.2.15) I can't get slapd with syncrepl to run using KSE threads. I enabled KSE using libmap.conf. The following is end of the slapd.log with loglevel set at 255. In comparing the log to that of successful startup, without kselib, the error appears to be "daemon: select failed (22): Invalid argument". Any ideas what this means? Do I have to include threading support for db-4.2 somehow? I've also included my libmap.conf and ldd output after slapd.log. Here is the tail end of the slapd.log > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: select: listen=6 > active_threads=0 tvp > =zero > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: select: listen=7 > active_threads=0 tvp > =zero > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: select failed (22): Invalid > argument > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: abnormal condition, > shutdown initiate > d. > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: closing 6 > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: closing 7 > Oct 14 15:25:59 ldap4 slapd[1053]: =>do_syncrepl > Oct 14 15:25:59 ldap4 slapd[1053]: slapd shutdown: waiting for 1 > threads to term > inate > Oct 14 15:25:59 ldap4 slapd[1053]: connection_get(10) > Oct 14 15:25:59 ldap4 slapd[1053]: connection_get(10): got connid=0 > Oct 14 15:25:59 ldap4 slapd[1053]: daemon: removing 10r > Oct 14 15:25:59 ldap4 slapd[1053]: slapd shutdown: initiated > Oct 14 15:25:59 ldap4 slapd[1053]: ====> bdb_cache_release_all > Oct 14 15:25:59 ldap4 slapd[1053]: slapd shutdown: freeing system > resources. > Oct 14 15:25:59 ldap4 slapd[1053]: slapd stopped. Here's the shared libs that slapd is using. Notice that "libc_r.so.5 => /usr/lib/libkse.so.1 (0x283e9000)" > root@ldap4 /usr/local/libexec:ldd slapd > slapd: > libldap_r-2.2.so.7 => /usr/local/lib/libldap_r-2.2.so.7 > (0x28165000) > liblber-2.2.so.7 => /usr/local/lib/liblber-2.2.so.7 (0x2819f000) > libdb-4.2.so.2 => /usr/local/lib/libdb-4.2.so.2 (0x281ac000) > libssl.so.3 => /usr/local/lib/libssl.so.3 (0x28282000) > libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0x282b3000) > libfetch.so.3 => /usr/lib/libfetch.so.3 (0x283b9000) > libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x283c6000) > libcrypt.so.2 => /lib/libcrypt.so.2 (0x283c8000) > libwrap.so.3 => /usr/lib/libwrap.so.3 (0x283e1000) > libc_r.so.5 => /usr/lib/libkse.so.1 (0x283e9000) > libc.so.5 => /lib/libc.so.5 (0x2840d000) > libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x284e7000) > libssl.so.3 => /usr/lib/libssl.so.3 (0x284fd000) > libcrypto.so.3 => /lib/libcrypto.so.3 (0x2852f000) Here is my libmap.conf. In addition I've also tried a test making libkse the system default with the same results. > # /etc/libmap.conf > # > # candidate mapping > # > libc_r.so.5 libthr.so.1 # Everything uses 'libthr' > libc_r.so libthr.so > > [/usr/local/libexec/slapd] > libc_r.so.5 libkse.so.1 > libc_r.so libkse.so > > [slapd] > libc_r.so.5 libkse.so.1 > libc_r.so libk Thanks for any assistance, James.