#1034 SSSD can crash due to dbus server removing a UNIX socket
Closed: Fixed None Opened 12 years ago by jhrozek.

Description of problem:

SSSD components comunicate using a low-level DBus protocol. On initializing the
server dbus is given a filename that represents a known interface and creates
the socket When server shuts down, it calls a dbus cleanup function which
removes the socket.

Normally, this is OK, problem arise when:

  1. a sssd component (a back end for example) is stopped
  2. monitor detects it does not respond, kills it and spawns a new one
  3. the old back end calls its shutdown function /after/ the new one has started
  4. dbus removes the named socket

Version-Release number of selected component (if applicable):

sssd-1.5.1-53

How reproducible:

always

Steps to Reproduce:

  1. start sssd
  2. killall -STOP sssd_be
  3. wait until monitor sends TERM to sssd_be and spawns a new one
  4. killall -CONT sssd_be
  5. getent passwd foobar

Actual results:

the socket /var/lib/sss/pipes/private/sbus-dp_$domain is removed
sssd_nss crashes

Expected results:

sssd only reconnects to the new back end, the old back end shuts down
gracefully

Additional info:

The crash was found by Kaushik Banerjee


Fields changed

rhbz: => 743841

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.5.14
owner: somebody => jhrozek
priority: major => blocker

Fields changed

status: new => assigned

Fields changed

patch: 0 => 1

Fixed by:

- master
    - fe9cea3352b919f81ead0de5487ed593325b2ef0
    - 2c9a76e553f9239eaa91f32ccaf18b7a68316ce5
- sssd-1-6
    - dbfc54be75b6d00879189e6f7ab82f65b17c1b9d
    - 80a0a7569ea86d518bca4c322de15f925ef4e6db
- sssd-1-5
    - b9ba410625690e0b4d409cfaec6ff3a20de96e60
    - a828aeef4f6d567ba08b846bfc5f78b69698f0d8

resolution: => fixed
status: assigned => closed

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.5.14

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2076

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata