[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd hangs up and uses 100% CPU (ITS#2195)






Try this ...

diff -Naurp --exclude=CVS openldap-l1/servers/slapd/back-bdb/group.c
openldap-l2/servers/slapd/back-bdb/group.c
--- openldap-l1/servers/slapd/back-bdb/group.c  Thu Feb  6 14:11:07 2003
+++ openldap-l2/servers/slapd/back-bdb/group.c  Thu Feb  6 18:43:30 2003
@@ -93,7 +93,7 @@ bdb_group(
            }
      }

-     if (dn_match(&target->e_name, gr_ndn)) {
+     if (dn_match(&target->e_nname, gr_ndn)) {
            /* we already have a LOCKED copy of the entry */
            e = target;
 #ifdef NEW_LOGGING

- Jong

------------------------
Jong Hyuk Choi
IBM Thomas J. Watson Research Center - Enterprise Linux Group
P. O. Box 218, Yorktown Heights, NY 10598
email: jongchoi@us.ibm.com
(phone) 914-945-3979    (fax) 914-945-4425   TL: 862-3979


Igor Brezac <igor@ipass.net> on 02/06/2003 03:51:08 PM

To:    Jonghyuk Choi/Watson/IBM@IBMUS
cc:    openldap-its@openldap.org, <hyc@highlandsun.com>
Subject:    Re: slapd hangs up and uses 100% CPU (ITS#2195)




Still the same.  :(  I upgraded the released version (2.1.12).  I actually
rebuild the whole thing from scratch after I applied the patched.

7253:   /usr/local/libexec/slapd -h ldap:///
-----------------  lwp# 1 / thread# 1  --------------------
fee9cb2c lwp_wait (2, ffbffb0c)
fedcdc84 lwp_wait (2, ffbffb0c, 1, 0, 80, ffbffb04) + 58
fedc9844 _thrp_join (2, 0, 0, 1, 0, 1a4ed0) + 44
00090c68 ldap_pvt_thread_join (2, 0, 20474, 0, feec0de8, f6b48) + 8
00021e30 slapd_daemon (0, c2458, ffbffddc, 0, f6400, c5800) + 90
0001e86c main     (c2000, ffbffcd4, a0, c2300, 3, 0) + 7b4
0001df80 _start   (0, 0, 0, 0, 0, 0) + 5c
-----------------  lwp# 2 / thread# 2  --------------------
fee9ae00 poll     (f93ff3c8, 4, ffffffff)
fee4d474 _select  (ffffffff, feebd19c, 0, f93ffe60, f93ffee0, ffffffff) +
2ec
fedcec7c select   (d, f93ffee0, f93ffe60, 0, 0, f72e8) + 6c
00020b20 ???????? (0, f5400, f1c00, c2c00, 0, 0)
fedd5c94 _lwp_start (0, 0, 0, 0, 0, 0)
-----------------  lwp# 3 / thread# 3  --------------------
fedd5e90 lwp_yield (f3400, 0, f3400, 30, 15a720, 0) + 8
0006c30c bdb_cache_find_entry_ndn2id (11, 1089d8, f8b7edb0, feeba000, 0,
110) + 114
0006ee64 bdb_dn2id (109370, 0, f8b7edb0, f8b7ec0c, 0, 1a5218) + a0
0006e564 bdb_dn2entry_rw (109370, 0, f8b7edb0, f8b7ec90, 0, 0) + b0
000714d8 bdb_group (109370, 111b50, 1a51c8, 9ac878, f8b7edb0, 1a5218) + 2d8
00031850 backend_group (109370, 161b90, 1a51c8, 9ac878, f8b7edb0, 1a5218) +
134
0003e8c0 ???????? (108bd8, 0, f8b7f278, 161b90, 1a51c8, 9ac878)
0003d56c access_allowed (109370, f3400, f8b7f280, 9ac878, f3400, 160b0c) +
680
0003c174 ???????? (109370, 161b90, 1a51c8, 9ac878, 160b08, a3)
0003bae0 test_filter (109370, 161b90, 1a51c8, 9ac878, 160a78, 34) + 3e8
000605d0 bdb_search (0, f3400, 1a51c8, 0, fff7ffa8, f3400) + e04
0002596c do_search (0, 1a51c8, f8bffe98, f8bffe88, 0, 0) + 900
000239b4 ???????? (1a66e8, 15fa10, 236e0, 0, 0, 0)
00090878 ???????? (fa410, 0, 0, 0, 0, 0)
fedd5c94 _lwp_start (0, 0, 0, 0, 0, 0)

-Igor

On Thu, 6 Feb 2003, Jonghyuk Choi wrote:

>
>
>
>
>
> Filename change :
>
> ftp://ftp.openldalp.org/incoming/lock-head.diff           -> for HEAD
>
> to
>
> ftp://ftp.openldap.org/incoming/lock-head-v.diff        -> for HEAD
>
>
> Diff for the release version remains the same.
>
> - Jong
>
> ------------------------
> Jong Hyuk Choi
> IBM Thomas J. Watson Research Center - Enterprise Linux Group
> P. O. Box 218, Yorktown Heights, NY 10598
> email: jongchoi@us.ibm.com
> (phone) 914-945-3979    (fax) 914-945-4425   TL: 862-3979
>
>

--
Igor