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 1802258

Summary: [abrt] [faf] adcli: raise(): /usr/sbin/adcli killed by 6
Product: Red Hat Enterprise Linux 7 Reporter: Steeve Goveas <sgoveas>
Component: adcliAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: pcech, sbose, sgadekar, thalman
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/929f015ef80f9478b5bd4906b6226e5fe7e67a45/
Whiteboard: sync-to-jira
Fixed In Version: adcli-0.8.1-14.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1806260 (view as bug list) Environment:
Last Closed: 2020-09-29 20:20:55 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:
Bug Depends On:    
Bug Blocks: 1806260    

Description Steeve Goveas 2020-02-12 18:09:39 UTC
This bug has been created based on an anonymous crash report requested by the package maintainer.

Report URL: http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/929f015ef80f9478b5bd4906b6226e5fe7e67a45/

Comment 5 shridhar 2020-05-25 06:49:05 UTC
Sumit, How to verify this bz?

Comment 6 Sumit Bose 2020-05-25 13:18:43 UTC
Hi,

this issue was found while running adcli/Regression/bz1575554-segfaults-udp-389-is-blocked. If you run this test with adcli-0.8.1-13.el7 or adcli-0.8.1-12.el7 you should see the crash while adcli-0.8.1-14.el7 should fix it.

bye,
Sumit

Comment 7 shridhar 2020-05-26 10:06:11 UTC
Tested with beaker run https://beaker.engineering.redhat.com/jobs/4278507


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   TEST PROTOCOL
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    Test run ID   : 110703038
    Package       : adcli
    Installed     : adcli-0.8.1-14.el7.ppc64le
    beakerlib RPM : beakerlib-1.18-7.el7bkr.noarch
    bl-redhat RPM : beakerlib-redhat-1-32.el7bkr.noarch
    Test name     : /CoreOS/adcli/Regression/bz1575554-segfaults-udp-389-is-blocked
    Test version  : 1.0-0
    Test built    : 2020-01-23 07:24:45 EST
    Test started  : 2020-05-26 04:41:44 EDT
    Test finished : 2020-05-26 04:42:16 EDT (still running)
    Test duration : 32 seconds
    Distro        : Red Hat Enterprise Linux Server release 7.9 Beta (Maipo)
    Hostname      : ibm-ps822-1-vios-lp3.gsslab.rdu2.redhat.com
    Architecture  : ppc64le
    CPUs          : 0 x unknown
    RAM size      : 1607 MB
    HDD size      : 17.97 GB

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test description
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

