Bug 723940

Summary: Segmentation fault (core dumped) while doing Import in a Replication Setup.
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: 6.1CC: amsharma, dgregor, jgalipea, jwest, nkinder, pm-eus, rmeggins, shaines
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.9.11-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-06 14:45:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 714310    
Bug Blocks:    

Description RHEL Program Management 2011-07-21 15:28:07 UTC
This bug has been copied from bug #714310 and has been proposed
to be backported to 6.1 z-stream (EUS).

Comment 5 Jenny Severance 2011-08-15 19:47:10 UTC
original bug verified - marking this clone verified

[root@rhel61-ds90-amita export]# rpm -qa | grep replication
ds-replication-1.2.8.5-1.el6.x86_64
ds-replication-debuginfo-1.2.8-0.7.rc2.el6.x86_64

[root@rhel61 slapd-c1]# ./db2ldif -n userRoot -E -s "o=airius.com"
Exported ldif file:
/var/lib/dirsrv/slapd-c1/ldif/c1-userRoot-airius.com-2011_07_13_190737.ldif
ldiffile:
/var/lib/dirsrv/slapd-c1/ldif/c1-userRoot-airius.com-2011_07_13_190737.ldif
[13/Jul/2011:19:07:38 +051800] - export userRoot: Processed 160 entries (100%).
[13/Jul/2011:19:07:38 +051800] - All database threads now stopped

[root@rhel61 slapd-c1]# ls -l /var/lib/dirsrv/slapd-s1/db/changelog
total 4
-rw-------. 1 amsharma amsharma 30 Jul 13 18:42 DBVERSION

[root@rhel61 slapd-c1]# ldapadd -x -h localhost -p 34202 -D "cn=Directory
Manager" -w Secret123  << EOF
> dn: uid=amsharma1,o=airius.com
> cn: ams
> sn: ams
> givenname: ams
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> uid: ams
> mail: ams
> userpassword: amsamsams
> EOF
adding new entry "uid=amsharma1,o=airius.com"

[root@rhel61 slapd-c1]# ldapadd -x -h localhost -p 34202 -D "cn=Directory
Manager" -w Secret123  << EOF
> dn: uid=amsharma11,o=airius.com
> cn: ams11
> sn: ams11
> givenname: ams11
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> uid: ams11
> mail: ams11
> userpassword: amsamsams11
> EOF
adding new entry "uid=amsharma11,o=airius.com"

[root@rhel61 slapd-c1]# ls -l /var/lib/dirsrv/slapd-s1/db/changelog
total 20
-rw-------. 1 amsharma amsharma 16384 Jul 13 19:10
9717f203-ad5111e0-98d694f8-e2845d7b_4e1d99aa000000010000.db4
-rw-rw-r--. 1 amsharma amsharma     0 Jul 13 19:09
9717f203-ad5111e0-98d694f8-e2845d7b.sema
-rw-------. 1 amsharma amsharma    30 Jul 13 18:42 DBVERSION

./ldif2db -n userRoot -E -i
/var/lib/dirsrv/slapd-c1/ldif/c1-userRoot-airius.com-2011_07_13_190737.ldif[root@rhel61
slapd-c1]# ./ldif2db -n userRoot -E -i
/var/lib/dirsrv/slapd-c1/ldif/c1-userRoot-airius.com-2011_07_13_190737.ldif
importing data ...
[13/Jul/2011:19:11:09 +051800] - WARNING: Import is running with
nsslapd-db-private-import-mem on; No other process is allowed to access the
database
[13/Jul/2011:19:11:09 +051800] - check_and_set_import_cache: pagesize: 4096,
pages: 125898, procpages: 48850
[13/Jul/2011:19:11:09 +051800] - WARNING: After allocating import cache
201436KB, the available memory is 302156KB, which is less than the soft limit
1048576KB. You may want to decrease the import cache size and rerun import.
[13/Jul/2011:19:11:09 +051800] - Import allocates 201436KB import cache.
[13/Jul/2011:19:11:09 +051800] - import userRoot: Beginning import job...
[13/Jul/2011:19:11:09 +051800] - import userRoot: Index buffering enabled with
bucket size 100
[13/Jul/2011:19:11:10 +051800] - import userRoot: Processing file
"/var/lib/dirsrv/slapd-c1/ldif/c1-userRoot-airius.com-2011_07_13_190737.ldif"
[13/Jul/2011:19:11:10 +051800] - import userRoot: Finished scanning file
"/var/lib/dirsrv/slapd-c1/ldif/c1-userRoot-airius.com-2011_07_13_190737.ldif"
(160 entries)
[13/Jul/2011:19:11:10 +051800] - import userRoot: Workers finished; cleaning
up...
[13/Jul/2011:19:11:11 +051800] - import userRoot: Workers cleaned up.
[13/Jul/2011:19:11:11 +051800] - import userRoot: Cleaning up producer
thread...
[13/Jul/2011:19:11:11 +051800] - import userRoot: Indexing complete. 
Post-processing...
[13/Jul/2011:19:11:11 +051800] - import userRoot: Flushing caches...
[13/Jul/2011:19:11:11 +051800] - import userRoot: Closing files...
[13/Jul/2011:19:11:11 +051800] - All database threads now stopped
[13/Jul/2011:19:11:11 +051800] - import userRoot: Import complete.  Processed
160 entries in 2 seconds. (80.00 entries/sec)
[root@rhel61 slapd-c1]# 

Hence VERIFIED.

Comment 6 Chandrasekar Kannan 2011-09-16 21:33:28 UTC
ds-replication is no longer a component of rhel. folding back to 389-ds-base.

Comment 7 Rich Megginson 2011-10-06 14:45:57 UTC
We are not releasing a 6.1.z 389-ds-base package.  The next release is 6.2.0.  All of these bugs already have a corresponding 6.2.0+ bug.