python3-apport regression: missing argument in Report.add_proc_environ call
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
This is a regression in the 2.20.9-0ubuntu7.8 security update of apport
# lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Reproduce the bug:
$ python3
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import apport
>>> import os
>>> report = apport.Report()
>>> report.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
self.
File "/usr/lib/
env = _read_file(
File "/usr/lib/
with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
File "/usr/lib/
with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
TypeError: argument should be integer or None, not list
Patch below:
# diff -u /usr/lib/
--- /usr/lib/
+++ /usr/lib/
@@ -540,7 +540,7 @@
except OSError:
pass
- self.add_
+ self.add_
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3-apport 2.20.9-0ubuntu7.8
ProcVersionSign
Uname: Linux 4.15.0-58-generic x86_64
ApportLog:
ApportVersion: 2.20.9-0ubuntu7.8
Architecture: amd64
CrashReports: 640:1000:
Date: Fri Nov 1 14:18:16 2019
PackageArchitec
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: regression-update |
Changed in apport (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: id-5dbc822dcc0dac05a81cabce |
tags: | added: rls-bb-incoming |
This bug was fixed in the package apport - 2.20.11-0ubuntu8.2
--------------- 0ubuntu8. 2) eoan-security; urgency=medium
apport (2.20.11-
* SECURITY REGRESSION: missing argument in Report. add_proc_ environ
call (LP: #1850929)
- apport/report.py: call add_proc_environ using named arguments
and move proc_pid_dir keyword to last to keep api compatibility.
-- Tiago Stürmer Daitx <email address hidden> Tue, 05 Nov 2019 02:49:27 +0000