https://bugs.kde.org/show_bug.cgi?id=523362
Bug ID: 523362
Summary: getpwnam causes a -1 fd to be passed to fstat
Classification: Developer tools
Product: valgrind
Version First unspecified
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
Calling `getpwnam` causes a warning about -1 being passed to fstat
STEPS TO REPRODUCE
1. Create a C file calling getpwnam given any name **not** on the system
2. Compile and run with valgrind
OBSERVED RESULT
`Warning: invalid file descriptor -1 in syscall fstat()` is stated
EXPECTED RESULT
No error, it shouldn't error. Especially on systemd based systems as unix
domain sockets are used for user database functions.
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.10.3
Kernel Version: 7.0.14-101.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i7-10700F CPU @ 2.90GHz
Memory: 48 GiB of RAM (46.8 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 2060 SUPER
ADDITIONAL INFORMATION
This is on valgrind version 3.27.1 Fedora 43 RPM.
The same error occurs when `valgrind chown name file` is ran -- where name
isn't a user on the system -- for gnu coreutils version 9.7 on the same system
--
You are receiving this mail because:
You are watching all bug changes.