PURPOSE of /CoreOS/adcli/Regression/bz1575554-segfaults-udp-389-is-blocked
Description: Test for BZ#1575554 (Segfaults during AD join if udp 389 is blocked)
Author: Petr Cech <pcech>
Bug summary: Segfaults during AD join if udp 389 is blocked
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1575554


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 04:41:44 ] :: [   LOG    ] :: Package adcli is present
:: [ 04:41:44 ] :: [   LOG    ] :: Package versions:
:: [ 04:41:44 ] :: [   LOG    ] ::   adcli-0.8.1-14.el7.ppc64le
:: [ 04:41:44 ] :: [   PASS   ] :: Creating tmp directory (Expected 0, got 0)
:: [ 04:41:44 ] :: [   PASS   ] :: Command 'pushd /tmp/tmp.MiOA1QUdUz' (Expected 0, got 0)
:: [ 04:41:44 ] :: [   INFO   ] :: rlImport: Found 'realmd/basic', version '1.0-59' in /mnt/tests
:: [ 04:41:44 ] :: [   INFO   ] :: rlImport: Will try to import realmd/basic from /mnt/tests/CoreOS/realmd/Library/basic/lib.sh
:: [ 04:41:44 ] :: [   PASS   ] :: Command 'rlImport realmd/basic' (Expected 0, got 0)
:: [ 04:41:44 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-110703038/backup' as backup destination
:: [ 04:41:44 ] :: [   PASS   ] :: Command 'rlFileBackup --clean /etc/resolv.conf /etc/krb5.keytab' (Expected 0, got 0)
:: [ 04:41:52 ] :: [   PASS   ] :: Command 'ntpdate 10.37.152.14' (Expected 0, got 0)
:: [ 04:41:52 ] :: [   PASS   ] :: Command 'hostnamectl set-hostname ibm-ps822-1-vio.ad.baseos.qe' (Expected 0, got 0)
:: [ 04:41:53 ] :: [   PASS   ] :: Command 'ldapsearch -x -LLL -H ldap://10.37.152.14 -D 'Amy-admin.qe' -w 'Pass2012!' -b CN=ibm-ps822-1-vio,CN=Computers,dc=ad,dc=baseos,dc=qe -s sub '*'' (Expected 0-255, got 32)
:: [ 04:41:53 ] :: [   LOG    ] :: It should be safe to join this machine to AD
:: [ 04:41:54 ] :: [   PASS   ] :: Command 'ldapsearch -x -LLL -H ldap://10.37.152.14 -D 'Amy-admin.qe' -w 'Pass2012!' -b CN=ibm-ps822-1-vio,CN=Computers,dc=ad,dc=baseos,dc=qe -s sub '*'' (Expected 0-255, got 32)
:: [ 04:41:54 ] :: [   PASS   ] :: Command 'echo nameserver\ 10.37.152.14 > /etc/resolv.conf' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 10s
::   Assertions: 9 good, 0 bad
::   RESULT: PASS (Setup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   adcli join
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 04:41:56 ] :: [   LOG    ] :: Add rule for dropping port UDP 389
:: [ 04:41:56 ] :: [   PASS   ] :: Command 'iptables -A OUTPUT -p udp --destination-port 389 -j DROP' (Expected 0, got 0)
:: [ 04:42:04 ] :: [   PASS   ] :: Join computer to AD (Expected 0,134, got 0)
:: [ 04:42:04 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.7G90ZGF6' should not contain 'Segmentation fault' 
:: [ 04:42:04 ] :: [   PASS   ] :: rm -f rlRun_LOG (Expected 0, got 0)
:: [ 04:42:04 ] :: [   LOG    ] :: Remove rule for dropping port UDP 389
:: [ 04:42:04 ] :: [   PASS   ] :: Command 'iptables -D OUTPUT -p udp --destination-port 389 -j DROP' (Expected 0, got 0)
:: [ 04:42:04 ] :: [   LOG    ] :: Clean up
:: [ 04:42:04 ] :: [   PASS   ] :: klist -kte (Expected 0, got 0)
:: [ 04:42:08 ] :: [   PASS   ] :: Command 'echo -n Pass2012! | adcli delete-computer --verbose --domain ad.baseos.qe --login-user Amy-admin --stdin-password' (Expected 0, got 0)
:: [ 04:42:08 ] :: [   PASS   ] :: Command 'kdestroy -A' (Expected 0, got 0)
:: [ 04:42:08 ] :: [   PASS   ] :: Command 'rm -f /etc/krb5.keytab' (Expected 0, got 0)
:: [ 04:42:08 ] :: [   PASS   ] :: rm -f rlRun_LOG (Expected 0, got 0)
:: [ 04:42:08 ] :: [   LOG    ] :: Computer was removed from AD domain
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 12s
::   Assertions: 10 good, 0 bad
::   RESULT: PASS (adcli join)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 04:42:10 ] :: [   LOG    ] :: Clean up
:: [ 04:42:10 ] :: [   LOG    ] :: File [/etc/krb5.keytab] doesn't exist, so computer isn't connected to the AD domain
:: [ 04:42:10 ] :: [   PASS   ] :: Command 'hostnamectl set-hostname ibm-ps822-1-vios-lp3.gsslab.rdu2.redhat.com' (Expected 0, got 0)
:: [ 04:42:11 ] :: [   PASS   ] :: Command 'rlFileRestore' (Expected 0, got 0)
:: [ 04:42:12 ] :: [   PASS   ] :: Command 'popd' (Expected 0, got 0)
:: [ 04:42:12 ] :: [   PASS   ] :: Removing tmp directory (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 2s
::   Assertions: 4 good, 0 bad
::   RESULT: PASS (Cleanup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   /CoreOS/adcli/Regression/bz1575554-segfaults-udp-389-is-blocked
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Uploading journal.xml .done
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 32s
::   Phases: 3 good, 0 bad
::   OVERALL RESULT: PASS (/CoreOS/adcli/Regression/bz1575554-segfaults-udp-389-is-blocked)



Marking verified.

Comment 9 errata-xmlrpc 2020-09-29 20:20:55 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 (adcli 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:3985