summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind
Commit message (Collapse)AuthorAgeFilesLines
* valgrind: Backport fixes from 3.22 branchKhem Raj2024-03-305-0/+573
| | | | | | | | | These fixes are helping some ptests on musl and 6.6 kernel (From OE-Core rev: 151dfe7a7bb21cda213ae539f40d17008ad6ff3e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: skip intermittently failing ptestsRandy MacLeod2024-03-072-2/+4
| | | | | | | | | | | | | | | | | Skip a few additional ptests that fail occasionally on the Yocto autobuilder and remove those added to the remove-for-all list if they were already in the remove-for-aarch64 list. === Test Summary === TOTAL: 774 PASSED: 755 FAILED: 0 SKIPPED: 19 (From OE-Core rev: bbe97f6688683ebfe77543eacf8a8a0f3c614545) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Skip 22 arm64 ptestsRandy MacLeod2024-02-151-3/+24
| | | | | | | | | | | With the 3.22 upgrade 21 additional tests fail on qemuarm64. Skip them until the problems are resolved. Tracked by: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15399 (From OE-Core rev: 2fe9097c8c3944ab89d12fd29bcd0fc2d0d195e3) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: skip 14 ptests in 3.22Randy MacLeod2024-02-152-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort the ptest depenencies into a somewhat alpahbetical order. Add python3-compile for ptests. Add softlinks for cachegrind to eliminate a warning seen in those tests. The folowing tests fail after the 3.22 update: memcheck/tests/linux/dlclose_leak-no-keep memcheck/tests/linux/dlclose_leak memcheck/tests/wrap1 memcheck/tests/wrap2 ... memcheck/tests/wrap8 cachegrind/tests/wrap5 massif/tests/bug469146 massif/tests/new-cpp massif/tests/overloaded-new Omit these tests until they are fixed. Tracked by: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15399 === Test Summary === TOTAL: 778 PASSED: 759 FAILED: 0 SKIPPED: 19 (From OE-Core rev: 8203bfac493226c26f0d6db0f653868605433b6f) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: update from 3.21.0 to 3.22.0Randy MacLeod2024-02-155-391/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Full release notes: https://valgrind.org/docs/manual/dist.news.html In summary, there is a new configure option: --with-gdbscripts-dir that lets you install the gdb valgrind python monitor scripts in a specific location. It's not used in the valgrind recipe yet. Also, there were a few Memcheck and Cachegrind improvements made and many bugs fixed. The update required removing the patch: 0001-none-tests-x86-linux-seg_override.c-add-missing-incl.patch as it's dealt with by these commits: f7e4bb4af Bug 382034 - Testcases build fixes for musl 306232d40 musl: another fix for building testcases as described on: https://bugs.kde.org/show_bug.cgi?id=382034 Drop: 002-context-APIs-are-not-available-on-musl.patch since this is handled in a different way by the following upstream commits: c9e88f345 configure, drd: Only build the swapcontext test if swapcontext() is available 7cd4d7816 memcheck/tests/linux/stack_changes: Only run this test if setcontext() is available And the that tracked the error: https://bugs.kde.org/show_bug.cgi?id=434775 is closed. No regression in musl qemux86-64/kvm ptest results. Drop: 0001-fix-opcode-not-supported-on-mips32-linux.patch The resolved (works for me) upstream defect rejected this patch: https://bugs.kde.org/show_bug.cgi?id=396905 and suggested using CFLAGS="-mips32". With this patch dropped, the qemumips build succeeds perhaps due to using -march=mips32r2 Drop: 0001-Make-local-functions-static-to-avoid-assembler-error.patch since this was fixed upstream by commit: d6da48fe5 mips: use local labels for do_acasW() Confirmed with: MACHINE=qemumips TCLIBC=musl bitbake valgrind Ptest Resutls for qemux86-64/kvm glibc: === Test Summary === TOTAL: 792 PASSED: 759 FAILED: 14 SKIPPED: 19 musl: === Test Summary === TOTAL: 792 PASSED: 559 FAILED: 211 SKIPPED: 22 (From OE-Core rev: a04c7714e9f69b7a3fc36adecf7e55c0fcfaa891) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: make ptest depend on all componentsRandy MacLeod2024-02-151-1/+3
| | | | | | | | | | When the helper scripts were split into separate packages, they weren't added as ptest dependencies. Fix that. (From OE-Core rev: 81c15142889ccb6cc2f2a00e7cdb92bcb36ca12c) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: drop PE, PR from /usr/src/debug pathsMartin Jansa2023-11-201-2/+2
| | | | | | | | (From OE-Core rev: cdfb7de5152fc6b8c785fb513393e566bef95288) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: split helper scripts to separate packages, update dependenciesRasmus Villemoes2023-11-051-2/+12
| | | | | | | | | | | | | | | | | | | The cachegrind scripts have been rewritten in python3, so the RDEPENDS on perl is no longer sufficient. This is unfortunately not caught by QA checks since the scripts use #! /usr/bin/env python3 as shebang line. Since the valgrind binary by itself can be quite useful on target, allow including that in the rootfs without also having to pull in the whole perl and python interpreters and stdlibs. (From OE-Core rev: 9797adebd1296f0cf08b1f6f6322fbc804aee14a) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: update 3.20.0 -> 3.21.0Alexander Kanavin2023-05-258-235/+65
| | | | | | | | | | Drop patches merged upstream. (From OE-Core rev: 3c4d78d8a1d5eca91bee66fd815c80eb0889ce81) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Add missing utf-32 gconv dependency for ptestsRichard Purdie2023-03-121-1/+1
| | | | | | | | | Some of the ptests fail in a minimal image. Add the missing gconv dependency needed to allow those tests to pass. (From OE-Core rev: c79bd575cfaeec4b87554ccff72b804248c509a7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Disable drd/tests/bar_bad ptestRandy MacLeod2023-03-111-0/+1
| | | | | | | | | | | | | This is failing intermettently in the YP autobuilder so disable it until we can fix the root cause. [YOCTO #14311] (From OE-Core rev: 77d06aa41c40f8d78903cc499b3f6906a084699e) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Workaround glibc upgradeRichard Purdie2023-02-051-0/+1
| | | | | | | | | The glibc upgrade regresses one of the valgrind tests. Disable it until we can resolve that. (From OE-Core rev: 6c979f3941d047670e3ce1c86815b12706254d50) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Include missing <cstdint>Khem Raj2023-01-282-0/+35
| | | | | | | | (From OE-Core rev: 01698350086cce9ca21cd31f615a6eb49fabe6dc) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: disable tests that started failing after switching to x86-64-v3 targetAlexander Kanavin2023-01-061-0/+9
| | | | | | | (From OE-Core rev: 15f2b1f5295474d05f7af93d3d1009bb547dee35) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: skip the boost_thread test on armRandy MacLeod2022-12-221-0/+1
| | | | | | | | | | This test is failing on the arm workers only so skip there until the issue can be worked on and resolved. The bug #14311 will remain open for tracking. (From OE-Core rev: d98deec9e4aed9e05343d2758f3a3892e2044616) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: remove most hidden tests for arm64Qiu, Zheng2022-11-271-224/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | An earlier version of valgrind fixed the defunct processes bug, so those tests that were skipped specifically for arm can pass now in master, kirkstone, honister, hardknott, and dunfell. Detailed test result with remove-for-aarch64 skipped on qemuarm64: Commit Pass Fail Skip master 624 9 21 kirkstone 618 10 20 honister 616 10 19 hardknott 609 13 18 dunfell 598 16 17 zeus Out of memory: Killed (with many defunct processes) There are now only 12 skipped by remove-for-aarch64 because 9 fail on qemuarm64 and 3 more fail on raspberry pi. These are tracked by: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14960 (From OE-Core rev: cbeb9418c43ec834868aa65b774dc09e983d26d9) Signed-off-by: Zheng Qiu <zheng.qiu@windriver.com> Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: update to 3.20.0Qiu, Zheng2022-11-032-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this update includes: * The option "--vgdb-stop-at=event1,event2,..." accepts the new value abexit. This indicates to invoke gdbserver when your program exits abnormally (i.e. with a non zero exit code). * Fix Rust v0 name demangling. * The Linux rseq syscall is now implemented as (silently) returning ENOSYS. * Add FreeBSD syscall wrappers for __specialfd and __realpathat. * Remove FreeBSD dependencies on COMPAT10, which fixes compatibility with HardenedBSD * The option --enable-debuginfod=<no|yes> [default: yes] has been added on Linux. * More DWARF5 support as generated by clang14. Drop the patch 0001-Fix-drd-tests-shared_timed_mutex.cpp.patch which was merged upstream. ptest result: System Pass Fail Skip x86-64 717 0 20 (From OE-Core rev: 51e3d2ecef6a031105c04eb730580c17411eaf46) Signed-off-by: Zheng Qiu <zheng.qiu@windriver.com> Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: (re)send ppc instructions patch upstreamAlexander Kanavin2022-09-021-4/+4
| | | | | | | | (From OE-Core rev: 8d2e0bf9b13496ec5a8da546afa045cf49938a1d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Update to match debug file layout changesRichard Purdie2022-08-171-2/+2
| | | | | | | | Update the recpie to match the recent debug files layout change. (From OE-Core rev: 7d191fc547a817f453496f2f48901ff384e34875) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Disable drd/tests/std_thread2 ptestRichard Purdie2022-08-171-0/+1
| | | | | | | | | | After improvements to debug sources handling I suspect that extra debug information became available and is confusing this test. Disable it for now until someone with more knowledge can resolve the issue. (From OE-Core rev: 2d52b590f4f254ba6ff310af1f68780a0f329673) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Drop redundant oe_runmake parameterniko.mauno@vaisala.com2022-06-251-1/+1
| | | | | | | | | | | PARALLEL_MAKE is now honored in ptest.bbclass, so drop redundant parameter from oe_runmake call. (From OE-Core rev: 1e351aef06acd383bb5a57a6e0b8a23370d22152) Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: submit arm patches upstreamAlexander Kanavin2022-05-273-3/+3
| | | | | | | | (From OE-Core rev: 118a68bbe8c87eac77e87db409ce419749b211bb) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: update 3.18.1 -> 3.19.0Alexander Kanavin2022-04-287-480/+33
| | | | | | | | | | Dropped patches are either backports, were merged upstream, or upstream fixed the issue differently. (From OE-Core rev: 4c9b619eb7cd91e7ffc8db0f5571a4dbe6966ccc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie2022-02-201-1/+1
| | | | | | | | | | | | | license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. (From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Avoid accessing network in ptest taskKhem Raj2022-01-152-0/+37
| | | | | | | | | Avoid calling docs validation and manpages validation to avoid it (From OE-Core rev: 4ad8059ae0769285c7b837a62e1b76fbeef4c505) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: make run-ptest betterRandy MacLeod2022-01-041-9/+14
| | | | | | | | | | | | | There were warnings about non-existent files when there was a duplicate in the remove-for-aarch list and the non-deterministic lists so check if the files still exists before trying to deal with it. Also restore the tests in the opposite order that they were hidden. (From OE-Core rev: 2e1dc5782dcb879410d535f937c633edea484d11) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: skip boost_thread for aarch64 ptestsRandy MacLeod2022-01-041-0/+1
| | | | | | | | | | | The drd/tests/boost_thread test passes when run interactively on qemuarm64 but fails for most runs when run in qemu on an arm worker such as ubuntu1804-arm-1 from the Yocto autobuilder cluster. Skip the test until we fix the problem. (From OE-Core rev: 9a36983f9681f215aa2f59bfcb16343fe0a819cd) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: remove duplicate and skipped tests from remove-for-aarch64Randy MacLeod2022-01-041-8/+0
| | | | | | | | | | | | | | | | The valgrind ptest script warns about tests such as: mv: cannot stat 'drd/tests/bar_bad_xml.vgtest': No such file or directory Since these tests were either in both remove-for-* lists or were not installed since they fail everywhere as noted in: 85a0d61025 valgrind: fix the remaining ptest failures 984ffe3ab4 valgrind: Disable leak_cpp_interior test remove them from the remove-for-aarch64 list (From OE-Core rev: 9492cdc43b830ebf0d02ccaae342f33c826d8a01) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: backport rseq work-aroundRandy MacLeod2022-01-042-0/+199
| | | | | | | | | | | | | | | | | | | | Using glibc-2.35-alpha, valgrind ptests mostly all fail with the error: WARNING: unhandled amd64-linux syscall: 334 You may be able to write your own handler. With this patch applied qemux86-64 ptest results were: TOTAL: 728 PASSED: 709 FAILED: 0 SKIPPED: 19 This patch implements the Linux rseq syscall as ENOSYS while a proper fix is being worked on as desribed in the patch commit log. (From OE-Core rev: 6ca008072df0371b6b1cfdd7030da6494ff012bd) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Add util-linux-taskset ptest dependencyRandy MacLeod2022-01-041-1/+2
| | | | | | | | | | | We are using taskset to improve the reproducability of tests listed in: meta/recipes-devtools/valgrind/valgrind/taskset_nondeterministic_tests so we need to have the ptests depend on util-linux-taskset. (From OE-Core rev: aa06250cc4e258ad807eef9940939fd68c0bda8b) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: remove unneeded patchAlexander Kanavin2021-12-062-52/+0
| | | | | | | | | | Whatever the issues were all those years ago, current valgrind builds ok on qemux86_64 and qemuppc. (From OE-Core rev: 4691b0566319797ab98b81e8e93c4615704edb70) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: submit patch upstreamAlexander Kanavin2021-11-111-1/+1
| | | | | | | (From OE-Core rev: abc2ae3d1694e5aa393e7c28d238e90ce4f517bd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: mark ptest-specific patch as inappropriateAlexander Kanavin2021-11-071-1/+1
| | | | | | | | | | I do not think upstream is going to accept this; if you disagree please do the submission. (From OE-Core rev: 22b0bd6cfdbf7216a6aca34fa9ca93133a3cee64) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: update 3.17.0 -> 3.18.1Alexander Kanavin2021-10-2310-1862/+33
| | | | | | | | (From OE-Core rev: da8f9c5e1ebe655a1a8e9935dd6560121bca2e74) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: set precise BSD licenseRoss Burton2021-09-041-1/+1
| | | | | | | | | "BSD" is ambiguous, use the precise license BSD-3-Clause. (From OE-Core rev: b12cbda349658ddef8cb72d5738c094c2b009e7e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: skip broken ptests for glibc 2.34Tony Tascioglu2021-08-122-0/+9
| | | | | | | | | | | | | Skip tests that are problematic for glibc-2.34. The list of problematic ptests was found by Richard after patching several to work with the new glibc version. https://bugzilla.yoctoproject.org/show_bug.cgi?id=14500 (From OE-Core rev: c177c7f9ef6f90ca49074f003accb8e9a1a645aa) Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Add patches for glibc 2.34 supportRichard Purdie2021-08-055-0/+1674
| | | | | | | | This partially resolves ptest failures with glibc 2.34. (From OE-Core rev: 9adf897176924cad6b12d4da73a904cfbf578f46) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to new override syntaxRichard Purdie2021-08-021-28/+28
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: skip flaky ptest fb_test_amd64Tony Tascioglu2021-07-161-0/+1
| | | | | | | | | | | | | Recently, the none/tests/amd64/fb_test_amd64 test had been flaky and causing failures on the auto-builder. Until we can get to the root cause of the issue, we are going to skip the test to reduce the noise from the ptests. (From OE-Core rev: a365cd7a358db96791033e6dc6e45d2e816d3e4c) Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Actually install list of non-deterministic ptestsTony Tascioglu2021-06-173-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Install list of non-deterministic threaded ptests to be run using taskset to force them to a single core. This commit works with b318944d7, which updated the testing script to run the non-deterministic tests separately but didn't install the list of tests, so these tests were being run without taskset. The taskset_nondeterministic_tests file is the list of tests that will be run separately with taskset, and ignored during the other tests. This is installed to /usr/lib/valgrind/ptest similar to the 2 existing lists for tests to skip on ARM and all architectures. Removed bar_bad and bar_bad_xml to be included separately as they cause issues on non-kvm QEMU instances. See: b318944dd7 valgrind: Improve non-deterministic ptest reliability for more info. (From OE-Core rev: 3d23985d0d653844863ed513d75d93a36359992f) Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: remove buggy ptest from arm64Tony Tascioglu2021-06-121-0/+1
| | | | | | | | | | | | | | | | | | | | | This commit removes the stack_changes ptest from aarch64 devices. This test is buggy and fails almost 100% of the time in qemuarm64. In general, many of the valgrind tests are more likely to fail on qemuarm64 vs native x86_64. This test previously worked on gatesgarth and dunfell, but has been failing since hardknott. It might be due to a recent change in the cross-compiler or glibc. The test runs fine when running natively on arm on a Raspberry Pi. Until we can find the root cause for the failures, this shorter term solution should clear up some of the noise from the autobuilder from a known failure. (From OE-Core rev: 82d6411b80a46d8ec0258ca75c3c80dc6128d44e) Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: fix a typoKai Kang2021-06-081-1/+1
| | | | | | | (From OE-Core rev: 0478d9b04d6a6d10e439116b23b641a1e2553e26) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Improve non-deterministic ptest reliabilityTony Tascioglu2021-06-062-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several of the valgrind tests (particulaly helgrind) are unreliable and can fail with a different output. Particularly, there is a higher chance of failure on QEMU instances with SMP enabled and on systems with more interrupts such as laptops on powersave. The tests have been reported upstream as being unreliable dating back over 5 years, due in part to the ordering of threads during an "unwinding" process in helgrind. https://bugs.kde.org/show_bug.cgi?id=345121 https://bugs.kde.org/show_bug.cgi?id=430321 A workaround to improve the reliability of such tests is to force them to run on a single CPU core using taskset. This greatly reduces the chance of a failure. >From my testing, I have found it can help reduce the rate of failures on both a laptop and QEMU by over 5x. Stress-testing in QEMU for several hours did not result in a failure while running the test normally did. The flaky or undeterministic thread-based tests are defined in the taskset_nondeterministic_tests file. These test cases will be run with taskset 0x00000001 to run on a single CPU core rather then the regular test. The edited run-ptest executes the flaky tests first, then ignores them to not duplicate the results from the main tests. Everything modified is restored when testing is complete. The drawback is that this isn't a foolproof solution. It helps the tests fail much less frequently, and considering how this issue has been documented for a long time, a workaround such as this is needed. (From OE-Core rev: b318944dd72ca7b0408e955f3599381ab3ac3ba8) Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ptest: add newly discovered missing runtime dependencies across recipesAlexander Kanavin2021-05-271-1/+1
| | | | | | | | | | Making ptest images based on core-image-minimal uncovered quite a few missing depenendcies from various recipes, here they are. (From OE-Core rev: 2cda6242f2f0f6f9c6bdef72bbb271eab7e5e1f5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Disable leak_cpp_interior testKhem Raj2021-05-021-0/+3
| | | | | | | | | | This test is known to fail and especially is prominent with GCC-11 where stdc++17 is enabled by default (From OE-Core rev: 7f549d7c1f0a3f3cf312ebe00ce8cfc0e787bf15) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Enable drd/tests/bar_bad* ptestYi Fan Yu2021-04-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | Revert some of 7f7d2fa18267090891754d976cbc3e628324d3dd Was not able to reproduce the reported non-deterministic failure. (ran 20 times on qemux86-64 on a relatively isolated machine) it might be related to the AB-INT issues, but it seems to only affect ARM builders now. Also no action taken by upstream valgrind to fix https://bugs.kde.org/show_bug.cgi?id=430321 Let it run on AB to see if failure was fixed by uprev to 3.17.0. if not, we can gather more data from the AB failure. [YOCTO #14051] (From OE-Core rev: c0ea23832a96352d8eeda5cebc9d37a22c5d5439) Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Add libstdc++ debug symbols for ptestKhem Raj2021-04-181-1/+1
| | | | | | | | | new/delete symbols are needed by overloaded-new.post test (From OE-Core rev: 11bb1fe42590fd35ae5f24196d263f93dd063d35) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Add glibc-src to ptest rdepsKhem Raj2021-04-181-1/+1
| | | | | | | | | | gdbserver tests look for glibc sources ( rtld.c ) or else they are flagged as differences and tests marked as failures (From OE-Core rev: 3824f811db82c6f2360eea19a9df9129f4330291) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Delete trailing whitespacesKhem Raj2021-04-181-2/+1
| | | | | | | (From OE-Core rev: 2a049dd918e565c37b03af03973c695420b9599a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* valgrind: Fix ptest swapcontext.vgtestYi Fan Yu2021-04-183-30/+66
| | | | | | | | | | | | | | | Backport an upstream patch. to limit the amount of stackstrace present. Revert "valgrind: Disable ptest swapcontext.vgtest" Effectively reverts commit 9dff5766f5795bb02677050045f24365f68bbc1a. [YOCTO #14324] (From OE-Core rev: a9baae5994354ba6410793f8a54e224e9dc21b5a) Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>