DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['TOPDIR/../poky/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb:do_populate_sysroot', 'TOPDIR/../poky/meta/recipes-devtools/qemu/qemu-native_10.0.2.bb:do_populate_sysroot', 'TOPDIR/../poky/meta/recipes-devtools/qemu/qemu-system-native_10.0.2.bb:do_populate_sysroot', 'virtual:native:TOPDIR/../poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.7.0.bb:do_populate_sysroot', 'virtual:native:TOPDIR/../poky/meta/recipes-devtools/opkg/opkg_0.7.0.bb:do_populate_sysroot', 'virtual:native:TOPDIR/../poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:TOPDIR/../poky/meta/recipes-devtools/unfs3/unfs3_0.11.0.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'llvm-tblgen-native', 'cmake-native', 'libtool-native', 'm4-native', 'qemu-helper-native', 'qemu-native', 'qemu-system-native', 'texinfo-dummy-native', 'openssl-native', 'libslirp-native', 'expat-native', 'gettext-native', 'glib-2.0-native', 'libxml2-native', 'ncurses-native', 'util-linux-libuuid-native', 'zlib-native', 'binutils-native', 'chrpath-native', 'clang-native', 'elfutils-native', 'flex-native', 'gnu-config-native', 'json-c-native', 'libedit-native', 'make-native', 'opkg-utils-native', 'opkg-native', 'perl-native', 'pseudo-native', 'python3-build-native', 'python3-calver-native', 'python3-cython-native', 'python3-editables-native', 'python3-flit-core-native', 'python3-hatchling-native', 'python3-installer-native', 'python3-mako-native', 'python3-markupsafe-native', 'python3-packaging-native', 'python3-pathspec-native', 'python3-pip-native', 'python3-pluggy-native', 'python3-pygments-native', 'python3-pyparsing-native', 'python3-pyproject-hooks-native', 'python3-pyyaml-native', 'python3-setuptools-scm-native', 'python3-setuptools-native', 'python3-trove-classifiers-native', 'python3-typing-extensions-native', 'python3-wheel-native', 'python3-native', 'swig-native', 'unfs3-native', 'bzip2-native', 'diffutils-native', 'libarchive-native', 'libidn2-native', 'libsolv-native', 'libtirpc-native', 'unzip-native', 'xz-native', 'zstd-native', 'libdrm-native', 'libepoxy-native', 'libsdl2-native', 'mesa-native', 'spirv-headers-native', 'spirv-llvm-translator-native', 'spirv-tools-native', 'virglrenderer-native', 'wayland-protocols-native', 'wayland-native', 'xrandr-native', 'libpciaccess-native', 'libpthread-stubs-native', 'libx11-native', 'libxau-native', 'libxcb-native', 'libxdamage-native', 'libxdmcp-native', 'libxext-native', 'libxfixes-native', 'libxrandr-native', 'libxrender-native', 'libxshmfence-native', 'libxxf86vm-native', 'pixman-native', 'xtrans-native', 'xcb-proto-native', 'xorgproto-native', 'makedepend-native', 'util-macros-native', 'dtc-native', 'alsa-lib-native', 'libpng-native', 'acl-native', 'attr-native', 'curl-native', 'gdbm-native', 'gmp-native', 'gnutls-native', 'libtasn1-native', 'libcap-native', 'libffi-native', 'libgcrypt-native', 'libgpg-error-native', 'libmicrohttpd-native', 'libpcre2-native', 'libunistring-native', 'libyaml-native', 'nettle-native', 'sqlite3-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_testimage
/home/gitlab-runner/builds/n2eZbAtG1/0/ygreky/meta-security-staging/lib/oeqa/runtime/cases/smack.py:43: SyntaxWarning: invalid escape sequence '\S'
m = re.search('(access=")\S+(?=")', output)
/home/gitlab-runner/builds/n2eZbAtG1/0/ygreky/meta-security-staging/lib/oeqa/runtime/cases/smack.py:66: SyntaxWarning: invalid escape sequence '\S'
m= re.search('(execute=")\S+(?=")', output)
/home/gitlab-runner/builds/n2eZbAtG1/0/ygreky/meta-security-staging/lib/oeqa/runtime/cases/smack.py:89: SyntaxWarning: invalid escape sequence '\S'
m = re.search('(mmap=")\S+(?=")', output)
/home/gitlab-runner/builds/n2eZbAtG1/0/ygreky/meta-security-staging/lib/oeqa/runtime/cases/smack.py:111: SyntaxWarning: invalid escape sequence '\S'
m = re.search('(transmute=")\S+(?=")', output)
/home/gitlab-runner/builds/n2eZbAtG1/0/ygreky/meta-security-staging/poky/meta/lib/oeqa/runtime/cases/apt.py:44: SyntaxWarning: invalid escape sequence '\['
self.target.run("cd %s; cp sources.list sources.list.bak; sed -i 's|\[trusted=yes\] http://bogus_ip:bogus_port|%s|g' sources.list" % (apt_get_sourceslist_dir, apt_get_source_server))
DEBUG: test suites:
test_ping (ping.PingTest.test_ping)
test_ssh (ssh.SSHTest.test_ssh)
test_aide_help (aide.AideTest.test_aide_help)
test_aide_dbinit (aide.AideTest.test_aide_dbinit)
test_apparmor_help (apparmor.ApparmorTest.test_apparmor_help)
test_apparmor_aa_status (apparmor.ApparmorTest.test_apparmor_aa_status)
test_apparmor_aa_complain (apparmor.ApparmorTest.test_apparmor_aa_complain)
test_apparmor_aa_enforce (apparmor.ApparmorTest.test_apparmor_aa_enforce)
test_checksec_help (checksec.CheckSecTest.test_checksec_help)
test_checksec_xml (checksec.CheckSecTest.test_checksec_xml)
test_checksec_fortify (checksec.CheckSecTest.test_checksec_fortify)
test_freshclam_help (clamav.ClamavTest.test_freshclam_help)
test_ping_clamav_net (clamav.ClamavTest.test_ping_clamav_net)
test_freshclam_download (clamav.ClamavTest.test_freshclam_download)
test_firejail_basic (firejail.FirejailTest.test_firejail_basic)
test_samhain_help (samhain.SamhainTest.test_samhain_help)
test_samhain_init_db (samhain.SamhainTest.test_samhain_init_db)
test_samhain_db_check (samhain.SamhainTest.test_samhain_db_check)
test_smack_basic (smack.SmackBasicTest.test_smack_basic)
test_add_access_label (smack.SmackBasicTest.test_add_access_label)
test_add_exec_label (smack.SmackBasicTest.test_add_exec_label)
test_add_mmap_label (smack.SmackBasicTest.test_add_mmap_label)
test_add_transmutable (smack.SmackBasicTest.test_add_transmutable)
test_load_smack_rule (smack.SmackBasicTest.test_load_smack_rule)
test_privileged_change_self_label (smack.SmackBasicTest.test_privileged_change_self_label)
test_smack_ambient (smack.SmackBasicTest.test_smack_ambient)
test_smack_cipso (smack.SmackBasicTest.test_smack_cipso)
test_smack_direct (smack.SmackBasicTest.test_smack_direct)
test_smack_enforce_file_access (smack.SmackBasicTest.test_smack_enforce_file_access)
test_smack_labels (smack.SmackBasicTest.test_smack_labels)
test_smack_netlabel (smack.SmackBasicTest.test_smack_netlabel)
test_smack_onlycap (smack.SmackBasicTest.test_smack_onlycap)
test_smack_tcp_sockets (smack.SmackBasicTest.test_smack_tcp_sockets)
test_smack_transmute_dir (smack.SmackBasicTest.test_smack_transmute_dir)
test_smack_udp_sockets (smack.SmackBasicTest.test_smack_udp_sockets)
test_smackcipso (smack.SmackBasicTest.test_smackcipso)
test_smackload (smack.SmackBasicTest.test_smackload)
test_unprivileged_change_file_label (smack.SmackBasicTest.test_unprivileged_change_file_label)
test_unprivileged_change_self_label (smack.SmackBasicTest.test_unprivileged_change_self_label)
test_sssd_help (sssd.SSSDTest.test_sssd_help)
test_sssd_sssctl_conf_perms_chk (sssd.SSSDTest.test_sssd_sssctl_conf_perms_chk)
test_sssd_sssctl_deamon (sssd.SSSDTest.test_sssd_sssctl_deamon)
test_suricata_help (suricata.SuricataTest.test_suricata_help)
test_ping_openinfosecfoundation_org (suricata.SuricataTest.test_ping_openinfosecfoundation_org)
test_suricata_update (suricata.SuricataTest.test_suricata_update)
test_suricata_update_sources_list (suricata.SuricataTest.test_suricata_update_sources_list)
test_suricata_update_sources (suricata.SuricataTest.test_suricata_update_sources)
test_suricata_update_enable_source (suricata.SuricataTest.test_suricata_update_enable_source)
test_ima_enabled (ima.IMACheck.test_ima_enabled)
test_ima_before_systemd (ima.IMACheck.test_ima_before_systemd)
test_ima_hash (ima.IMACheck.test_ima_hash)
test_ima_overwrite (ima.IMACheck.test_ima_overwrite)
test_ima_signature (ima.IMACheck.test_ima_signature)
test_swtpm2_ek_cert (swtpm.SwTpmTest.test_swtpm2_ek_cert)
test_tpm2_startup (tpm2.Tpm2Test.test_tpm2_startup)
test_tpm2_pcrread (tpm2.Tpm2Test.test_tpm2_pcrread)
test_tpm2_pkcs11 (tpm2.Tpm2Test.test_tpm2_pkcs11)
test_tpm2_swtpm_reset (tpm2.Tpm2Test.test_tpm2_swtpm_reset)
DEBUG: Using kvm for runqemu
QMP Available for connection at TOPDIR/tmp/.vudo7img
DEBUG: Created listening socket for qemu serial console on: 127.0.0.1:58401
DEBUG: Created listening socket for qemu serial console on: 127.0.0.1:32799
DEBUG: launchcmd=runqemu snapshot kvm nographic qemux86 TOPDIR/tmp/deploy/images/qemux86/security-build-image-qemux86.rootfs.ext4 tcpserial=58401:32799 bootparams=" printk.time=1" qemuparams="-pidfile TOPDIR/pidfile_2078684 -S -qmp unix:./.bk6ae921,server,wait -qmp unix:./.vudo7img,server,nowait"
DEBUG: runqemu started, pid is 2078686
DEBUG: waiting at most 300 seconds for qemu pid (07/16/25 19:23:50)
ERROR: runqemu exited with code 1
ERROR: Output from runqemu:
runqemu - ERROR - You have no read or write permission on /dev/kvm.
runqemu - ERROR - Please change the ownership of this file as described at:
runqemu - ERROR - https://wiki.yoctoproject.org/wiki/How_to_enable_KVM_for_Poky_qemu
runqemu - INFO - Cleaning up
runqemu - INFO - Host uptime: 533680.74
tput: No value for $TERM and no -T specified
DEBUG: Sending SIGTERM to runqemu
WARNING: runqemu during is_alive() test
DEBUG: Sending SIGTERM to runqemu
DEBUG: Sending SIGTERM to runqemu
ERROR: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_testimage(d)
0003:
File: 'TOPDIR/../poky/meta/classes-recipe/testimage.bbclass', lineno: 124, function: do_testimage
0120: dump-guest-memory {"paging":false,"protocol":"file:%s.img"}
0121:}
0122:
0123:python do_testimage() {
*** 0124: testimage_main(d)
0125:}
0126:
0127:addtask testimage
0128:do_testimage[nostamp] = "1"
File: 'TOPDIR/../poky/meta/classes-recipe/testimage.bbclass', lineno: 366, function: testimage_main
0362: orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0363: try:
0364: # We need to check if runqemu ends unexpectedly
0365: # or if the worker send us a SIGTERM
*** 0366: tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))
0367: import threading
0368: try:
0369: threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()
0370: except ValueError:
File: 'TOPDIR/../poky/meta/lib/oeqa/core/target/qemu.py', lineno: 91, function: start
0087: except (subprocess.CalledProcessError, subprocess.TimeoutExpired, FileNotFoundError) as err:
0088: msg += "Error running command: %s\n%s\n" % (blcmd, err)
0089: msg += "\n\n===== end: snippet =====\n"
0090:
*** 0091: raise RuntimeError("FAILED to start qemu - check the task log and the boot log %s" % (msg))
0092:
0093: def stop(self):
0094: self.runner.stop()
Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log
===== start: snippet =====
===== end: snippet =====
===== start: snippet =====
Error running command: ['tail', '-20', 'TOPDIR/tmp/work/qemux86-poky-linux/security-test-image/1.0/testimage/qemu_boot_log.20250716192343']
Command '['tail', '-20', 'TOPDIR/tmp/work/qemux86-poky-linux/security-test-image/1.0/testimage/qemu_boot_log.20250716192343']' returned non-zero exit status 1.
===== end: snippet =====
DEBUG: Python function do_testimage finished