Comment 0 for bug 1853383

Revision history for this message
dann frazier (dannf) wrote :

The security uploads for apport (2.20.11-0ubuntu8.2 for eoan, 2.20.10-0ubuntu27.2 for disco, and 2.20.9-0ubuntu7.8 for bionic - and maybe those for older releases as well) have caused the test_add_proc_info test to start failing:

======================================================================
ERROR: test_add_proc_info (__main__.T)
add_proc_info().
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_report.py", line 100, in test_add_proc_info
    pr.add_proc_info(extraenv=['PWD'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 550, in add_proc_info
    self.add_proc_environ(pid, extraenv)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 619, in add_proc_environ
    env = _read_file('environ', dir_fd=proc_pid_fd).replace('\n', '\\n')
  File "/usr/lib/python3/dist-packages/apport/report.py", line 73, in _read_file
    with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
  File "/usr/lib/python3/dist-packages/apport/report.py", line 73, in <lambda>
    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