Bug 216445
Summary: | capsh --print segfaults when compiled statically on F35 | ||
---|---|---|---|
Product: | Tools | Reporter: | Andrew G. Morgan (morgan) |
Component: | libcap | Assignee: | Tools/Libcap default virtual assignee (tools_libcap) |
Status: | RESOLVED ANSWERED | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | n/a | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Andrew G. Morgan
2022-09-04 22:33:10 UTC
This bug explains how to resolve itself. Also, note static compilation still fails even in this way if you try to sudo ./capsh --uid=1234 --print when the uid value you choose is unknown. This has been broken for static compilation forever on Fedora/glibc/?? when compiling statically. Indeed, there are a number of compilation warnings to the effect that this is not supposed to work, but I'm ever hopeful it will be fixed. $ sudo gdb ./capsh (gdb) run --uid=1234 --print Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7fccbe0 in sss_cli_check_socket.constprop () from /lib64/libnss_sss.so.2 Missing separate debuginfos, use: dnf debuginfo-install sssd-client-2.7.3-1.fc35.x86_64 (gdb) bt #0 0x00007ffff7fccbe0 in sss_cli_check_socket.constprop () from /lib64/libnss_sss.so.2 #1 0x00007ffff7fcd138 in sss_nss_make_request () from /lib64/libnss_sss.so.2 #2 0x00007ffff7fce1a4 in _nss_sss_getpwuid_r () from /lib64/libnss_sss.so.2 |