RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1100834 - ldclt core dumps when using SSL with bindeach
Summary: ldclt core dumps when using SSL with bindeach
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Sankar Ramalingam
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-23 14:43 UTC by Viktor Ashirov
Modified: 2020-09-13 21:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-22 01:58:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
stacktrace (45.33 KB, text/plain)
2014-05-23 14:43 UTC, Viktor Ashirov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1157 0 None None None 2020-09-13 21:07:36 UTC

Description Viktor Ashirov 2014-05-23 14:43:50 UTC
Created attachment 898704 [details]
stacktrace

Description of problem:
ldclt core dumps when using SSL with bindeach

Version-Release number of selected component (if applicable):
$ rpm -qa | grep 389
389-ds-base-libs-1.3.1.6-25.el7.x86_64
389-ds-base-1.3.1.6-25.el7.x86_64


How reproducible: Consistently

Steps to Reproduce
1. Setup SSL 
2. Import data for stress SSL testing. 
3. Run
ldclt-bin -h localhost -p 1636 -D "cn=directory manager" -w Secret123 -e "esearch,random,bindeach" -r 0 -R 1000 -b o=Stress_SSL -f "cn=monsieur XXXXXXXXXX" -v -q -n 10 -N 100 -I '-1' -W 1 -Z /etc/dirsrv/slapd-dstet/cert8.db

Actual results:
$ ldclt-bin -h localhost -p 1636 -D "cn=directory manager" -w Secret123 -e "esearch,random,bindeach" -r 0 -R 1000 -b o=Stress_SSL -f "cn=monsieur XXXXXXXXXX" -v -q -n 10 -N 100 -I '-1' -W 1 -Z /etc/dirsrv/slapd-dstet/cert8.db 
ldclt version 4.23
ldclt-bin -h localhost -p 1636 -D "cn=directory manager" -w Secret123 -e esearch,random,bindeach -r 0 -R 1000 -b o=Stress_SSL -f "cn=monsieur XXXXXXXXXX" -v -q -n 10 -N 100 -I -1 -W 1 -Z /etc/dirsrv/slapd-dstet/cert8.db
Process ID         = 25854
Host to connect    = localhost
Port number        = 1636
Bind DN            = cn=directory manager
Passwd             = Secret123
Referral           = on
Base DN            = o=Stress_SSL
Filter             = "cn=monsieur XXXXXXXXXX"
Max times inactive = 3
Max allowed errors = 1000
Number of samples  = 100
Number of threads  = 10
Total op. req.     = -1
Running mode       = 0xe0000029
Running mode       = quiet verbose random bind_each_operation ssl exact_search
LDAP oper. timeout = 30 sec
Sampling interval  = 10 sec
Scope              = subtree
Attrsonly          = 0
Values range       = [0 , 1000]
Filter's head      = "cn=monsieur "
Filter's tail      = ""
Ignore error       = -1 (Can't contact LDAP server)
ldclt[25854]: Starting at Fri May 23 10:08:33 2014

ldclt[25854]: Average rate:    9.00/thr  (   9.00/sec), total:     90
ldclt[25854]: Average rate:    9.00/thr  (   9.00/sec), total:     90
Segmentation fault (core dumped)

Additional info:
Sometimes there is no segfault with number of threads <= 5.
Without bindeach ldclt works as expected.

Comment 1 Noriko Hosoi 2014-06-24 17:17:14 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/47826

Comment 2 Noriko Hosoi 2015-01-22 01:58:00 UTC
I could not reproduce the crash with master and 389-ds-base-1.3.3.

/usr/bin/ldclt-bin -h localhost -p 636 -D "cn=directory manager" -w password -e esearch,random,bindeach -r 0 -R 1000 -b o=Stress_SSL -f "(cn=monsieur XXXXXXXXXX)" -v -q -n 10 -N 100 -I -1 -W 1 -Z /path/to/cert8.db
ldclt[10087]: Average rate:    9.00/thr  (   9.00/sec), total:     90
ldclt[10087]: Average rate:   10.00/thr  (  10.00/sec), total:    100
   ...
ldclt[10087]: Average rate:   10.00/thr  (  10.00/sec), total:    100
ldclt[10087]: Average rate:   10.00/thr  (  10.00/sec), total:    100
ldclt[10087]: Number of samples achieved. Bye-bye...
ldclt[10087]: All threads are dead - exit.
ldclt[10087]: Global average rate:  991.80/thr  (  9.92/sec), total:   9918
ldclt[10087]: Global number times "no activity" reports: never
ldclt[10087]: Global no error occurs during this session.
ldclt[10087]: Ending at Wed Jan 21 17:56:01 2015
ldclt[10087]: Exit status 0 - No problem during execution.

But it requires to modify ldclt to support SSL version range.
I'm closing this ticket as worksforme and opening a new ticket for the range support.


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