[valgrind] [Bug 467714] fdleak_* and rlimit tests fail when parent process has more than 64 descriptors opened.
https://bugs.kde.org/show_bug.cgi?id=467714 Mark Wielaard changed: What|Removed |Added Resolution|--- |FIXED Status|CONFIRMED |RESOLVED --- Comment #3 from Mark Wielaard --- commit 16be0ca4ba53154642bd45e6aa60ffba57369a0c Author: Mark Wielaard Date: Sat Apr 15 00:13:57 2023 +0200 tests fdleak.h close all open file descriptors > 2 Use sysconf (_SC_OPEN_MAX) to find the upper limit. Or use 1024 if that fails. https://bugs.kde.org/show_bug.cgi?id=467714 -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 467714] fdleak_* and rlimit tests fail when parent process has more than 64 descriptors opened.
https://bugs.kde.org/show_bug.cgi?id=467714 --- Comment #2 from Mark Wielaard --- Tested with: #include #include int main (int argc, char *const argv[]) { for (int i = 0; i < 100; ++i) dup (1); execvp (argv[1], argv + 1); exit (1); } gcc -o dup100 dup100.c ./dup100 valgrind --track-fds=yes /bin/true ==673839== FILE DESCRIPTORS: 103 open (3 std) at exit. ==673839== Open file descriptor 102: /dev/pts/5 ==673839== [...] ./dup100 perl tests/vg_regtest none/tests/fdleak*vgtest all fail with patch all succeed \o/ -- You are receiving this mail because: You are watching all bug changes.
[valgrind] [Bug 467714] fdleak_* and rlimit tests fail when parent process has more than 64 descriptors opened.
https://bugs.kde.org/show_bug.cgi?id=467714 Mark Wielaard changed: What|Removed |Added Assignee|jsew...@acm.org |m...@klomp.org Status|REPORTED|CONFIRMED Ever confirmed|0 |1 CC||m...@klomp.org --- Comment #1 from Mark Wielaard --- Created attachment 157527 --> https://bugs.kde.org/attachment.cgi?id=157527=edit close all file descriptors > 2 with CLOSE_INHERITED_FDS -- You are receiving this mail because: You are watching all bug changes.