Bug 402651 - Openldap server crashes on high modify load
Summary: Openldap server crashes on high modify load
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: openldap
Version: 4.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jan Safranek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-28 13:20 UTC by Jan Safranek
Modified: 2008-07-24 19:51 UTC (History)
1 user (show)

Fixed In Version: RHBA-2008-0701
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-24 19:51:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
reproducer (1.43 KB, text/plain)
2007-11-28 13:27 UTC, Jan Safranek
no flags Details
patch (4.10 KB, patch)
2007-11-28 13:30 UTC, Jan Safranek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0701 0 normal SHIPPED_LIVE openldap bug fix and enhancement update 2008-07-23 15:58:51 UTC

Description Jan Safranek 2007-11-28 13:20:53 UTC
Version-Release number of selected component (if applicable):
openldap-servers-2.2.13-8.el4_6.1

How reproducible:
sometimes

Steps to Reproduce:
modify one attribute of one entry with multiple clients
  
Actual results:
slapd crashes

Expected results:
slapd lives

Additional info:
already fixed upstream:
http://www.openldap.org/its/index.cgi/Software%20Bugs?id=3188

Check closely memory consumption, it's rumored (its#3213) that there is also
memory leak when two clients modify one attribute at the same time.

Comment 1 Jan Safranek 2007-11-28 13:27:28 UTC
Created attachment 271291 [details]
reproducer

Usage:
- install opendlap-servers
- delete any previous ldap databases (rm -rf /var/lib/ldap/*)
- use the default slapd.conf, only uncomment line "rootpw secret"
- start ldap server
- start the script - it will spawn 20 processes, modifying one attribute in
endless loop

After some time slapd hopefully dies. You can stop the clients by "kill
`/tmp/test.pid`".

Comment 2 Jan Safranek 2007-11-28 13:30:50 UTC
Created attachment 271311 [details]
patch

Comment 3 Jan Safranek 2007-11-28 14:02:25 UTC
I did not notice any problem with the memory consumption, it seems to me there
is no leak.

Comment 4 RHEL Program Management 2007-11-29 03:54:38 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 10 errata-xmlrpc 2008-07-24 19:51:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0701.html


Note You need to log in before you can comment on or make changes to this bug.