Bug 2120680

Summary: sssd-client-2.7.3-1.fc36.x86_64 causes duplicati backups to fail - _nss_sss_getpwuid_r is involved
Product: [Fedora] Fedora Reporter: Louis van Dyk <louis>
Component: sssdAssignee: sssd-maintainers <sssd-maintainers>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: abokovoy, atikhono, jhrozek, lslebodn, luk.claes, mzidek, pbrezina, sbose, ssorce, sssd-maintainers
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-23 14:26:26 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
/var/log/messages at the time of failure none

Description Louis van Dyk 2022-08-23 14:11:09 UTC
Created attachment 1907139 [details]
/var/log/messages at the time of failure

Description of problem:

I had been running Duplicati (backup system) successfully for the July 2022.  Suddenly, at the start of August, the jobs would crash after a random time period, at any random file.  I upgraded from Fedora 35 to Fedora 36, which didn't help.  Eventually I found that downgrading sssd-client from 2.7.3-1 (which installed 2.7.0-1) fixed the problem and I got the first successful backups in three weeks.  

Duplicati uses mono to run.


Version-Release number of selected component (if applicable):
Duplicati was working perfectly when using
   sssd-client-2.7.1-2.fc35.x86_64
However, after upgrading the sssd group of packages the jobs began to fail.
   sssd-client-2.7.3-1.fc35.x86_64
As mentioned, I upgraded to Fedora 36, and it still failed when I was running
   sssd-client-2.7.3-1.fc36.x86_64
But it worked again after running "dnf downgrade sssd-client" which installed 
   sssd-client-2.7.0-1.fc36.x86_64


How reproducible:
Once sssd 2.7.3-1 is running, backing up local files (e.g. /home) backed up via Duplicati to an SFTP destination fails at a random time of 10 seconds to 5 hours, and never on the same file.  I will paste the /var/log/messages crash dump under "actual results".


Steps to Reproduce:
1. Install Duplicati and run successfully along with sssd-client-2.7.1-2 or earlier.
2. Upgrade to sssd-client-2.7.3-1
3. Become frustrated as backup jobs crash before completion.


Actual results:

The attached file shows what is recorded in /var/log/messages as the crash happens.

Noteworthy entries from another crash are:
Aug  9 20:59:31 fedora duplicati-server[265988]: #9  0x00007f93c6e37576 in __assert_fail () from /lib64/libc.so.6
Aug  9 20:59:31 fedora duplicati-server[265988]: #10 0x00007f93c6e902b0 in pthread_mutex_lock@@GLIBC_2.2.5 () from /lib64/libc.so.6
Aug  9 20:59:31 fedora duplicati-server[265988]: #11 0x00007f93c71c6736 in sss_nss_mc_get_ctx () from /lib64/libnss_sss.so.2
Aug  9 20:59:31 fedora duplicati-server[265988]: #12 0x00007f93c71c71fe in sss_nss_mc_getpwuid () from /lib64/libnss_sss.so.2
Aug  9 20:59:31 fedora duplicati-server[265988]: #13 0x00007f93c71c9036 in _nss_sss_getpwuid_r () from /lib64/libnss_sss.so.2
Aug  9 20:59:31 fedora duplicati-server[265988]: #14 0x00007f93c6edc631 in getpwuid_r@@GLIBC_2.2.5 () from /lib64/libc.so.6


Expected results:

It should work as it did before updating the sssd suite.


Additional info:
See the discussion at https://forum.duplicati.com/t/suddenly-started-crashing-mono-sgen-pthread-mutex-lock-c/14819/28

Comment 1 Alexey Tikhonov 2022-08-23 14:26:26 UTC
Hi,

I think this is a dulicate of bz 2111582. Fixed upstream, should be fixed in Fedora soon.

*** This bug has been marked as a duplicate of bug 2111582 ***