Bug 14294 - AB-INT PTEST: valgrind memcheck/tests/linux/timerfd-syscall ptest intermittent failure
Summary: AB-INT PTEST: valgrind memcheck/tests/linux/timerfd-syscall ptest intermitten...
Status: RESOLVED INVALID
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M3
Assignee: Tony Tascioglu
QA Contact:
URL:
Whiteboard: AB-INT AB-INT-TMPFS
Depends on:
Blocks:
 
Reported: 2021-03-09 14:35 UTC by Köry Maincent
Modified: 2021-07-23 16:35 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Köry Maincent 2021-03-09 14:35:25 UTC
New intermittent ptest failure in test core-image-sato, seen in:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1590/steps/12/logs/stdio

NOTE: Running task 901 of 901 (/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb:do_testimage)
NOTE: recipe core-image-sato-sdk-ptest-1.0-r0: task do_testimage: Started
Bitbake still alive (5000s)
Bitbake still alive (10000s)
WARNING: core-image-sato-sdk-ptest-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py", line 25, in test_ptestrunner_expectfail
    self.do_ptestrunner()
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py", line 112, in do_ptestrunner
    self.fail(failmsg)
AssertionError: Failed ptests:
{'valgrind': ['memcheck/tests/linux/timerfd-syscall']}
Comment 1 Alexandre Belloni 2021-03-11 14:44:32 UTC
This was on ubuntu1804-arm-1
Comment 4 Yi Fan Yu 2021-03-24 19:36:58 UTC
I can't reproduce this failure

I think its due to the load/IO issue

version: 3.16.1
=== Test Summary ===
TOTAL: 726
PASSED: 686
FAILED: 0
SKIPPED: 40
DURATION: 1278

leaving it open for now...
Comment 5 Alexandre Belloni 2021-03-24 22:01:36 UTC
Until now, this only failed on ubuntu1804-arm-1
Comment 6 Paul Eggleton 2021-03-29 03:01:17 UTC
Failed again:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1662
Comment 7 Yi Fan Yu 2021-03-29 17:36:18 UTC
this seems to happening frequently on arm and not that intermittent in nature
Comment 10 Alexandre Belloni 2021-04-15 14:24:55 UTC
This last onesA were on ubunt1804-arm-1. and the last one did contain the runqemu in tmpfs patch
Comment 11 Yi Fan Yu 2021-04-19 19:12:56 UTC
fixed(more a workaround), see previous commit.
Comment 12 Yi Fan Yu 2021-04-19 19:15:36 UTC
Sorry wrong bugzilla link..
reopening although I did submit a patch

https://git.openembedded.org/openembedded-core/commit/?id=099313ef541920d4a84b801d9d8788a56ba7ec61

to print out the diff from expected result.
Comment 13 Yi Fan Yu 2021-04-19 19:15:51 UTC
Sorry wrong bugzilla link..
reopening although I did submit a patch

https://git.openembedded.org/openembedded-core/commit/?id=099313ef541920d4a84b801d9d8788a56ba7ec61

to print out the diff from expected result.
Comment 14 Yi Fan Yu 2021-04-22 21:11:49 UTC
assigning it back to randy, if it happens again, we can get the test output details file 
at 
https://autobuilder.yocto.io/pub/non-release/

and make a judgement if the test needs to be disabled for timing/load reasons.
Comment 15 Naveen Saini 2021-04-26 03:02:15 UTC
Seen additional failures:

AssertionError: Failed ptests:
{'valgrind': ['drd/tests/bar_bad']}

on master (qemux86-64): 
woerker: ubuntu1604-ty-1
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2005

On master-next:
worker:fedora32-ty-1
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2006
Comment 16 Alexandre Belloni 2021-05-02 22:31:53 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1723/steps/12/logs/stdio

qemuarm64
master on ubuntu1804-arm-1
Comment 17 Alexandre Belloni 2021-05-04 07:52:10 UTC
'valgrind': ['memcheck/tests/leak_cpp_interior']

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2022/steps/12/logs/stdio

qemuarm64
master on ubuntu1804-arm-1
Comment 18 Alexandre Belloni 2021-05-06 10:36:26 UTC
leak_cpp_interior is now disabled by 984ffe3ab4b7857b6201494cd77f2261bfc6d050
Comment 19 Chee Yang 2021-05-08 14:45:17 UTC
happen again 
qemuarm64-ptest
worker : ubuntu1804-arm-1
branch_poky : master-next
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1777
Comment 20 Chee Yang 2021-05-14 08:21:30 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1799/steps/12/logs/stdio
qemuarm64-ptest
ubuntu1804-arm-1
Comment 21 Jon Mason 2021-05-21 11:51:44 UTC
Reoccurence 

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1818/steps/12/logs/stdio

qemuarm64-ptest
ubuntu1804-arm-1
Comment 22 Alexandre Belloni 2021-05-27 22:35:41 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1840/steps/12/logs/stdio

{'valgrind': ['memcheck/tests/linux/stack_changes']}

ubuntu1804-arm-1
qemuarm64-ptest
Comment 23 Alexandre Belloni 2021-05-29 00:02:38 UTC
{'valgrind': ['memcheck/tests/linux/stack_changes']}

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1843/steps/12/logs/stdio

qemuarm64-ptest
ubuntu2004-arm-1
Comment 24 Minjae Kim 2021-06-02 02:03:43 UTC
Happend again:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1853/steps/12/logs/stdio

'valgrind': ['memcheck/tests/linux/stack_changes']
qemuarm64-ptest
Comment 29 Tony Tascioglu 2021-06-09 16:24:04 UTC
Hello, I want to update this thread with a few findings.
First, there are several different tests failing in the autobuilder logs in this thread, I'm not sure if it's due to the same underlying cause between these yet.
Furthermore, some of these are failures are on x86_64 and some are on arm64.

I don't think it's the same SMP issue that was affecting the helgrind tests, though it's harder to tell without the diffs or logs from the autobuilder.

I tried to recreate this error by running stack_changes, timerfd-syscall and fb_test_amd64 in Qemu x86_64 in parallel with SMP enabled for over 12 hours overnight and neither of the tests failed.

Arm64 on the other hand has several issues. Testing on qemu_arm64 from an x86_64 host without SMP and with 1G of RAM allocated, stack_changes failed all 10/10 times I ran it on master, and several of the other tests fail randomly a lot more frequently. I am going to try on older versions as well to check if it is a recent change.
Comment 30 Alexandre Belloni 2021-06-14 13:10:32 UTC
As discussed, the memcheck/tests/linux/stack_changes issue is not intermittent and I split it ou in bug 14430
Comment 31 Tony Tascioglu 2021-07-23 16:35:47 UTC
This was catch-all bug with several failures grouped together. We've created more-specific targeted bugs. The issues covered here are either covered by those bugs or no longer occurring.