strace shows the command is trying to read something:
$ sudo strace -p 5993
strace: Process 5993 attached
read(0, ^Cstrace: Process 5993 detached
<detached ...>
So if you run the command manually, you will see it's waiting user input
# /usr/bin/python3 /usr/bin/apport-cli apparmor --save /tmp/test
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..
*** It seems you have modified the contents of "/etc/apparmor.d/abstractions/ubuntu-browsers.d/chromium-browser". Would you like to add the contents of it to your bug report?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): ^C
Here is the content:
$ cat /etc/apparmor.d/abstractions/ubuntu-browsers.d/chromium-browser
# This file is updated currently not managed by the package but in the future
# will be overwritten on upgrades.
#
# For site-specific adjustments, please see:
# /etc/apparmor.d/local/usr.bin.chromium-browser
This issue is exclusively failing on J-5.15 s390x LPAR s2lp4.
The test will just hang: test_apport_ hooks apparmor. py' distro: 'Ubuntu 22.04' kernel: '5.15.0-100.110 (Ubuntu 5.15.0- 100.110- generic 5.15.143)' arch: 's390x' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
$ time sudo python3 ./test-apparmor.py -v ApparmorApport.
Running test: './test-
Skipping private tests
WARN: kernel rate limiting in effect printk_ ratelimit= 5
Disabling ratelimiting until the next reboot. To renable, run:
# sysctl -w kernel.
test_apport_hooks (__main_ _.ApparmorAppor t)
Test required apport hooks ...
ps command shows: test_apport_ hooks test_apport_ hooks 8648b/testlib. apport 8648b/testlib. apport
$ ps aux |grep apport
root 5972 0.0 0.0 16872 5640 pts/1 S+ 03:03 0:00 sudo python3 ./test-apparmor.py -v ApparmorApport.
root 5973 0.0 0.0 42360 28604 pts/1 S+ 03:03 0:00 python3 ./test-apparmor.py -v ApparmorApport.
root 5992 0.0 0.0 2548 856 pts/1 S+ 03:03 0:00 /bin/sh -e /usr/bin/apport-bug apparmor --save /tmp/testlibzx4
root 5993 0.0 0.2 173608 90816 pts/1 Sl+ 03:03 0:01 /usr/bin/python3 /usr/bin/apport-cli apparmor --save /tmp/testlibzx4
ubuntu 23837 0.0 0.0 9072 1904 pts/2 S+ 05:43 0:00 grep --color=auto apport
strace shows the command is trying to read something:
$ sudo strace -p 5993
strace: Process 5993 attached
read(0, ^Cstrace: Process 5993 detached
<detached ...>
So if you run the command manually, you will see it's waiting user input
# /usr/bin/python3 /usr/bin/apport-cli apparmor --save /tmp/test
*** Collecting problem information
The collected information can be sent to the developers to improve the d/abstractions/ ubuntu- browsers. d/chromium- browser" . Would you like to add the contents of it to your bug report?
application. This might take a few minutes.
..
*** It seems you have modified the contents of "/etc/apparmor.
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): ^C
Here is the content: d/abstractions/ ubuntu- browsers. d/chromium- browser d/local/ usr.bin. chromium- browser
$ cat /etc/apparmor.
# This file is updated currently not managed by the package but in the future
# will be overwritten on upgrades.
#
# For site-specific adjustments, please see:
# /etc/apparmor.
#include <abstractions/ ubuntu- browsers. d/plugins- common> ubuntu- browsers. d/mailto> ubuntu- browsers. d/multimedia> ubuntu- browsers. d/productivity> ubuntu- browsers. d/java> ubuntu- browsers. d/kde> ubuntu- browsers. d/text- editors> ubuntu- browsers. d/ubuntu- integration> ubuntu- browsers. d/user- files>
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
This file belongs to apparmor. I am not sure how to correct this for the moment.