Starting lpcraft, version 0.0.49 Logging execution to '/home/buildd/.local/state/lpcraft/log/lpcraft-20230317-111016.759075.log' Launching environment for jammy/amd64 Checking for instance 'lpcraft-tree-519414-jammy-amd64' in project 'lpcraft' in remote 'local' Instance exists and is not running. Starting instance. Running ['apt', 'update'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease :: Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease :: Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease :: Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease :: Reading package lists... :: Building dependency tree... :: Reading state information... :: 75 packages can be upgraded. Run 'apt list --upgradable' to see them. Installing system packages Running ['apt', 'install', '-y', 'sudo'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Reading package lists... :: Building dependency tree... :: Reading state information... :: sudo is already the newest version (1.9.9-1ubuntu2.3). :: 0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded. Running command for the job... Running ['bash', '--noprofile', '--norc', '-ec', './lpcraft-runner gcc-security\n'] :: Copying: test-gcc-security.py :: Copying: testlib.py :: Copying: install-packages :: Copying: packages-helper :: Copying: gcc-security :: Copying: built-binaries :: :: Test files: /tmp/qrt-test-gcc-security.tar.gz :: :: To run, copy the tarball somewhere, then do: :: $ tar -zxf qrt-test-gcc-security.tar.gz :: $ cd ./qrt-test-gcc-security :: $ sudo ./install-packages test-gcc-security.py :: $ ./test-gcc-security.py -v :: Reading package lists... :: Building dependency tree... :: Reading state information... :: Package python-apt is not available, but is referred to by another package. :: This may mean that the package is missing, has been obsoleted, or :: is only available from another source :: However the following packages replace it: :: python-apt-doc python3-apt-dbg python3-apt python-apt-common :: :: E: Package 'python-apt' has no installation candidate :: Requiring 'lsb-release' ... :: Requiring 'build-essential' ... :: Running test: './test-gcc-security.py' distro: 'Ubuntu 22.04' kernel: '5.4.0-139.156 (Ubuntu 5.4.0-139.156-generic 5.4.224)' arch: 'amd64' uid: 2002/2002 SUDO_USER: '') :: test_00_clean (__main__.GccSecurityTest00) :: Fresh build tree ... (Makefile uses gcc 11.2.0) ok :: test_10_stack_protector (__main__.GccSecurityTest00) :: Stack protector ... (strcpy:74) (memcpy:74) (sprintf:74) (read:74) (getcwd:74) (nada:50) (strcpy:58) (memcpy:58) (sprintf:58) (read:58) (getcwd:58) (nada:50) ok :: test_11_stack_protector_strong (__main__.GccSecurityTest00) :: Stack protector strong ... (memcpy:90) (nada:50) (memcpy:50) (nada:50) ok :: test_20_relro (__main__.GccSecurityTest00) :: GNU_RELRO ELF section generated ... ok :: test_21_format_security (__main__.GccSecurityTest00) :: Format security checked at compile and runtime ... ok :: test_22_warn_unchecked (__main__.GccSecurityTest00) :: Unchecked return values generate warnings ... (-fwrite) ok :: test_23_buffer_overflow_protection (__main__.GccSecurityTest00) :: Buffer overflow protection ... (strcpy:74) (memcpy:74) (sprintf:74) (read:74) (getcwd:74) (nada:50) (strcpy:50) (memcpy:50) (sprintf:50) (read:50) (getcwd:50) (nada:50) ok :: test_24_missing_mode_creat (__main__.GccSecurityTest00) :: Missing open mode when using O_CREAT warning ... (has warnings) ok :: test_24_missing_mode_tmpfile (__main__.GccSecurityTest00) :: Missing open mode when using O_TMPFILE warning ... (has warnings) ok :: test_25_static_buffer_read_check (__main__.GccSecurityTest00) :: Static read vs buffer size warning ... (has warnings) ok :: test_26_static_buffer_check (__main__.GccSecurityTest00) :: Static copy vs buffer size warning ... (has warnings) ok :: test_30_stack_protector_all (__main__.GccSecurityTest00) :: gcc -fstack-protector-all works when requested (LP: #691722) ... ok :: test_40_format_warnings (__main__.GccSecurityTest00) :: gcc -Wformat works when requested ... ok :: test_50_pie (__main__.GccSecurityTest00) :: ELF pie binaries ... ok :: test_60_bind_now (__main__.GccSecurityTest00) :: Linker set to BIND NOW binaries ... ok :: test_00_clean (__main__.GccSecurityTest01) :: Fresh build tree ... (by default) (Makefile uses gcc 11.2.0) ok :: test_10_stack_protector (__main__.GccSecurityTest01) :: Stack protector ... (by default) (strcpy:58) (memcpy:58) (sprintf:58) (read:58) (getcwd:58) (nada:50) ok :: test_11_stack_protector_strong (__main__.GccSecurityTest01) :: Stack protector strong ... (by default) (memcpy:50) (nada:50) ok :: test_20_relro (__main__.GccSecurityTest01) :: GNU_RELRO ELF section generated ... (by default) ok :: test_21_format_security (__main__.GccSecurityTest01) :: Format security checked at compile and runtime ... (by default) ok :: test_22_warn_unchecked (__main__.GccSecurityTest01) :: Unchecked return values generate warnings ... (by default) (-fwrite) ok :: test_23_buffer_overflow_protection (__main__.GccSecurityTest01) :: Buffer overflow protection ... (by default) (strcpy:50) (memcpy:50) (sprintf:50) (read:50) (getcwd:50) (nada:50) ok :: test_24_missing_mode_creat (__main__.GccSecurityTest01) :: Missing open mode when using O_CREAT warning ... (by default) (has warnings) ok :: test_24_missing_mode_tmpfile (__main__.GccSecurityTest01) :: Missing open mode when using O_TMPFILE warning ... (by default) (has warnings) ok :: test_25_static_buffer_read_check (__main__.GccSecurityTest01) :: Static read vs buffer size warning ... (by default) (has warnings) ok :: test_26_static_buffer_check (__main__.GccSecurityTest01) :: Static copy vs buffer size warning ... (by default) (has warnings) ok :: test_30_stack_protector_all (__main__.GccSecurityTest01) :: gcc -fstack-protector-all works when requested (LP: #691722) ... (by default) ok :: test_40_format_warnings (__main__.GccSecurityTest01) :: gcc -Wformat works when requested ... (by default) ok :: test_50_pie (__main__.GccSecurityTest01) :: ELF pie binaries ... (by default) ok :: test_60_bind_now (__main__.GccSecurityTest01) :: Linker set to BIND NOW binaries ... (by default) ok :: :: ---------------------------------------------------------------------- :: Ran 30 tests in 7.415s :: :: OK