1. Run apport-collect NUMBER as root
2. Get to the point it asks before sending
3. Choose to view the report
4. Watch the crash
# Expected behavior
Apport-collect should stay alive and not crash with a stacktrace.
# Actual behavior
# apport-collect 1991199
Please open this authorization page:
(REDACTED)
in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Press Enter after authorizing in your browser.
Package openssh not installed and no hook available, ignoring
*** 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/systemd/logind.conf". 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): n
*** It seems you have modified the contents of "/etc/systemd/sleep.conf". 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): n
.......
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (597.4 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): v
Traceback (most recent call last):
File "/usr/bin/apport-cli", line 442, in <module>
if not app.run_argv():
File "/usr/lib/python3/dist-packages/apport/ui.py", line 858, in run_argv
return self.run_update_report()
File "/usr/lib/python3/dist-packages/apport/ui.py", line 758, in run_update_report
response = self.ui_present_report_details(allowed_to_report)
File "/usr/bin/apport-cli", line 258, in ui_present_report_details
self.ui_update_view()
File "/usr/bin/apport-cli", line 187, in ui_update_view
subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 835, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "/usr/lib/python3.10/subprocess.py", line 1606, in _get_handles
p2cread = stdin.fileno()
AttributeError: 'bytes' object has no attribute 'fileno'
apport-collect crashed.
# lsb_release -rd
Description: Ubuntu Kinetic Kudu (development branch)
Release: 22.10
# apt-cache policy apport /gpl.savoirfair elinux. net/pub/ mirrors/ ubuntu kinetic/main amd64 Packages /gpl.savoirfair elinux. net/pub/ mirrors/ ubuntu kinetic/main i386 Packages dpkg/status
apport:
Installed: 2.23.0-0ubuntu2
Candidate: 2.23.0-0ubuntu2
Version table:
*** 2.23.0-0ubuntu2 500
500 https:/
500 https:/
100 /var/lib/
# Instructions
1. Run apport-collect NUMBER as root
2. Get to the point it asks before sending
3. Choose to view the report
4. Watch the crash
# Expected behavior
Apport-collect should stay alive and not crash with a stacktrace.
# Actual behavior
# apport-collect 1991199
Please open this authorization page:
(REDACTED)
in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Press Enter after authorizing in your browser.
Package openssh not installed and no hook available, ignoring
*** Collecting problem information
The collected information can be sent to the developers to improve the logind. conf". 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/systemd/
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): n
*** It seems you have modified the contents of "/etc/systemd/ sleep.conf" . 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): n
.......
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are: apport- cli", line 442, in <module> python3/ dist-packages/ apport/ ui.py", line 858, in run_argv update_ report( ) python3/ dist-packages/ apport/ ui.py", line 758, in run_update_report present_ report_ details( allowed_ to_report) apport- cli", line 258, in ui_present_ report_ details ui_update_ view() apport- cli", line 187, in ui_update_view python3. 10/subprocess. py", line 501, in run python3. 10/subprocess. py", line 835, in __init__ handles( stdin, stdout, stderr) python3. 10/subprocess. py", line 1606, in _get_handles
S: Send report (597.4 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): v
Traceback (most recent call last):
File "/usr/bin/
if not app.run_argv():
File "/usr/lib/
return self.run_
File "/usr/lib/
response = self.ui_
File "/usr/bin/
self.
File "/usr/bin/
subprocess.run(
File "/usr/lib/
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/
errread, errwrite) = self._get_
File "/usr/lib/
p2cread = stdin.fileno()
AttributeError: 'bytes' object has no attribute 'fileno'