test_parser_testsuite and test_apport_hooks in ubuntu_qrt_apparmor failed on AWS a1.medium with K-64k

Bug #2009925 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
New
Undecided
Unassigned
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

This is not a regression, I can see this failure since 5.19.0-28.29 in sru-20221114 right after we have improved the test granularity of ubuntu_qrt_apparmor (bug 1982439)

This issue does not exist with generic kernel, but just this specific instance with 64k flavour.
Perhaps it's because the instance was too small (2G ram with 8GB disk)

test_parser_testsuite failed with:

 Running 'python3 ./test-apparmor.py -v ApparmorTestsuites.test_parser_testsuite'
 Running test: './test-apparmor.py' distro: 'Ubuntu 22.10' kernel: '5.19.0-37.38-64k (Ubuntu 5.19.0-37.38-generic-64k 5.19.17)' arch: 'arm64' uid: 0/0 SUDO_USER: 'ubuntu')
 test_parser_testsuite (__main__.ApparmorTestsuites)
 Skipping private tests

 Run parser regression tests ... (Applying patch tests-fix-variable-type-for-getopt.patch) FAIL

 ======================================================================
 FAIL: test_parser_testsuite (__main__.ApparmorTestsuites)
 Run parser regression tests
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 2020, in test_parser_testsuite
     self.assertEqual(expected, rc, result + report)
 AssertionError: 0 != 2 : Got exit code 2, expected 0
 make -C libapparmor_re CFLAGS="-g -O2 -pipe -flto-partition=none -D_GNU_SOURCE -Wall -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough -std=gnu++0x"
 make[1]: Entering directory '/tmp/testlibycmbl_lm/source/kinetic/apparmor-3.0.7/parser/libapparmor_re'
 make[1]: Nothing to be done for 'all'.
   preparing apparmor_3.0.7-1ubuntu2.dsc... done
 make[1]: Leaving directory '/tmp/testlibycmbl_lm/source/kinetic/apparmor-3.0.7/parser/libapparmor_re'
 g++ -g -O2 -pipe -flto-partition=none -D_GNU_SOURCE -Wall -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough -std=gnu++0x -DHAVE_REALLOCARRAY=1 -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DUNIT_TEST -Wno-unused-result -o tst_regex parser_regex.c parser_common.o parser_include.o parser_interface.o parser_misc.o parser_merge.o parser_symtab.o parser_variable.o parser_policy.o parser_alias.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o default_features.o mqueue.o userns.o libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
 {standard input}: Assembler messages:
 {standard input}:96038: Warning: end of file not at end of a line; newline inserted
 {standard input}:96344: Warning: zero assumed for missing expression
 {standard input}:95284: Error: invalid operands (*UND* and .gcc_except_table sections) for `-'
 g++: fatal error: Killed signal terminated program cc1plus
 compilation terminated.
 make: *** [Makefile:347: tst_regex] Error 1

 ----------------------------------------------------------------------
 Ran 1 test in 151.065s

 FAILED (failures=1)

test_apport_hooks failed with:
 Running 'python3 ./test-apparmor.py -v ApparmorApport.test_apport_hooks'
 Running test: './test-apparmor.py' distro: 'Ubuntu 22.10' kernel: '5.19.0-37.38-64k (Ubuntu 5.19.0-37.38-generic-64k 5.19.17)' arch: 'arm64' uid: 0/0 SUDO_USER: 'ubuntu')
 test_apport_hooks (__main__.ApparmorApport)
 Test required apport hooks ... FAIL

 ======================================================================
 FAIL: test_apport_hooks (__main__.ApparmorApport)
 Test required apport hooks
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 1462, in test_apport_hooks
     self.assertEqual(expected, rc, result + report)
 AssertionError: 0 != 137 : Got exit code 137, expected 0

 *** Collecting problem information

 The collected information can be sent to the developers to improve the
 application. This might take a few minutes.
 Skipping private tests
 .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Killed

 ----------------------------------------------------------------------
 Ran 1 test in 480.240s

 FAILED (failures=1)

Po-Hsu Lin (cypressyew)
tags: added: arm64
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.