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 1068640

Summary: 'IPA: Don't call tevent_req_post outside _send' should be added to RHEL7
Product: Red Hat Enterprise Linux 7 Reporter: Steeve Goveas <sgoveas>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED CURRENTRELEASE QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: grajaiya, jgalipea, lslebodn, mkosek, nsoman, pbrezina, preichl, sbose, spoore
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.11.2-43.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:22:03 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 Steeve Goveas 2014-02-21 15:11:46 UTC
Description of problem:


Version-Release number of selected component (if applicable):
sssd-1.11.2-39.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Add IPA trust with AD
2. Restart sssd after clearing cache
# service sssd stop ; rm -f /var/lib/sss/{mc,db}/*; service sssd start
3. getent for AD group. The command must be successful on the first attempt. It works on second attempt
# getent group adgroup1

Actual results:

[root@dhcp207-218 ~]# service sssd stop ; rm -f /var/lib/sss/{mc,db}/*; service sssd start
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service
You have new mail in /var/spool/mail/root

[root@dhcp207-218 ~]# getent group sub_grp1.qe

[root@dhcp207-218 ~]# echo $?
2

[root@dhcp207-218 ~]# getent group sub_grp1.qe
sub_grp1.qe:*:839001110:

[root@dhcp207-218 ~]# getent group adgroup1

[root@dhcp207-218 ~]# echo $?
2

[root@dhcp207-218 ~]# getent group adgroup1
adgroup1:*:1148401449:

Additional info:

[root@dhcp207-218 ~]# gdb -ex 'bt full' /usr/libexec/sssd/sssd_be /var/tmp/abrt/ccpp-2014-02-18-12:16:27-7770/coredump
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-50.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/libexec/sssd/sssd_be...Reading symbols from /usr/lib/debug/usr/libexec/sssd/sssd_be.debug...done.
done.
[New LWP 7770]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/sssd/sssd_be --domain newdom.qe --debug-to-files'.
Program terminated with signal 6, Aborted.
#0  0x00007f3bf0ff2979 in raise () from /lib64/libc.so.6
#0  0x00007f3bf0ff2979 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f3bf0ff4088 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007f3bf4678cfc in talloc_abort () from /lib64/libtalloc.so.2
No symbol table info available.
#3  0x00007f3bf467841f in talloc_chunk_from_ptr.part.0 () from /lib64/libtalloc.so.2
No symbol table info available.
#4  0x00007f3bf4678d2c in _talloc_set_destructor () from /lib64/libtalloc.so.2
No symbol table info available.
#5  0x00007f3bf48872a7 in tevent_common_schedule_immediate () from /lib64/libtevent.so.0
No symbol table info available.
#6  0x00007f3bf4887a25 in tevent_req_post () from /lib64/libtevent.so.0
No symbol table info available.
#7  0x00007f3be7f94d2f in ipa_get_ad_acct_ad_part_done (subreq=<optimized out>) at src/providers/ipa/ipa_subdomains_id.c:583
        req = 0x7f3bf6a0b380
        state = 0x7f3bf6a23dd0
        ret = <optimized out>
        __FUNCTION__ = "ipa_get_ad_acct_ad_part_done"
#8  0x00007f3be7fbbcb7 in ad_handle_acct_info_done (subreq=0x0) at src/providers/ad/ad_id.c:138
        ret = <optimized out>
        dp_error = 3
Missing separate debuginfos, use: debuginfo-install audit-libs-2.3.3-3.el7.x86_64 c-ares-1.10.0-3.el7.x86_64 cyrus-sasl-gssapi-2.1.26-17.el7.x86_64 cyrus-sasl-lib-2.1.26-17.el7.x86_64 cyrus-sasl-md5-2.1.26-17.el7.x86_64 dbus-libs-1.6.12-8.el7.x86_64 glib2-2.36.3-4.el7.x86_64 glibc-2.17-48.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.11.3-45.el7.x86_64 libbasicobjects-0.1.0-22.el7.x86_64 libcollection-0.6.2-22.el7.x86_64 libcom_err-1.42.9-3.el7.x86_64 libdb-5.3.21-16.el7.x86_64 libdhash-0.4.3-22.el7.x86_64 libini_config-1.0.0.1-22.el7.x86_64 libldb-1.1.16-4.el7.x86_64 libpath_utils-0.2.1-22.el7.x86_64 libref_array-0.1.3-22.el7.x86_64 libselinux-2.2.2-4.el7.x86_64 libtalloc-2.0.8-4.el7.x86_64 libtdb-1.2.12-3.el7.x86_64 libtevent-0.9.18-6.el7.x86_64 nspr-4.10.2-4.el7.x86_64 nss-3.15.4-4.el7.x86_64 nss-softokn-freebl-3.15.4-2.el7.x86_64 nss-util-3.15.4-2.el7.x86_64 openldap-2.4.39-2.el7.x86_64 openssl-libs-1.0.1e-30.el7.x86_64 pam-1.1.8-6.el7.x86_64 pcre-8.32-12.el7.x86_64 popt-1.13-16.el7.x86_64 samba-libs-4.1.1-15.el7.x86_64 xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64
---Type <return> to continue, or q <return> to quit---
        sdap_err = 0
        err = 0x7f3be6dbca33 "Success"
        req = 0x7f3bf6a0c4f0
        state = 0x7f3bf69e5c80
