https://bugs.kde.org/show_bug.cgi?id=471222
--- Comment #13 from Paul Floyd <pjfl...@wanadoo.fr> --- I had to modify double_close_range.c and socket_close.c like this #if defined(__linux__) #include <linux/close_range.h> #endif I get 3 new failures The first one has two things. Line number changes because of the Linux header. close/_close needs filtering. paulf> cat none/tests/socket_close*diff --- socket_close.stderr.exp 2024-03-10 10:30:00.201382000 +0100 +++ socket_close.stderr.out 2024-03-10 10:48:23.710309000 +0100 @@ -2,12 +2,12 @@ close socket_fd 3 and close the socket again 3 File descriptor 3: AF_UNIX socket 3: <unknown> is already closed - at 0x........: close (in /...libc...) - by 0x........: main (socket_close.c:37) + at 0x........: _close (in /...libc...) + by 0x........: main (socket_close.c:39) Previously closed - at 0x........: close (in /...libc...) - by 0x........: main (socket_close.c:33) + at 0x........: _close (in /...libc...) + by 0x........: main (socket_close.c:35) Originally opened at 0x........: socket (in /...libc...) - by 0x........: open_socket (socket_close.c:14) - by 0x........: main (socket_close.c:28) + by 0x........: open_socket (socket_close.c:16) + by 0x........: main (socket_close.c:30) The second one just needs a filter paulf> cat none/tests/file_dclose*diff --- file_dclose.stderr.exp 2024-03-10 10:30:00.199191000 +0100 +++ file_dclose.stderr.out 2024-03-10 10:47:29.153702000 +0100 @@ -1,13 +1,13 @@ close 3 time passes and we close 3 again File descriptor 3: file_dclose.tmp is already closed - at 0x........: close (in /...libc...) + at 0x........: _close (in /...libc...) by 0x........: closefile (file_dclose.c:16) by 0x........: main (file_dclose.c:32) Previously closed - at 0x........: close (in /...libc...) + at 0x........: _close (in /...libc...) by 0x........: main (file_dclose.c:28) Originally opened - at 0x........: creat (in /...libc...) + at 0x........: _openat (in /...libc...) by 0x........: openfile (file_dclose.c:10) by 0x........: main (file_dclose.c:25) And the last one is new. --- fdleak_ipv4.stderr.exp 2024-03-10 10:30:00.197868000 +0100 +++ fdleak_ipv4.stderr.out 2024-03-10 10:47:25.622064000 +0100 @@ -1,4 +1,16 @@ +File descriptor 4: internet is already closed + at 0x........: _close (in /...libc...) + by 0x........: client (fdleak_ipv4.c:70) + by 0x........: main (fdleak_ipv4.c:90) + Previously closed + at 0x........: _close (in /...libc...) + by 0x........: client (fdleak_ipv4.c:69) + by 0x........: main (fdleak_ipv4.c:90) + Originally opened + at 0x........: dup (in /...libc...) + by 0x........: client (fdleak_ipv4.c:68) + by 0x........: main (fdleak_ipv4.c:90) Is that a difference in the behaviour of fork between Linux and FreeBSD, or a but in my fork() code? Not sure. I can add the filters after you push the changes. -- You are receiving this mail because: You are watching all bug changes.