Bug 2054825

Summary: sssd_be segfault at 0 ip 00007f16b5fcab7e sp 00007fffc1cc0988 error 4 in libc-2.28.so[7f16b5e72000+1bc000]
Product: Red Hat Enterprise Linux 8 Reporter: Jeremy Absher <jabsher>
Component: sssdAssignee: Sumit Bose <sbose>
Status: VERIFIED --- QA Contact: shridhar <sgadekar>
Severity: medium Docs Contact:
Priority: high    
Version: 8.5CC: aboscatt, abroy, atikhono, dowdle, grajaiya, lslebodn, msauton, mzidek, pbrezina, pjasbuti, pkettman, sbose, sgadekar, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.9.1-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Comment 1 Alexey Tikhonov 2022-02-15 20:02:56 UTC
(In reply to Jeremy Absher from comment #0)
> 
> How reproducible:
> Always.  

Great. Please enable 'debug_level = 9', wait for a crash and attach sssd_$domain.log (as a private comment).

> 
> #0  __strcasecmp_l_sse42 () at
> ../sysdeps/x86_64/multiarch/strcmp-sse42.S:1648
> No locals.
> #1  0x000055d76e45d064 in be_resolve_server_process (
>     subreq=subreq@entry=0x55d77047da40, state=state@entry=0x55d770434f50,
>     new_subreq=new_subreq@entry=0x7ffd94d0b0c0)
>     at src/providers/data_provider_fo.c:682
>         ret = 0
>         srv_status_change = 0
>         callback = <optimized out>
>         srvname = <optimized out>
>         __FUNCTION__ = "be_resolve_server_process"
> #2  0x000055d76e45d2d0 in be_resolve_server_done (subreq=0x55d77047da40)
>     at src/providers/data_provider_fo.c:555
>         new_subreq = 0x7f4097f42dd0 <tevent_req_destructor>
>         req = 0x55d770434d90
>         state = 0x55d770434f50
>         timeout = 31
>         ret = <optimized out>
>         __FUNCTION__ = "be_resolve_server_done"


Most probably duplicate of bz 1884912 (and bz 1773488)

Comment 7 Scott Dowdle 2022-06-02 21:41:58 UTC
I have this also in EL9 (with AlmaLinux 9)

Comment 10 Alexey Tikhonov 2022-08-16 15:36:34 UTC
JFTR: another crash bug under `be_resolve_server_done()`: bz 2052918

Comment 11 Abhijit Roy 2022-08-30 16:28:42 UTC
(In reply to Alexey Tikhonov from comment #10)
> JFTR: another crash bug under `be_resolve_server_done()`: bz 2052918

Hi Sumit/Alexey,

On case: 03292814 cus is not able to see any segfaults after adding `ad_enabled_domains`

Comment 13 Alexey Tikhonov 2022-09-16 15:01:18 UTC
bz 2052918 and https://github.com/SSSD/sssd/issues/6007 might be relevant (or not).

Comment 16 Alexey Tikhonov 2023-01-20 15:34:54 UTC
Also see https://bugzilla.redhat.com/show_bug.cgi?id=2035625#c6

Comment 22 Alexey Tikhonov 2023-04-05 16:39:20 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6660

Comment 23 Alexey Tikhonov 2023-06-06 12:27:36 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6660

* `master`
    * 8a8869994745429b3f5535a5d0b91f1d0b2fa723 - fail_over: protect against a segmentation fault
* `sssd-2-9`
    * f63a54c3d89866949810d5bcdb09bf2edd3ced02 - fail_over: protect against a segmentation fault