From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <adrian.freihofer@siemens.com>,
<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH v2 13/14] oe-selftest: devtool ide-sdk: add clang/LLDB test
Date: Fri, 07 Aug 2026 17:11:58 +0200 [thread overview]
Message-ID: <DKIT3XLETTWD.4QS3K7M6HPXE@bootlin.com> (raw)
In-Reply-To: <20260804120034.378787-14-adrian.freihofer@siemens.com>
On Tue Aug 4, 2026 at 1:59 PM CEST, Adrian Freihofer via lists.openembedded.org wrote:
> From: Adrian Freihofer <adrian.freihofer@siemens.com>
>
> Add test_devtool_ide_sdk_code_cmake_clang to verify the full devtool
> ide-sdk workflow for a cmake recipe built with clang. Unlike the gcc
> variant the clang recipe uses lldb-server for remote debugging and
> CodeLLDB (vadimcn.vscode-lldb) as the VS Code debug adapter.
>
> The test covers:
> - devtool modify + devtool ide-sdk with ide=code
> - cmake preset compilation and CTest execution (same as the gcc test)
> - extensions.json recommends vadimcn.vscode-lldb
> - launch.json uses "type": "lldb" (CodeLLDB) instead of "type": "cppdbg"
> - End-to-end lldb --batch remote debugging session via lldb-server
> platform mode running on qemu
>
> Supporting changes:
> - _write_bb_config: accept optional extra_packages parameter so the
> clang test can add lldb-server to IMAGE_INSTALL
> - _verify_launch_json_lldb: new helper that validates the CodeLLDB
> launch.json structure (type, initCommands, program, cwd, preLaunchTask)
> - _lldb_server_debugging_once: new helper that reads the preLaunchTask
> SSH command from tasks.json, starts lldb-server on the target, and
> runs lldb --batch to verify a breakpoint at main is hit
> - _verify_service_running: use pgrep with exact regex (^name$) for exact
> process name matching; without that, pgrep would also match
> cmake-example-clang (truncated to 'cmake-example-c' in
> /proc/pid/comm) when checking for cmake-example, returning two PIDs
> and failing the isdigit() assertion
>
> Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
> ---
Hi Adrian,
This patch was merged, but it now looks like some of the added tests are
sometimes failing.
So far, we only saw the issue on test branches and never on master, so
there is a small chance some other patch is breaking the test, but I
suspect the issue is also present on master.
Here is the error:
2026-08-05 14:12:52,800 - oe-selftest - INFO - devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_code_cmake_clang (subunit.RemotedTestCase)
2026-08-05 14:12:52,801 - oe-selftest - INFO - ... FAIL
...
2026-08-05 14:12:52,801 - oe-selftest - INFO - 11: 3/27 320/763 (915.39s) (0 failed) (devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_code_cmake_clang)
2026-08-05 14:12:52,801 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", line 4377, in test_devtool_ide_sdk_code_cmake_clang
self._lldb_cross_debugging_multi(
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", line 4223, in _lldb_cross_debugging_multi
lldb_session_func(DevtoolIdeSdkTests.MAGIC_STRING_ORIG)
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", line 4379, in <lambda>
lambda magic_string: self._lldb_server_debugging_once(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", line 4323, in _lldb_server_debugging_once
r = runCmd(lldb_batch, output_log=self._cmd_logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/utils/commands.py", line 214, in runCmd
raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command '['/srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/x86_64-linux/lldb-native/22.1.8/recipe-sysroot-native/usr/bin/lldb', '--batch', '-o', 'platform select remote-linux', '-o', 'platform connect connect://192.168.7.14:1234', '-o', 'settings set target.process.thread.step-avoid-regexp ""', '-o', 'settings set target.debug-file-search-paths /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/lib/.debug /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/lib/.debug /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/lib/debug /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/lib /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/lib /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs/lib /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs/usr/lib', '-o', 'settings set target.exec-search-paths /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/x86-64-v3-poky-linux/cmake-example-clang/1.0/image/usr/lib /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/x86-64-v3-poky-linux/cmake-example-clang/1.0/image/lib /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/x86-64-v3-poky-linux/cmake-example-clang/1.0/image/usr/bin', '-o', 'target create --remote-file /usr/bin/cmake-example-clang /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/x86-64-v3-poky-linux/cmake-example-clang/1.0/image/usr/bin/cmake-example-clang', '-o', 'settings set target.source-map /usr/include /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/x86-64-v3-poky-linux/cmake-example-clang/1.0/recipe-sysroot/usr/include /usr/src/debug/cmake-example-clang/1.0 /tmp/devtoolqarl0rouil /usr/src/debug /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-893803/tmp/work/qemux86_64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/src/debug', '-o', 'breakpoint set --file cpp-example.cpp --line 41', '-o', 'breakpoint set --file cpp-example-lib.cpp --line 31', '-o', 'breakpoint set --file cpp-example-lib.hpp --line 21', '-o', 'breakpoint list', '-o', 'run', '-o', 'p cpp_example.get_string()', '-o', 'continue', '-o', 'p flag', '-o', 'continue', '-o', 'p n', '-o', 'continue', '-o', 'exit']' returned non-zero exit status 1:
(lldb) platform select remote-linux
Platform: remote-linux
Connected: no
(lldb) platform connect connect://192.168.7.14:1234
error: Failed to connect to 192.168.7.14:1234
And we have similar errors on
devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_code_meson_clang.
All affected builds:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4474
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4478
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4484
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4485
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/4302
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4553
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4490
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/4311
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/4314
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4493
Can you have a look at this? Any clue about what is going wrong here?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-08-07 15:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 11:59 [PATCH v2 00/14] devtool ide-sdk: clang and lldb support AdrianF
2026-08-04 11:59 ` [PATCH v2 01/14] oe-selftest: devtool: use stat for reading user/group names in ide-sdk tests AdrianF
2026-08-04 11:59 ` [PATCH v2 02/14] devtool: ide-sdk: fix duplicate -p flag in _target_ssh_args AdrianF
2026-08-04 11:59 ` [PATCH v2 03/14] devtool: ide-sdk: fix $@ overwritten by set in install_and_deploy script AdrianF
2026-08-04 11:59 ` [PATCH v2 04/14] devtool: ide-sdk: fix meson compile_commands.json AdrianF
2026-08-04 11:59 ` [PATCH v2 05/14] devtool: deploy-target: fix run strip under pseudo AdrianF
2026-08-04 11:59 ` [PATCH v2 06/14] oe-selftest: devtool ide-sdk: cover breakpoints in exe, header and library AdrianF
2026-08-04 11:59 ` [PATCH v2 07/14] oe-selftest: devtool ide-sdk: add real debug coverage for meson+code AdrianF
2026-08-04 11:59 ` [PATCH v2 08/14] devtool: ide-sdk debugger back-end abstraction AdrianF
2026-08-04 11:59 ` [PATCH v2 09/14] devtool: ide-sdk: wait for gdbserver port before returning AdrianF
2026-08-04 11:59 ` [PATCH v2 10/14] devtool: ide-sdk add LLDB support for clang toolchain AdrianF
2026-08-04 11:59 ` [PATCH v2 11/14] devtool: ide-sdk: add LLDB support for ide=none (clang toolchain) AdrianF
2026-08-04 11:59 ` [PATCH v2 12/14] meta-selftest: refactor cpp examples into .inc files and add clang variants AdrianF
2026-08-04 11:59 ` [PATCH v2 13/14] oe-selftest: devtool ide-sdk: add clang/LLDB test AdrianF
2026-08-07 15:11 ` Mathieu Dubois-Briand [this message]
2026-08-07 15:17 ` [OE-core] " Freihofer, Adrian
2026-08-07 15:44 ` Mathieu Dubois-Briand
2026-08-09 9:46 ` adrian.freihofer
2026-08-04 11:59 ` [PATCH v2 14/14] oe-selftest: devtool ide-sdk: add test for ide=none LLDB/clang support AdrianF
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DKIT3XLETTWD.4QS3K7M6HPXE@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=adrian.freihofer@siemens.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox