Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F595C48260 for ; Wed, 14 Feb 2024 00:24:08 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.30826.1707870237939303199 for ; Tue, 13 Feb 2024 16:23:58 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@windriver.com header.s=PPS06212021 header.b=WOBdBHi+; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=2774398e6c=randy.macleod@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41E0HoNW017489 for ; Wed, 14 Feb 2024 00:23:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-type:message-id:date:subject:to:cc:references:from :in-reply-to:mime-version; s=PPS06212021; bh=RDxxzGPJgnvqjFnp+8Y ZHcGILOXg89d5VfxZGFZ5VEc=; b=WOBdBHi+IXFar1ufPghg0hOkuf5jNPi+XrC DGTh9ex9LkaRO9Qv6iH60IlhhFFhdBPbLsFBPEiddMaIrhsKC9UJwmArDt5gvCny 5haKPYec5xoiNuCuyMXLphEmyhEaW+K034KJsWxRuW17AtaGxjcFFCoQQEIJkFeF MkYMznr1IEhVCPIEietUwbKbDtcFitCDWIo117X9IA9ZtZlfNVlCvaJ50jJwyPUW JNd5NYQdBdiLdgUrw6xSE+WSvnRpCwFR8j91PjLIjA7JUrs5JjQ3kOf7mEuE4npH Q5gUGzE0/AOEcDzhvpvaWkDTYEPO+TdpyC3yPITxzFkBjfB7c/w== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3w6046u976-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 14 Feb 2024 00:23:56 +0000 (GMT) Received: from m0250812.ppops.net (m0250812.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.24/8.17.1.24) with ESMTP id 41E0Nupb024784; Wed, 14 Feb 2024 00:23:56 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3w6046u975-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Feb 2024 00:23:56 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KUUuyTKFiRB6kDz+MhqaIzzUqAiTgicMJPCAIw3o42FQ9VyEubDVC3PJsgf7h1dlY2MI0DZ7OuClyriXh8UomR0p2WJD/Q6yWt1L+/reNJ9t7h/c3sJriaKm2CJTZnYNMGa9F2R3r00eI/3BwTbpebqRcaRyQAX6dKzH3thUug49AJtyEvy8azNaaT7bYiwnAiXBYxhja95OClpzfTRygG/pkWlp3zfZuAhtmbJn1NJDZKByQOdvBvl9Zu7PaKQdYZuqp/Sje50jiUKtZTAQexqBpGnGx1QLnOh2JfQ8tEOEEWYFnwMQQNJrCOBlHhiNz4ctNjvi85H5wY44Tu4WGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RDxxzGPJgnvqjFnp+8YZHcGILOXg89d5VfxZGFZ5VEc=; b=dv5weLmyImifDdhb0WlxwfJjx+ThhaXfBwDBSd3g+TrKWeEJWA6HLqZGgUTzwJByVUYQyzO6dDRgpIF735PfGc8H6HwKFPfrhVcqhEFwbhiaHh4e1johR/mJfJwcPEye15FQ8S+BjFGFlfg3qWgYedZarVd5FYa6BPbkDiGPrbO23Id2hHD74a8032QeA/S61KPSgL870xWSaHphgpP+UzG5AxZ5XEoxZ9jRfAmrhufwAH0+16uzqw3RV92N4meh9njjpcDP8aKk+5FEXmAV2U9xMoz/Wm8cm77dODiydBja2GmDCjtBqlXSmXFHi6RCBg6whXh0+CZCRprhwbfD+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from SJ0PR11MB5920.namprd11.prod.outlook.com (2603:10b6:a03:42e::9) by SA3PR11MB7977.namprd11.prod.outlook.com (2603:10b6:806:2f3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Wed, 14 Feb 2024 00:23:52 +0000 Received: from SJ0PR11MB5920.namprd11.prod.outlook.com ([fe80::f3ba:ff33:12be:cff7]) by SJ0PR11MB5920.namprd11.prod.outlook.com ([fe80::f3ba:ff33:12be:cff7%7]) with mapi id 15.20.7270.036; Wed, 14 Feb 2024 00:23:51 +0000 Content-Type: multipart/alternative; boundary="------------XY9NuQTgyCJxTP9NYu6YYqoe" Message-ID: <4e88b287-fecd-4ea8-8d91-189b64c49a68@windriver.com> Date: Tue, 13 Feb 2024 19:23:49 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] valgrind: update from 3.21.0 to 3.22.0 Content-Language: en-CA To: Khem Raj , Alexandre Belloni Cc: openembedded-core@lists.openembedded.org References: <20240212220501.3571864-1-Randy.MacLeod@windriver.com> <20240212220501.3571864-2-Randy.MacLeod@windriver.com> From: Randy MacLeod In-Reply-To: X-ClientProxiedBy: BYAPR06CA0022.namprd06.prod.outlook.com (2603:10b6:a03:d4::35) To SJ0PR11MB5920.namprd11.prod.outlook.com (2603:10b6:a03:42e::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR11MB5920:EE_|SA3PR11MB7977:EE_ X-MS-Office365-Filtering-Correlation-Id: a7a83066-55e5-4b01-e6c2-08dc2cf33873 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xDhOAzCJijGW4gNw0MhTtYYmC5lDfVHaLnwbM6GZbqG/DNdxQu+AR2vuikVstisr0YI78ZJ4Q4w6NOzIQiQTVRfuHD5GVCKfKo2EqExbz/zwKwkUv1/SdGG5quoRcJyGHDVuWs+c5i7zqsPJPPnm/JYfXpJmdq+b5/rCb7S4fnrwT+x942gs2Qtwy/99+qgNULeSpRXMu3YK581/tPU8cZMmsY55v2sztcFPHVB9mOl1g32GURhJDdrzdjbO1iDAtIyK2i0Dk91xI7AElnwe6Ht4QCbg+E8nrv5Myhw9TW3j90aGXxzvaYa0xNznzXPMdrZh0lBWrzu4HV5IKBLFCXhir9SLnRgG5C4F7bWzbjvUG0NvdjsI2YbWdZPwlnNZefSSZ6zrJ4+HZxikNIXUq9WkLilU+Q3H71isw1hWCBoDhIPEJFM01rIyhUfRwF7urHFSjdjNvAaeTFWB2I7ECAzPleOmG5+i6RWfQ8E5uHYXFgH+VCq3D1rhNaMR+joD5KcuBo7s0o70SP6EykOOT/bIGou2kSv0iFFYRTLL6yY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB5920.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39850400004)(136003)(376002)(366004)(396003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(36756003)(15650500001)(66476007)(66946007)(8936002)(8676002)(66556008)(38100700002)(4326008)(30864003)(5660300002)(166002)(41300700001)(86362001)(31696002)(83380400001)(6506007)(33964004)(6486002)(110136005)(316002)(26005)(2616005)(966005)(53546011)(6512007)(478600001)(2906002)(31686004)(579004)(559001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WDNaWUR5TjliSi9jbkhSbUdldUU1elBWd1ZIUHloa3VNU2JtL0lIelprRlpC?= =?utf-8?B?RThwTXlYV1JOY0J4RnRndjBCZkg0dkZnU0daenpZSU1lN1N2Q01wQkVxL2g3?= =?utf-8?B?c1VwY3pYaEZBYmY5WHNkTGNJdml0WTQwb3BybWVLMmFvTmZ4aGpEMHFVODFB?= =?utf-8?B?a1M1RW9leGtNV0F3L09OY2E3cTcvdTMvOW5JRWNIZTNvbFlOSDZrV3k3bGpG?= =?utf-8?B?Q3E1UzFnMFYvT2UwQVYwWk9FWllGSFlNdXA0dkVTOWtld3NRSmJrVS9EU2Vm?= =?utf-8?B?YXQ3SUNybWhOQ21GWEllU1BacWRvZ0Z2NjQwS1JFTHNuU2F6SlR2YUJaVDZa?= =?utf-8?B?cVpIMXBWaURtdENzejlUTmNZRUgyMHp0NTN0eDNIUTFSOW4zSmttRWk0aW1V?= =?utf-8?B?MW4zMjZQVHp0SGF4V0h0ajVNZE90NFlYU2x4SUFuZWhHMzY0ODYrL3N3SDBJ?= =?utf-8?B?U1JpSWRXUUJlY1Q3OTQrckc4SExWWlo0UTBSSzdTVEQwdHlKSTVFR3pHUmdL?= =?utf-8?B?MVBNU3pSUFcxb1VJKy9yVGRnYlFYd2FoZnVSSVV2MnpHWlpRM3R2VnVJa2hV?= =?utf-8?B?NUxhcFdRcmxkNWxpNC80L3dBSlQyVHVWMWR5Nm5oSUdSQ1dsTU53NE82UFNI?= =?utf-8?B?N0p3UWcxZERaUFkyMjUrWUpXOENObGJWSTNPSG5FbUYvcUZZMEFIYkJobVpP?= =?utf-8?B?U0RGWlUxdm4wa1hlYzZDb25Dd09EYlozQUs5THE5UUtKamU1c0hFc2JTTGNh?= =?utf-8?B?RCtyYWJsd2tNR3p4Vm9lM21BWnpRSG92bTQ5VSsyNzl1bWtkMXFPSmVuLytL?= =?utf-8?B?dHN0djdTZGNWUFVDdStGdFk3aFVNU3ZCWlJkdnNDc2gzdklpbWhUdXdRWUQ4?= =?utf-8?B?aVQxOS9SUnI3SFVyaG1SanZCYjhhL0trVWw3K05LMGRjUUZjWnNNV29zcHVv?= =?utf-8?B?S3UzQnh0N2tpRlNGL2RsZUdQREFyWjRHdE1DTE9CUVlYd3FWZHFiMTZWc1FY?= =?utf-8?B?cTMzUktLODdhZGh5U2RMMXVUSzMxQk1VTjBpQVV6OWxITWpPcXY0a2pmOVpU?= =?utf-8?B?alZTMnhweUwxVVRuc0RqS21HcWEzRkVFWitVTmEzWVFaMHBqeURtT215RGxJ?= =?utf-8?B?dGYwWjZjeWxpZkRRWUpMNkRHcG82VGIxVEYwRUxmeWNrLzgza25sUnhWcUJq?= =?utf-8?B?bkUwZmZOZXgyQTJZcGlqY2ZwNW1xb1htS1dweDRmWm10dDgvMFdZMkcySmV0?= =?utf-8?B?TFg1TWM0ZmdRK0RDaEwzMkFtYTV4c3VhOCtDcnZFNzBNdlUzZ3lWblVUNzFN?= =?utf-8?B?WEtnQUFhZkVCVHdzdm9EQ2JEWmdMY211Y0VhbGJsQUZHYVV5Ym5mTVBlQWFN?= =?utf-8?B?MjVXS2NpN0N3TzVWZVhvZjRlM1VXOEJzQTVkdVZieXhqbWR5ekRGNHUwSHdN?= =?utf-8?B?b1JZVmFxaHcvNGh1R2FPcE9xbmlFNE9kWmJxajYwSkNSTDlla3diZ2wvOXR3?= =?utf-8?B?amJFMHl5SkFTSTZsQzZ5NzJmZ01ZQWVmVTEyMkJ6RmZmUVJBZW85U3NnUm5i?= =?utf-8?B?S3RXa0R6R1RnbTBMZkI0SUhGbHBWbThFUUt5eVg2YXE2T3RLN2xvUHdvT0l5?= =?utf-8?B?UG45NHllaDMwbTdETzhEZkw2d1ozTlpaZnA0S01paEd4WERQR2RYT2U4cyt1?= =?utf-8?B?N0ZkUWVjeTlBb0gzYUY1ZjI1WXhnUURzaXoyOXFYTjNTeis0TmtGb2ZpK0t6?= =?utf-8?B?djRiUU0xVnlwY0tIMk05M0xVZmRKcndiMGZMQkdQU2tlZk1oS2FnWll5eVY1?= =?utf-8?B?UmY3RitZRjFUMmVMV3RQSGNNcmlCUmFnUUdhVC9SU0NWMitSa2U1bUVnMkY2?= =?utf-8?B?WU1HNUFyZU9NWmRPa2wvbmZOeld0bEVqelRzSzRxNDZHRG11Q3dUUmZBVVYr?= =?utf-8?B?ZUdZNUxkaUMyVWtTTGZEdjNQUUd5Y0s0QXhoREtrRTJrQmRDVnhncDBGRlFu?= =?utf-8?B?RWNOUFVHcXRHQ1hLNlUzQzBLQlJpWDYvTjdhRi9aQ2xIWmpiYUp1WWZkdHRn?= =?utf-8?B?WUU1OEF6bVN2L1BaTC9PSnZ2ZVBGblJBV082aGhuQ2ZsZnFNVGx5K1hvUGts?= =?utf-8?B?MGJTL3ZEU29tL2xadVk5d05raThqcERvRmtSWW82ZGNibEZiY0piMFAzbEZK?= =?utf-8?B?Wmc9PQ==?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7a83066-55e5-4b01-e6c2-08dc2cf33873 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5920.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2024 00:23:51.7743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XzfEIU7SfDAbVEK//dTAAV8UtnIWCYax6h7shXhXZzf1yw5eCS6HAHADxJvTdoDnwZB6qSPy7TN062oAcg8Ygwl35sGC+Zz2dLHRUHfuFIM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7977 X-Proofpoint-ORIG-GUID: g7q-OQNpqqub9QNlFMCZlMeR1-doR35y X-Proofpoint-GUID: c6Wy1uka7bL_VROAoWY7Rj1cSiUfgzhO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-13_16,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 impostorscore=0 clxscore=1015 spamscore=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402140000 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Feb 2024 00:24:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/195447 --------------XY9NuQTgyCJxTP9NYu6YYqoe Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 41E0HoNW017489 On 2024-02-12 9:40 p.m., Khem Raj wrote: > Thanks, my run with clang/musl with this patchset, I guess, it needs a > little more investigation Sure but this shouldn't hold up testing the upgrade in oe-core. I had tested TCLIBC=3Dmusl already and it worked fine. I tried adding meta-clang (and meta-oe for something else) and adding: TOOLCHAIN =3D "clang" TCLIBC=3D"musl" but I get some error about: run-postinsts-1.0-r0 do_create_spdx: Cannot find any SPDX file for=20 recipe initscripts, False=20 sstate:initscripts:core2-64-poky-linux:1.0:r0:core2-64:11:=20 sstate:initscripts::1.0:r0::1 which I'm not going to debug today. I limited clang to only valgrind using: TOOLCHAIN:pn-valgrind =3D "clang" in conf/local.conf=C2=A0 and confirm that that made valgrind use clang by looking at:=20 tmp/work/core2-64-poky-linux-musl/valgrind/3.22.0/temp/log.do_compile =C2=A0 x86_64-poky-linux-musl-clang ... and then boot using: runqemu kvm nographic qemuparams=3D"-m 1024" # ptest-runner valgrind=C2=A0 | tee vg.log I get the valgrind ptest logs (1), but the ptests terminate before=20 completion with errors along the way. I'll try again with more memory but there was no evidence of the OOM kill= er. ../Randy 1) Poky (Yocto Project Reference Distro)=20 4.3+snapshot-da4826a59f929edb3b4470bc72a4066704751157 qemux86-64 ttyS0 qemux86-64 login: root root@qemux86-64:~# ptest-runner valgrind | tee vg.log START: ptest-runner 2024-02-13T23:14 BEGIN: /usr/lib/valgrind/ptest Hide valgrind tests that are non-deterministic Reported at https://bugs.kde.org/show_bug.cgi?id=3D430321 Run non-deterministic tests using taskset to limit them to a single core. FAIL: helgrind/tests/hg05_race2 FAIL: helgrind/tests/tc09_bad_unlock SKIP: gdbserver_tests/hgtls FAIL: gdbserver_tests/mcblocklistsearch timed out FAIL: gdbserver_tests/mcbreak FAIL: gdbserver_tests/mcclean_after_fork PASS: gdbserver_tests/mchelp FAIL: gdbserver_tests/mcinfcallRU timed out FAIL: gdbserver_tests/mcinfcallWSRU PASS: gdbserver_tests/mcinvokeRU PASS: gdbserver_tests/mcinvokeWS FAIL: gdbserver_tests/mcleak FAIL: gdbserver_tests/mcmain_pic FAIL: gdbserver_tests/mcsignopass FAIL: gdbserver_tests/mcsigpass timed out ... =C2=A0=C2=A0=C2=A0 FAIL: helgrind/tests/tc17_sembar FAIL: helgrind/tests/tc18_semabuse FAIL: helgrind/tests/tc19_shadowmem FAIL: helgrind/tests/tc20_verifywrap FAIL: helgrind/tests/tc21_pthonce FAIL: helgrind/tests/tc22_exit_w_lock FAIL: helgrind/tests/tc23_bogus_condwait FAIL: helgrind/tests/tc24_nonzero_sem FAIL: helgrind/tests/tls_threads2 FAIL: helgrind/tests/trylock Error: could not find the program /usr/bin/getconf. Please install the glibc-common package. FAIL: drd/tests/annotate_barrier Error: could not find the program /usr/bin/getconf. Please install the glibc-common package. FAIL: drd/tests/annotate_hb_err Error: could not find the program /usr/bin/getconf. Please install the glibc-common package. ... PASS: none/tests/tls FAIL: none/tests/unit_debuglog FAIL: none/tests/vgprintf PASS: none/tests/vgprintf_nvalgrind PASS: exp-bbv/tests/amd64-linux/clone_test PASS: exp-bbv/tests/amd64-linux/complex_rep PASS: exp-bbv/tests/amd64-linux/fldcw_check PASS: exp-bbv/tests/amd64-linux/ll PASS: exp-bbv/tests/amd64-linux/million PASS: exp-bbv/tests/amd64-linux/rep_prefix [=C2=A0=C2=A0=C2=A0 0.000000] Linux version 6.6.15-yocto-standard (oe-use= r@oe-host)=20 (x86_64-poky-linux-musl-gcc (GCC) 13.2.0, GNU ld (GNU Binutils)=20 2.42.0.20240202) #1 SMP PREEMPT_DYNAMIC Sun Feb=C2=A0 4 12:104 [=C2=A0=C2=A0=C2=A0 0.000000] Command line: root=3D/dev/vda rw=20 ip=3D192.168.7.14::192.168.7.13:255.255.255.0::eth0:off:8.8.8.8=20 net.ifnames=3D0 console=3DttyS0 console=3DttyS1 oprofile.timer=3D1 tsc=3D= reliable=20 no_timer [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-provided physical RAM map:=C2=A0 \ ... [=C2=A0=C2=A0=C2=A0 1.005334] Run /sbin/init as init process [=C2=A0=C2=A0=C2=A0 1.005885]=C2=A0=C2=A0 with arguments: [=C2=A0=C2=A0=C2=A0 1.005887] /sbin/init [=C2=A0=C2=A0=C2=A0 1.005889]=C2=A0=C2=A0 with environment: [=C2=A0=C2=A0=C2=A0 1.005890] HOME=3D/ [=C2=A0=C2=A0=C2=A0 1.005892] TERM=3Dlinux [=C2=A0=C2=A0=C2=A0 1.090654] udevd[124]: starting version 3.2.14 [=C2=A0=C2=A0=C2=A0 1.100909] udevd[125]: starting eudev-3.2.14 [=C2=A0=C2=A0=C2=A0 1.105003] usb 2-2: new high-speed USB device number 3= using ehci-pci [=C2=A0=C2=A0=C2=A0 1.239928] input: QEMU QEMU USB Keyboard as=20 /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/0003:0627:0001.0002/inp= ut/input2=20 [=C2=A0=C2=A0=C2=A0 1.294299] hid-generic 0003:0627:0001.0002: input: USB= HID v1.11=20 Keyboard [QEMU QEMU USB Keyboard] on usb-0000:00:1d.7-2/input0 [=C2=A0=C2=A0=C2=A0 1.368109] EXT4-fs (vda): re-mounted=20 99e7cf17-6791-422c-8cc5-b8e817178616 r/w. Quota mode: disabled. [=C2=A0 536.890724] memcheck-amd64-[12380]: memfd_create() called without= =20 MFD_EXEC or MFD_NOEXEC_SEAL set init =C2=A0 |-getty 38400 tty1 |-rsyslogd =C2=A0 | `-4*[{rsyslogd}] =C2=A0 |-start_getty /bin/start_getty 115200 ttyS0 vt102 =C2=A0 | `-sh =C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |-ptest-runner valgrind =C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 |-ptest-runne= r-co /usr/bin/ptest-runner-collect-system-data =C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 |=C2=A0=C2=A0= `-pstree -a -l =C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | `-(run-ptest) =C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 `-tee vg.log =C2=A0 |-start_getty /bin/start_getty 115200 ttyS1 vt102 =C2=A0 |=C2=A0=C2=A0 `-getty -L 115200 ttyS1 vt102 =C2=A0 |-udevd -d =C2=A0 |-vgdb --wait=3D60 --vgdb-prefix=3D./vgdb-prefix-mcinfcallWSRU =C2=A0 | `-{vgdb} =C2=A0 `-vgdb --wait=3D60 --vgdb-prefix=3D./vgdb-prefix-mcvabits `-{vgdb} Filesystem=C2=A0=C2=A0=C2=A0=C2=A0 1K-blocks=C2=A0=C2=A0 Used Available U= se% Mounted on /dev/root=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 39491304 411732=C2=A0 36940= 204=C2=A0=C2=A0 2% / devtmpfs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 496688=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0 496688=C2=A0=C2=A0 0% /dev tmpfs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 498832=C2=A0=C2=A0=C2=A0 124=C2=A0=C2=A0=C2=A0 498708=C2=A0=C2=A0 1% = /run tmpfs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 498832=C2=A0=C2=A0=C2=A0 200=C2=A0=C2=A0=C2=A0 498632=C2=A0=C2=A0 1% = /var/volatile =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 total=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 used=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 free=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 shar= ed buff/cache=C2=A0=C2=A0=20 available Mem:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 997664=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 61724=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 787800=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 356 168580=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 935940 Swap:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0= 0 ERROR: Exited from signal Killed (9) DURATION: 1339 TIMEOUT: /usr/lib/valgrind/ptest END: /usr/lib/valgrind/ptest 2024-02-13T23:36 STOP: ptest-runner TOTAL: 1 FAIL: 2 Nothing in /var/log/messages. > > tput: No value for $TERM and no -T specified > 'drd/tests/sem_as_mutex', > 'drd/tests/sem_as_mutex2', > 'drd/tests/sem_as_mutex3', > ... > 'drd/tests/threaded-fork-vcs', > 'drd/tests/threaded-fork', > 'drd/tests/timed_mutex', > 'drd/tests/tls_threads', > 'massif/tests/pages_as_heap', > 'dhat/tests/copy', > 'none/tests/amd64/bug132918', > 'none/tests/amd64/fcmovnu', > 'none/tests/amd64/fxtract', > 'none/tests/amd64/sse4-64', > 'none/tests/amd64/x87trigOOR', > 'none/tests/exec-sigmask', > 'none/tests/linux/brk-overflow1', > 'none/tests/linux/brk-overflow2', > 'none/tests/linux/clonev', > 'none/tests/linux/mremap', > 'none/tests/rcrl', > 'none/tests/require-text-symbol-2', > 'none/tests/resolv', > 'none/tests/thread-exits', > 'none/tests/unit_debuglog']} --=20 # Randy MacLeod # Wind River Linux --------------XY9NuQTgyCJxTP9NYu6YYqoe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 2024-02-12 9:40 p.m., Khem Raj wrote:
Thanks, my run with clang/musl with this patchset, I guess, it needs a
little more investigation

Sure but this shouldn't hold up testing the upgrade in oe-core.


I had tested TCLIBC=musl already and it worked fine.

I tried adding meta-clang (and meta-oe for something else)
and adding:

TOOLCHAIN = "clang"
TCLIBC="musl"

but I get some error about:

run-postinsts-1.0-r0 do_create_spdx: Cannot find any SPDX file for recipe initscripts, False sstate:initscripts:core2-64-poky-linux:1.0:r0:core2-64:11: sstate:initscripts::1.0:r0::1

which I'm not going to debug today.


I limited clang to only valgrind using:

TOOLCHAIN:pn-valgrind = "clang"

in conf/local.conf  and confirm that that made valgrind use clang by

looking at: tmp/work/core2-64-poky-linux-musl/valgrind/3.22.0/temp/log.do_compile

  x86_64-poky-linux-musl-clang ...

and then boot using:
runqemu kvm nographic qemuparams="-m 1024"

# ptest-runner valgrind  | tee vg.log

I get the valgrind ptest logs (1), but the ptests terminate before completion
with errors along the way.

I'll try again with more memory but there was no evidence of the OOM killer.

../Randy

1)

Poky (Yocto Project Reference Distro) 4.3+snapshot-da4826a59f929edb3b4470bc72a4066704751157 qemux86-64 ttyS0                                                                                  
                                                                                                                                                                                              
qemux86-64 login: root                                                                                                                                                                        
root@qemux86-64:~# ptest-runner valgrind | tee vg.log                                                                                                                                         
START: ptest-runner                                                                            
2024-02-13T23:14                                                                                                                                                                              
BEGIN: /usr/lib/valgrind/ptest                                                                                                                                                                
Hide valgrind tests that are non-deterministic                                                                                                                                                
Reported at https://bugs.kde.org/show_bug.cgi?id=430321                                                                                                                                       
Run non-deterministic tests using taskset to limit them to a single core.                      
FAIL: helgrind/tests/hg05_race2                                                                                                                                                               
                                                                                               
FAIL: helgrind/tests/tc09_bad_unlock                                                           
                                                                                                                                                                                              
SKIP: gdbserver_tests/hgtls                                                                                                                                                                   
FAIL: gdbserver_tests/mcblocklistsearch                                                                                                                                                       
timed out                                                                                                                                                                                     
FAIL: gdbserver_tests/mcbreak                                                                                                                                                                 
FAIL: gdbserver_tests/mcclean_after_fork                                                                                                                                                      
PASS: gdbserver_tests/mchelp                                                                                                                                                                  
FAIL: gdbserver_tests/mcinfcallRU                                                                                                                                                             
timed out                                                                                      
FAIL: gdbserver_tests/mcinfcallWSRU                                                            
PASS: gdbserver_tests/mcinvokeRU                                                                                                                                                              
PASS: gdbserver_tests/mcinvokeWS                                                               
FAIL: gdbserver_tests/mcleak                                                                   
FAIL: gdbserver_tests/mcmain_pic                                                               
FAIL: gdbserver_tests/mcsignopass                                                              
FAIL: gdbserver_tests/mcsigpass                                                                
timed out   

...

    FAIL: helgrind/tests/tc17_sembar                                                                                                                                                              
FAIL: helgrind/tests/tc18_semabuse                                                                                                                                                            
FAIL: helgrind/tests/tc19_shadowmem                                                                                                                                                           
FAIL: helgrind/tests/tc20_verifywrap                                                                                                                                                          
FAIL: helgrind/tests/tc21_pthonce                                                              
FAIL: helgrind/tests/tc22_exit_w_lock                                                          
FAIL: helgrind/tests/tc23_bogus_condwait                                                                                                                                                      
FAIL: helgrind/tests/tc24_nonzero_sem                                                                                                                                                         
FAIL: helgrind/tests/tls_threads2                                                                                                                                                             
FAIL: helgrind/tests/trylock                                                                                                                                                                  
Error: could not find the program /usr/bin/getconf.                                                                                                                                           
Please install the glibc-common package.                                                       
FAIL: drd/tests/annotate_barrier                                                                                                                                                              
Error: could not find the program /usr/bin/getconf.                                                                                                                                           
Please install the glibc-common package.                                                                                                                                                      
FAIL: drd/tests/annotate_hb_err                                                                                                                                                               
Error: could not find the program /usr/bin/getconf.                                            
Please install the glibc-common package.    

...

PASS: none/tests/tls                                                                                                                                                                          
FAIL: none/tests/unit_debuglog                                                                 
FAIL: none/tests/vgprintf                                                                      
PASS: none/tests/vgprintf_nvalgrind                                                            
PASS: exp-bbv/tests/amd64-linux/clone_test                                                     
PASS: exp-bbv/tests/amd64-linux/complex_rep                                                    
PASS: exp-bbv/tests/amd64-linux/fldcw_check                                                    
PASS: exp-bbv/tests/amd64-linux/ll                                                                                                                                                            
PASS: exp-bbv/tests/amd64-linux/million                                                                                                                                                       
PASS: exp-bbv/tests/amd64-linux/rep_prefix                                                     
                                                                                                                                                                                              
[    0.000000] Linux version 6.6.15-yocto-standard (oe-user@oe-host) (x86_64-poky-linux-musl-gcc (GCC) 13.2.0, GNU ld (GNU Binutils) 2.42.0.20240202) #1 SMP PREEMPT_DYNAMIC Sun Feb  4 12:104
[    0.000000] Command line: root=/dev/vda rw  ip=192.168.7.14::192.168.7.13:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0 console=ttyS0 console=ttyS1 oprofile.timer=1 tsc=reliable no_timer
[    0.000000] BIOS-provided physical RAM map:  \

...

[    1.005334] Run /sbin/init as init process                                                  
[    1.005885]   with arguments:                                                                                                                                                              
[    1.005887]     /sbin/init                                                                                                                                                                 
[    1.005889]   with environment:                                                                                                                                                            
[    1.005890]     HOME=/                                                                                                                                                                     
[    1.005892]     TERM=linux                                                                                                                                                                 
[    1.090654] udevd[124]: starting version 3.2.14                                             
[    1.100909] udevd[125]: starting eudev-3.2.14                                               
[    1.105003] usb 2-2: new high-speed USB device number 3 using ehci-pci                                                                                                                     
[    1.239928] input: QEMU QEMU USB Keyboard as /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/0003:0627:0001.0002/input/input2                                                            
[    1.294299] hid-generic 0003:0627:0001.0002: input: USB HID v1.11 Keyboard [QEMU QEMU USB Keyboard] on usb-0000:00:1d.7-2/input0                                                           
[    1.368109] EXT4-fs (vda): re-mounted 99e7cf17-6791-422c-8cc5-b8e817178616 r/w. Quota mode: disabled.                                                                                      
[  536.890724] memcheck-amd64-[12380]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set                                                                                          
init                                                                                           
  |-getty 38400 tty1                                                                                                                                                                          
  |-rsyslogd                                                                                                                                                                                  
  |   `-4*[{rsyslogd}]                                                                                                                                                                        
  |-start_getty /bin/start_getty 115200 ttyS0 vt102                                                                                                                                           
  |   `-sh                                                                                     
  |       |-ptest-runner valgrind                                                                                                                                                             
  |       |   |-ptest-runner-co /usr/bin/ptest-runner-collect-system-data                      
  |       |   |   `-pstree -a -l                                                               
  |       |   `-(run-ptest)                                                                                                                                                                   
  |       `-tee vg.log                                                                                                                                                                        
  |-start_getty /bin/start_getty 115200 ttyS1 vt102                                                                                                                                           
  |   `-getty -L 115200 ttyS1 vt102                                                                                                                                                           
  |-udevd -d                                                                                                                                                                                  
  |-vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcinfcallWSRU                                                                                                                                  
  |   `-{vgdb}                                                                                                                                                                                
  `-vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcvabits                                                                                                                                       
      `-{vgdb}                                                                                 
Filesystem     1K-blocks   Used Available Use% Mounted on                                      
/dev/root       39491304 411732  36940204   2% /                                                                                                                                              
devtmpfs          496688      0    496688   0% /dev                                            
tmpfs             498832    124    498708   1% /run                                            
tmpfs             498832    200    498632   1% /var/volatile                                   
               total        used        free      shared  buff/cache   available               
Mem:          997664       61724      787800         356      168580      935940               
Swap:              0           0           0                                                   
                                                                                                                                                                                              
ERROR: Exited from signal Killed (9)                                                                                                                                                          
DURATION: 1339                                                                                 
TIMEOUT: /usr/lib/valgrind/ptest                                                                                                                                                              
END: /usr/lib/valgrind/ptest                                                                                                                                                                  
2024-02-13T23:36                                                                                                                                                                              
STOP: ptest-runner                                                                             
TOTAL: 1 FAIL: 2                    


Nothing in /var/log/messages.


   tput: No value for $TERM and no -T specified
                  'drd/tests/sem_as_mutex',
                  'drd/tests/sem_as_mutex2',
                  'drd/tests/sem_as_mutex3',
...
                  'drd/tests/threaded-fork-vcs',
                  'drd/tests/threaded-fork',
                  'drd/tests/timed_mutex',
                  'drd/tests/tls_threads',
                  'massif/tests/pages_as_heap',
                  'dhat/tests/copy',
                  'none/tests/amd64/bug132918',
                  'none/tests/amd64/fcmovnu',
                  'none/tests/amd64/fxtract',
                  'none/tests/amd64/sse4-64',
                  'none/tests/amd64/x87trigOOR',
                  'none/tests/exec-sigmask',
                  'none/tests/linux/brk-overflow1',
                  'none/tests/linux/brk-overflow2',
                  'none/tests/linux/clonev',
                  'none/tests/linux/mremap',
                  'none/tests/rcrl',
                  'none/tests/require-text-symbol-2',
                  'none/tests/resolv',
                  'none/tests/thread-exits',
                  'none/tests/unit_debuglog']}


-- 
# Randy MacLeod
# Wind River Linux
--------------XY9NuQTgyCJxTP9NYu6YYqoe--