apport-cli apport-collect crash AttributeError: 'bytes' object has no attribute 'fileno'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
apport-collect crashed.
# lsb_release -rd
Description: Ubuntu Kinetic Kudu (development branch)
Release: 22.10
# apt-cache policy apport
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
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/
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/
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'
---
ProblemType: Bug
ApportLog: ERROR: apport (pid 42855) Thu Sep 29 00:30:05 2022: executable was modified after program start, ignoring
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CrashReports: 640:0:148:
DistroRelease: Ubuntu 22.10
Package: apport 2.23.0-0ubuntu2
PackageArchitec
Tags: kinetic third-party-
Uname: Linux 6.0.0-060000rc7
UpgradeStatus: Upgraded to kinetic on 2022-09-29 (0 days ago)
UserGroups: N/A
_MarkForUpload: True
Changed in apport: | |
status: | Triaged → Fix Committed |
Changed in apport: | |
status: | Fix Committed → Fix Released |
tags: | removed: foundations-todo |
# apport-collect 1991200
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
...................
*** 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 (5.8 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'
Guess I'll have to temporarily try setting this bug to private.