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 1930535

Summary: [abrt] [faf] sssd: monitor_service_shutdown(): /usr/sbin/sssd killed by 11
Product: Red Hat Enterprise Linux 8 Reporter: Steeve Goveas <sgoveas>
Component: sssdAssignee: Alexey Tikhonov <atikhono>
Status: CLOSED ERRATA QA Contact: Steeve Goveas <sgoveas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: atikhono, ddas, dlavu, grajaiya, jhrozek, lslebodn, mzidek, pbrezina, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
URL: http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/d41e23acdb73f15bb85975144c7d7de04afa9e2d/
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.5.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:47:00 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:
Attachments:
Description Flags
coredump and other files none

Description Steeve Goveas 2021-02-19 05:41:37 UTC
Created attachment 1757991 [details]
coredump and other files

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/d41e23acdb73f15bb85975144c7d7de04afa9e2d/

http://faf.lab.eng.brq.redhat.com/faf/reports/20480/

Comment 1 Alexey Tikhonov 2021-04-19 19:35:11 UTC
#0  0x00005598c44aaa7c in monitor_service_shutdown (svc=0x5598c53d20e0) at src/monitor/monitor.c:2151
#1  0x00007f9951e0c682 in n (conn=conn@entry=0x5598c5386770) at src/sbus/connection/sbus_connection.c:78
#2  0x00007f99517d4d10 in _tc_free_internal (location=0x7f99517dbed5 "../../talloc.c:440", tc=0x5598c5386710) at ../../talloc.c:1157
...
#17 0x00007f99517da390 in talloc_lib_atexit () at ../../talloc.c:440
#18 0x00007f9950ed2b0c in __run_exit_handlers () from /lib64/libc.so.6
#19 0x00007f9950ed2c40 in exit () from /lib64/libc.so.6
#20 0x00005598c44ac781 in monitor_quit (ret=0, mt_ctx=<optimized out>) at src/monitor/monitor.c:1473
#21 0x00005598c44ad078 in monitor_quit_signal (ev=<optimized out>, se=<optimized out>, signum=15, count=<optimized out>, siginfo=<optimized out>, 
    private_data=<optimized out>) at src/monitor/monitor.c:1490
#22 0x00007f99519eb666 in tevent_common_invoke_signal_handler (se=se@entry=0x5598c5374fd0, signum=signum@entry=15, count=count@entry=1, 
    siginfo=siginfo@entry=0x0, removed=removed@entry=0x0) at ../../tevent_signal.c:370


(gdb) frame
#0  0x00005598c44aaa7c in monitor_service_shutdown (svc=0x5598c53d20e0) at src/monitor/monitor.c:2151
2151	    ctx->num_services--;


(gdb) p ctx
$1 = (struct mt_ctx *) 0x0


https://github.com/SSSD/sssd/blob/95adf488f94f5968f6cfba9e3bef74c07c02ccff/src/monitor/monitor.c#L1599 :
```
    /* zero out references in SVCs so that they don't try
     * to access the monitor context on process shutdown */

    for (svc = mon->svc_list; svc; svc = svc->next) {
        svc->mt_ctx = NULL;
    }
```

Comment 4 Pavel Březina 2021-04-26 09:33:52 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5599

* `master`
    * 38905cac4b67f0e4c4b0f59af9ea7474482f088e - monitor: avoid NULL deref in monitor_service_shutdown(

Comment 12 errata-xmlrpc 2021-11-09 19:47:00 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 (sssd 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-2021:4435