#9  0x00007f3bf48873f4 in tevent_common_loop_immediate () from /lib64/libtevent.so.0
No symbol table info available.
#10 0x00007f3bf488ba17 in epoll_event_loop_once () from /lib64/libtevent.so.0
No symbol table info available.
#11 0x00007f3bf488a107 in std_event_loop_once () from /lib64/libtevent.so.0
No symbol table info available.
#12 0x00007f3bf69b4640 in ?? ()
No symbol table info available.
#13 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) 
(gdb) quit

Comment 2 Jakub Hrozek 2014-02-27 09:14:47 UTC
*** Bug 1070507 has been marked as a duplicate of this bug. ***

Comment 3 Steeve Goveas 2014-02-27 16:07:14 UTC
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: sssd_trust_bz1068640: 'IPA: Don't call tevent_req_post outside _send' should be added to RHEL7 bz1068640
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: File '/tmp/tmp.nhfJLuTMQW/tmpout.sssd_trust_bz1068640.out' should not contain 'sssd' 
:: [   PASS   ] :: File '/var/log/messages' should not contain 'Saved core dump' 
  Domain name: adtest.qe
  Domain NetBIOS name: ADTEST
  Domain Security Identifier: S-1-5-21-1910160501-511572375-3625658879
  Domain enabled: True

  Domain name: pune.adtest.qe
  Domain NetBIOS name: PUNE
  Domain Security Identifier: S-1-5-21-91314187-2404433721-1858927112
  Domain enabled: True
----------------------------
Number of entries returned 2
----------------------------
:: [   PASS   ] :: Running 'ipa trustdomain-find adtest.qe' (Expected 0, got 0)
Redirecting to /bin/systemctl stop  sssd.service
:: [   PASS   ] :: Running 'service sssd stop' (Expected 0, got 0)
:: [   PASS   ] :: Running 'rm -f /var/lib/sss/{mc,db}/*' (Expected 0, got 0)
Redirecting to /bin/systemctl start  sssd.service
:: [   PASS   ] :: Running 'service sssd start' (Expected 0, got 0)
:: [   PASS   ] :: Running 'getent group adgroup1 > /tmp/tmp.nhfJLuTMQW/tmpout.sssd_trust_bz1068640.out 2>&1' (Expected 0, got 0)
adgroup1:*:1148401449:
:: [   PASS   ] :: File '/tmp/tmp.nhfJLuTMQW/tmpout.sssd_trust_bz1068640.out' should contain 'adgroup1:' 
:: [   PASS   ] :: Running 'sleep 5' (Expected 0, got 0)
:: [   PASS   ] :: Running 'getent group sub_grp1.qe > /tmp/tmp.nhfJLuTMQW/tmpout.sssd_trust_bz1068640.out 2>&1' (Expected 0, got 0)
sub_grp1.qe:*:839001110:
:: [   PASS   ] :: File '/tmp/tmp.nhfJLuTMQW/tmpout.sssd_trust_bz1068640.out' should contain 'sub_grp1.qe:' 
:: [   PASS   ] :: File '/var/log/messages' should not contain 'dumping core' 
:: [   PASS   ] :: File '/var/log/messages' should not contain 'Saved core dump'

[root@dhcp207-218 ~]# rpm -q sssd
sssd-1.11.2-50.el7.x86_64

Comment 4 Ludek Smid 2014-06-13 12:22:03 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.