Bug 880571

Summary: SSSD crashes when c-ares returns success but an empty hostent during the DNS update
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jhrozek, sbose, sgallagh, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ee4b5d815892178d086dbb1fd181b47c8e5901ed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 880967 (view as bug list) Environment:
Last Closed: 2013-01-12 00:10:25 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:    
Bug Blocks: 880967    
Attachments:
Description Flags
File: var_log_messages
none
File: core_backtrace
none
File: environ
none
File: limits
none
File: backtrace
none
File: cgroup
none
File: smolt_data
none
File: executable
none
File: maps
none
File: dso_list
none
File: build_ids
none
File: proc_pid_status
none
File: open_fds none

Description Stef Walter 2012-11-27 11:07:34 UTC
Version-Release number of selected component:
sssd-1.9.2-3.fc18

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
backtrace_rating: 4
cmdline:        /usr/libexec/sssd/sssd_be --domain idm.lab.bos.redhat.com --debug-to-files
crash_function: ipa_dyndns_update_get_addrs_done
kernel:         3.6.6-3.fc18.x86_64

truncated backtrace:
:Thread no. 1 (10 frames)
: #0 ipa_dyndns_update_get_addrs_done at src/providers/ipa/ipa_dyndns.c:736
: #1 resolv_gethostbyname_done at src/resolv/async_resolv.c:1413
: #2 resolv_gethostbyname_dns_query_done at src/resolv/async_resolv.c:988
: #3 end_squery at ares_search.c:208
: #4 search_callback at ares_search.c:155
: #5 qcallback at ares_query.c:180
: #6 end_query at ares_process.c:1266
: #7 process_answer at ares_process.c:611
: #9 read_udp_packets at ares_process.c:497
: #10 processfds at ares_process.c:152

Comment 1 Stef Walter 2012-11-27 11:07:37 UTC
Created attachment 652596 [details]
File: var_log_messages

Comment 2 Stef Walter 2012-11-27 11:07:47 UTC
Created attachment 652597 [details]
File: core_backtrace

Comment 3 Stef Walter 2012-11-27 11:07:49 UTC
Created attachment 652598 [details]
File: environ

Comment 4 Stef Walter 2012-11-27 11:07:51 UTC
Created attachment 652599 [details]
File: limits

Comment 5 Stef Walter 2012-11-27 11:07:53 UTC
Created attachment 652600 [details]
File: backtrace

Comment 6 Stef Walter 2012-11-27 11:07:55 UTC
Created attachment 652601 [details]
File: cgroup

Comment 7 Stef Walter 2012-11-27 11:07:57 UTC
Created attachment 652602 [details]
File: smolt_data

Comment 8 Stef Walter 2012-11-27 11:07:59 UTC
Created attachment 652603 [details]
File: executable

Comment 9 Stef Walter 2012-11-27 11:08:03 UTC
Created attachment 652604 [details]
File: maps

Comment 10 Stef Walter 2012-11-27 11:08:05 UTC
Created attachment 652605 [details]
File: dso_list

Comment 11 Stef Walter 2012-11-27 11:08:07 UTC
Created attachment 652606 [details]
File: build_ids

Comment 12 Stef Walter 2012-11-27 11:08:09 UTC
Created attachment 652607 [details]
File: proc_pid_status

Comment 13 Stef Walter 2012-11-27 11:08:15 UTC
Created attachment 652608 [details]
File: open_fds

Comment 14 Jakub Hrozek 2012-11-28 09:53:06 UTC
There are two bugs, really. One is that c-ares returns success and empty address list and the other is that the SSSD does not handle that situation well. Stephen patched the empty list check in the SSSD and I'll clone this bugzilla to c-ares, too. We should investigate how could c-ares return an empty list.

Stef, was that problem reproducable in your environment or just a one-time fluke?

Comment 15 Jakub Hrozek 2012-11-28 14:29:57 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1675

Comment 16 Fedora Update System 2012-12-06 19:32:50 UTC
sssd-1.9.3-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/sssd-1.9.3-1.fc18

Comment 17 Fedora Update System 2012-12-07 20:46:15 UTC
Package sssd-1.9.3-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sssd-1.9.3-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19960/sssd-1.9.3-1.fc18
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2013-01-12 00:10:29 UTC
sssd-1.9.3-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.