Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1775165

Summary: ldclt core dumped when run with -e genldif option
Product: Red Hat Enterprise Linux 7 Reporter: sgouvern
Component: 389-ds-baseAssignee: thierry bordaz <tbordaz>
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: low    
Version: 7.8CC: mreynolds, nkinder, pasik, spichugi, tbordaz, vashirov
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.10.2-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:46:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sgouvern 2019-11-21 14:04:57 UTC
Description of problem:
ldclt dumped a core 


Version-Release number of selected component (if applicable):
389-ds-base-1.3.10.1-4.el7.x86_64

How reproducible:
use for example the following ldclt command:
ldclt -f cn=userXXX -b ou=people,dc=example,dc=com -e genldif=test.ldif


Actual results:
Segmentation fault (core dumped)

Expected results:
Correct handling of potential incorrect options used

Additional info:

Comment 2 thierry bordaz 2020-02-14 14:33:29 UTC
Upstream ticket:
https://pagure.io/389-ds-base/issue/50898

Comment 3 thierry bordaz 2020-02-14 16:44:49 UTC
Fix pushed upstream (master, 1.4.2, 1.4.1, 1.3.9) => POST

Comment 7 sgouvern 2020-04-02 14:50:40 UTC
Manually verified with 389-ds-base-1.3.10.2-1.el7.x86_64 :

[root@ci-vm-10-0-136-158 upstream]# ldclt -f cn=userXXX -b ou=people,dc=example,dc=com -e genldif=test.ldif
ldclt version 4.23
ldclt[30402]: Starting at Thu Apr  2 10:36:37 2020

ldclt[30402]: T000: attribute objectclass not defined (supported values are person/emailPerson/inetOrgPerson)
ldclt[30402]: T000: thread is dead.

ldclt[30402]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[30402]: All threads are dead - exit.
ldclt[30402]: Global average rate:    0.00/thr  (  0.00/sec), total:      0
ldclt[30402]: Global number times "no activity" reports: never
ldclt[30402]: Global number of dead threads: 1
ldclt[30402]: Global no error occurs during this session.
ldclt[30402]: Ending at Thu Apr  2 10:36:47 2020
ldclt[30402]: Exit status 0 - No problem during execution.

No coredump generated => marking as verified

Comment 9 errata-xmlrpc 2020-09-29 19:46:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (389-ds-base bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3894