Public bug reported:

test_crash_setuid_unpackaged is racy and rarely fails with:

======================================================================
ERROR: test_crash_setuid_unpackaged (tests.integration.test_signal_crashes.T)
report generation for unpackaged setuid program
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1661, in 
wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1782, in 
cmdline
    data = f.read()
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/tmp/autopkgtest.ukiC2X/autopkgtest_tmp/tests/integration/test_signal_crashes.py",
 line 746, in test_crash_setuid_unpackaged
    self.do_crash(
  File 
"/tmp/autopkgtest.ukiC2X/autopkgtest_tmp/tests/integration/test_signal_crashes.py",
 line 918, in do_crash
    command_process = self.wait_for_gdb_child_process(
  File 
"/tmp/autopkgtest.ukiC2X/autopkgtest_tmp/tests/integration/test_signal_crashes.py",
 line 1088, in wait_for_gdb_child_process
    cmdline = process.cmdline()
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 684, in cmdline
    return self._proc.cmdline()
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1665, in 
wrapper
    raise NoSuchProcess(self.pid, self._name)
psutil.NoSuchProcess: process no longer exists (pid=3767)

----------------------------------------------------------------------

Failing autopkgtest: https://autopkgtest.ubuntu.com/results/autopkgtest-
kinetic/kinetic/arm64/a/apport/20220825_140850_23979@/log.gz

** Affects: apport
     Importance: Undecided
         Status: New

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: apport (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: apport
    Milestone: None => 2.24.0

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1989371

Title:
  test_crash_setuid_unpackaged fails with psutil.NoSuchProcess: process
  no longer exists

Status in Apport:
  New
Status in apport package in Ubuntu:
  New

Bug description:
  test_crash_setuid_unpackaged is racy and rarely fails with:

  ======================================================================
  ERROR: test_crash_setuid_unpackaged (tests.integration.test_signal_crashes.T)
  report generation for unpackaged setuid program
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1661, in 
wrapper
      return fun(self, *args, **kwargs)
    File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1782, in 
cmdline
      data = f.read()
  ProcessLookupError: [Errno 3] No such process

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File 
"/tmp/autopkgtest.ukiC2X/autopkgtest_tmp/tests/integration/test_signal_crashes.py",
 line 746, in test_crash_setuid_unpackaged
      self.do_crash(
    File 
"/tmp/autopkgtest.ukiC2X/autopkgtest_tmp/tests/integration/test_signal_crashes.py",
 line 918, in do_crash
      command_process = self.wait_for_gdb_child_process(
    File 
"/tmp/autopkgtest.ukiC2X/autopkgtest_tmp/tests/integration/test_signal_crashes.py",
 line 1088, in wait_for_gdb_child_process
      cmdline = process.cmdline()
    File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 684, in 
cmdline
      return self._proc.cmdline()
    File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1665, in 
wrapper
      raise NoSuchProcess(self.pid, self._name)
  psutil.NoSuchProcess: process no longer exists (pid=3767)

  ----------------------------------------------------------------------

  Failing autopkgtest:
  https://autopkgtest.ubuntu.com/results/autopkgtest-
  kinetic/kinetic/arm64/a/apport/20220825_140850_23979@/log.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1989371/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to