Bug 15538

Summary: AB-INT PTEST: valgrind ptest failure: in none/tests/fdleak_ipv4
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Mingli Yu <mingli.yu>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: randy.macleod
Version: unspecified   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2024-07-01 08:07:16 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6588/steps/13/logs/stdio

Failed ptests:
{'valgrind': ['none/tests/fdleak_ipv4']}

qemuarm64-ptest ubuntu1804-arm-1
Comment 1 João Marcos Costa 2024-11-21 09:34:27 UTC
https://valkyrie.yoctoproject.org/#/builders/73/builds/424/steps/13/logs/stdio

qemux86-64-ptest opensuse155-vk-2
Comment 2 João Marcos Costa 2024-11-21 09:37:30 UTC
Failed test details...
none/tests/fdleak_ipv4.stderr.diff
************
--- fdleak_ipv4.stderr.exp
+++ fdleak_ipv4.stderr.out
@@ -1,4 +1,13 @@
 
+
+FILE DESCRIPTORS: 5 open (3 std) at exit.
+Open AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:...
+   ...
+
+Open AF_INET socket 3: 127.0.0.1:... <-> <unbound>
+   ...
+
+
 File descriptor 4: AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:... is already closed
    at 0x........: close (in /...libc...)
    by 0x........: client (fdleak_ipv4.c:70)
@@ -11,15 +20,6 @@
    at 0x........: dup (in /...libc...)
    by 0x........: client (fdleak_ipv4.c:68)
    by 0x........: main
-
-FILE DESCRIPTORS: 5 open (3 std) at exit.
-Open AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:...
-   ...
-
-Open AF_INET socket 3: 127.0.0.1:... <-> <unbound>
-   ...
-
-
 
 FILE DESCRIPTORS: 4 open (3 std) at exit.
 Open AF_INET socket 3: 127.0.0.1:... <-> 127.0.0.1:...
=== Test Summary ===
TOTAL: 795
PASSED: 773
FAILED: 1
SKIPPED: 21
DURATION: 605
END: /usr/lib/valgrind/ptest
Comment 3 João Marcos Costa 2025-02-03 16:36:20 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/866/steps/12/logs/stdio

Another fdleak_ipv4 failure:

{'valgrind': ['gdbserver_tests/mcinfcallWSRU',
              'gdbserver_tests/nlcontrolc',
              'gdbserver_tests/nlvgdbsigqueue',
              'memcheck/tests/sendmsg',
              'drd/tests/fork-parallel',
              'drd/tests/fork-serial',
              'drd/tests/threaded-fork-vcs',
              'drd/tests/threaded-fork',
              'none/tests/fdleak_ipv4',
              'none/tests/file_dclose',
              'none/tests/socket_close']}

qemux86-64-ptest rocky9-vk-1
Comment 4 João Marcos Costa 2025-02-03 16:49:09 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/864/steps/12/logs/stdio

Failed ptests:
{'valgrind': ['gdbserver_tests/mcinfcallWSRU',
              'gdbserver_tests/nlcontrolc',
              'gdbserver_tests/nlvgdbsigqueue',
              'memcheck/tests/sendmsg',
              'drd/tests/fork-parallel',
              'drd/tests/fork-serial',
              'drd/tests/threaded-fork-vcs',
              'drd/tests/threaded-fork',
              'none/tests/fdleak_ipv4',
              'none/tests/file_dclose',
              'none/tests/socket_close']}

qemuarm64-ptest ubuntu2204-vk-arm1
Comment 5 Randy MacLeod 2025-05-15 18:43:42 UTC
No upstream resolution. 
rpm is currently v4 and this is targeted for v6 so it could be a while!
Comment 6 Randy MacLeod 2026-01-22 16:05:21 UTC
Mingli is working with valgrind upstream to try to improve the test approach so that we don't have as big a patchset and hopefully one that has fewer if any intermittent problems.

We have disabled valgrind ptests on master:
https://git.openembedded.org/openembedded-core/commit/?id=8fc31fb235af12530475ec5055f6c00ccfafadfa