Bug 2372833 - [abrt] coreutils: __read_nocancel(): chown killed by SIGABRT
Summary: [abrt] coreutils: __read_nocancel(): chown killed by SIGABRT
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 42
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: sssd-maintainers
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:f826508ee7520d3b9c05ab733c0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-14 09:33 UTC by shane.jansen@gmail.com
Modified: 2025-12-03 11:30 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-03 11:30:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: proc_pid_status (1.45 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: maps (1.98 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: limits (1.29 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: environ (469 bytes, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: open_fds (274 bytes, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: mountinfo (3.96 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: os_info (754 bytes, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: cpuinfo (2.80 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: core_backtrace (7.15 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: dso_list (465 bytes, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details
File: backtrace (24.90 KB, text/plain)
2025-06-14 09:33 UTC, shane.jansen@gmail.com
no flags Details

Description shane.jansen@gmail.com 2025-06-14 09:33:29 UTC
Version-Release number of selected component:
coreutils-9.6-3.fc42

Additional info:
reporter:       libreport-2.17.15
type:           CCpp
reason:         chown killed by SIGABRT
journald_cursor: s=d8b55ea2de094e48aad5fd53dbff0000;i=52a72d8;b=30b306c8c3d64239b1f61b612cd134a5;m=2271a99fff;t=635f82e44761d;x=1232c7c8ebd8571e
executable:     /usr/bin/chown
cmdline:        /bin/chown -f -h sssd:sssd /var/lib/sss/secrets/secrets.ldb
cgroup:         0::/system.slice/sssd-kcm.service
rootdir:        /
uid:            0
kernel:         6.14.6-300.fc42.x86_64
package:        coreutils-9.6-3.fc42
runlevel:       N 5
backtrace_rating: 4
crash_function: __read_nocancel

Truncated backtrace:
Thread no. 1 (22 frames)
 #0 __read_nocancel at ../sysdeps/unix/sysv/linux/read_nocancel.c:26
 #1 open_verify at dl-load.c:1588
 #2 _dl_map_object at dl-load.c:2086
 #3 dl_open_worker_begin at dl-open.c:542
 #4 _dl_catch_exception at dl-catch.c:241
 #5 dl_open_worker at dl-open.c:761
 #6 _dl_catch_exception at dl-catch.c:241
 #7 _dl_open at dl-open.c:874
 #8 do_dlopen at dl-libc.c:95
 #9 _dl_catch_exception at dl-catch.c:241
 #10 _dl_catch_error at dl-catch.c:260
 #11 dlerror_run at dl-libc.c:45
 #12 __libc_dlopen_mode at dl-libc.c:162
 #13 module_load at nss_module.c:187
 #14 __nss_module_load at nss_module.c:302
 #15 __nss_module_get_function at nss_module.c:328
 #16 __nss_lookup_function at nsswitch.c:137
 #17 __nss_next2 at nsswitch.c:120
 #18 __getgrnam_r at ../nss/getXXbyYY_r.c:343
 #19 getgrnam at ../nss/getXXbyYY.c:140
 #20 parse_with_separator at ../lib/userspec.c:198
 #21 parse_user_spec_warn at ../lib/userspec.c:262

Comment 1 shane.jansen@gmail.com 2025-06-14 09:33:34 UTC
Created attachment 2093963 [details]
File: proc_pid_status

Comment 2 shane.jansen@gmail.com 2025-06-14 09:33:36 UTC
Created attachment 2093964 [details]
File: maps

Comment 3 shane.jansen@gmail.com 2025-06-14 09:33:38 UTC
Created attachment 2093965 [details]
File: limits

Comment 4 shane.jansen@gmail.com 2025-06-14 09:33:40 UTC
Created attachment 2093966 [details]
File: environ

Comment 5 shane.jansen@gmail.com 2025-06-14 09:33:41 UTC
Created attachment 2093967 [details]
File: open_fds

Comment 6 shane.jansen@gmail.com 2025-06-14 09:33:43 UTC
Created attachment 2093968 [details]
File: mountinfo

Comment 7 shane.jansen@gmail.com 2025-06-14 09:33:45 UTC
Created attachment 2093969 [details]
File: os_info

Comment 8 shane.jansen@gmail.com 2025-06-14 09:33:46 UTC
Created attachment 2093970 [details]
File: cpuinfo

Comment 9 shane.jansen@gmail.com 2025-06-14 09:33:48 UTC
Created attachment 2093971 [details]
File: core_backtrace

Comment 10 shane.jansen@gmail.com 2025-06-14 09:33:50 UTC
Created attachment 2093972 [details]
File: dso_list

Comment 11 shane.jansen@gmail.com 2025-06-14 09:33:52 UTC
Created attachment 2093973 [details]
File: backtrace

Comment 12 Lukáš Zaoral 2025-06-16 07:52:34 UTC
The backtrace suggests that this is likely an issue in libnss_sss.so which is provided by the sssd-client package.

Comment 13 Lukáš Zaoral 2025-06-16 07:53:50 UTC
(Of course, I may be wrong, the ABRT bugreports are usually quite useless...)

Comment 14 Alexey Tikhonov 2025-06-16 19:07:17 UTC
(In reply to Lukáš Zaoral from comment #12)
> The backtrace suggests that this is likely an issue in libnss_sss.so which
> is provided by the sssd-client package.

Well, `libc` didn't even finish loading `libnss_sss.so`, so this is hardly an issue in this lib:
```
Program terminated with signal SIGABRT, Aborted.
#0  __GI___read_nocancel
#1  0x00007fb76d5efad0 in open_verify (name=name@entry=0x5555e186b3c0 "/lib64/libnss_sss.so.2"
#2  0x00007fb76d5f313e in _dl_map_object
#3  0x00007fb76d5f6baa in dl_open_worker_begin (a=0x7ffdb236d7f0) at dl-open.c:542
        args = 0x7ffdb236d7f0
        file = 0x5555e186b3a0 "libnss_sss.so.2"
```

Open FDs also say:
```
3:/usr/lib64/libnss_sss.so.2
pos:	832
```

What is weird is that entire chain is triggered by
```
#19 0x00007fb76d4f28ce in getgrnam (name=name@entry=0x7ffdb236edf1 "sssd")
```
that must be a local group, resolvable by `libnss_files.so.2`

shane.jansen, what is the output of:
(1) `grep "^group:" /etc/nsswitch.conf`
(2) `getent -s files group sssd`
(3) `rpm -qV sssd-client`
on your system?

Are you able to reproduce this?

Comment 15 shane.jansen@gmail.com 2025-06-30 01:03:02 UTC
The information you requested is below. I noticed an error in the Problem Reporting tool and forwarded it to Bugzilla and was otherwise unaware of any issue, so I'm not really able to reproduce this.

root@thenv15:~# grep "^group:" /etc/nsswitch.conf
group:      files [SUCCESS=merge] sss [SUCCESS=merge] systemd
root@thenv15:~# getent -s files group sssd
sssd:x:972:
root@thenv15:~# rpm -qV sssd-client
root@thenv15:~#

Comment 16 Alexey Tikhonov 2025-06-30 08:07:02 UTC
(In reply to shane.jansen from comment #15)
> 
> group:      files [SUCCESS=merge] sss [SUCCESS=merge] systemd

This explains why `getgrnam("sssd")` reaches SSSD.
Still no idea why glibc failed to load `libnss_sss.so`


Note You need to log in before you can comment on or make changes to this bug.