From patchwork Wed Jul 15 14:17:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92542 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 C8D5FC44508 for ; Wed, 15 Jul 2026 14:17:36 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6903.1784125051760847044 for ; Wed, 15 Jul 2026 07:17:31 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=vlQwN5La; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EDB601477 for ; Wed, 15 Jul 2026 07:17:26 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C50A43F7B4 for ; Wed, 15 Jul 2026 07:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784125051; bh=u9mGz9pK3X2Kuzt6Sv8Mu2gsnAUIUYQ5RqiRlkaIhJw=; h=From:To:Subject:Date:From; b=vlQwN5LavaF3L20ZsWicVHuhyJdmVq6sKYj5BC98l5r6usFrS3Z8C6YFSFg/8EkbZ AdPmGdWsKe3pk31FM68JZQQiKZZe+S38oVb0BHYHwv9NT/Dbkr8GfsGeGdglig7QqN IEeniDuAKqEUv7BJM0344U7g+ahPdAyz33PXjkvA= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] systemd: enable coredump by default Date: Wed, 15 Jul 2026 15:17:26 +0100 Message-ID: <20260715141728.2384771-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 14:17:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240972 coredump capturing is useful, so enable the support by default. This doesn't pull any further build dependencies into the build, it just adds coredumpctl and associated services (+140Kb). Signed-off-by: Ross Burton --- meta/recipes-core/systemd/systemd_259.5.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/systemd/systemd_259.5.bb b/meta/recipes-core/systemd/systemd_259.5.bb index 27722f97bbb..356a10b4b61 100644 --- a/meta/recipes-core/systemd/systemd_259.5.bb +++ b/meta/recipes-core/systemd/systemd_259.5.bb @@ -52,6 +52,7 @@ PACKAGECONFIG ??= " \ link-udev-shared \ backlight \ binfmt \ + coredump \ gshadow \ hibernate \ hostnamed \ From patchwork Wed Jul 15 14:17:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92541 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 B2A50C44501 for ; Wed, 15 Jul 2026 14:17:36 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6904.1784125052359736619 for ; Wed, 15 Jul 2026 07:17:32 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=EyTqbPJE; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9BD511477 for ; Wed, 15 Jul 2026 07:17:27 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7E8FE3F7B4 for ; Wed, 15 Jul 2026 07:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784125051; bh=0ecR/9z2GfPLYyUESyWUBPgP89spvDkAxK3Npfb5dnI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EyTqbPJEYPsUkIrpGBLsycBHisfEWvfMmGElF61BtHSezMSPu4fQL76oTdKiamfEA anBbH2xBB4Jm9LHJSkIlr+zqCBvwOUB2cY6Fx0PMlkmka2jtEcjuYoOTWr1aSCcJsZ +sCabTqzFmbRDsjY0rai7XK6HzZmAuI2LqBUrYF8= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] oeqa/utils/postactions: invoke coredumpctl on test failures Date: Wed, 15 Jul 2026 15:17:27 +0100 Message-ID: <20260715141728.2384771-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260715141728.2384771-1-ross.burton@arm.com> References: <20260715141728.2384771-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 14:17:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240973 On a test failure, try running coredumpctl to dump a summary of the core dumps that were captured by systemd into /var/log/coredumps.txt. Signed-off-by: Ross Burton --- meta/lib/oeqa/utils/postactions.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index 7b967edaad0..2792c16bccf 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py @@ -76,6 +76,18 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir): bb.warn(f"Can not retrieve artifacts from test target: {e}") +# +# coredumpctl +# +def run_coredumpctl_info(d, tc, artifacts_list, outputdir): + # "info" shows the last coredump unless you specify a filter. This is the + # message ID for coredumps, so it shows all of the coredumps that are in the + # journal. + output_file = d.expand("${localstatedir}/log/coredumps.txt") + cmd = f"coredumpctl info MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1 | tee {output_file}" + tc.target.run(cmd, ignore_ssh_fails=True) + + ################################################################## # General post actions runner ################################################################## @@ -93,6 +105,7 @@ def run_failed_tests_post_actions(d, tc): os.chmod(outputdir, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH) post_actions=[ + run_coredumpctl_info, list_and_fetch_failed_tests_artifacts, get_target_disk_usage, get_host_disk_usage From patchwork Wed Jul 15 14:17:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 92540 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 BCEB5C4450B for ; Wed, 15 Jul 2026 14:17:36 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6905.1784125052971051441 for ; Wed, 15 Jul 2026 07:17:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=POmIV/Ny; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55A261477 for ; Wed, 15 Jul 2026 07:17:28 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2F4D33F7B4 for ; Wed, 15 Jul 2026 07:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784125052; bh=Fzy7uyh+fZB3Y4FqMFkCk8ag4jumibQ7KWsgJNLMgOU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=POmIV/NyVSHv/97NeTPVpaD8ahmWi6DuVkj21/4GybweIO8by022QC3UCXXPpF1nE ybQS4E4KIr+GjRVzySH1NxBzWEYOgSw/jjzwxwVZIC/muXQD+UfeshGkYET+t4QqzW sdqfSuMak3ZbLW2ejMwFY1rg7OkTObuJNSml3dkM= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] classes/testimage: capture systemd coredumps on failure Date: Wed, 15 Jul 2026 15:17:28 +0100 Message-ID: <20260715141728.2384771-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260715141728.2384771-1-ross.burton@arm.com> References: <20260715141728.2384771-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Jul 2026 14:17:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240974 Add /var/lib/systemd/coredump/ to the list of artifacts to save on test failures, as this is where coredumpctl will write any core dumps that have occured during testimage. Signed-off-by: Ross Burton --- meta/classes-recipe/testimage.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index 9902b8a5682..fd20eafdf90 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass @@ -28,6 +28,7 @@ TESTIMAGE_FAILED_QA_ARTIFACTS = "\ ${sysconfdir}/version \ ${sysconfdir}/os-release \ ${nonarch_libdir}/os-release \ + ${localstatedir}/lib/systemd/coredump/ \ " # If some ptests are run and fail, retrieve corresponding directories