Apport apparently hung while gathering information for another crash. CPU time was logged at around 20hrs+ when I found out.

Bug #2101906 reported by TGP1994
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
New
Undecided
Unassigned

Bug Description

This machine has been generating a lot of crashes (sorry for all of the uploads...) including apport its self, but hopefully the information collected here is able to narrow down what's going on.

$ lsb_release -rd
Description: Ubuntu 20.04.6 LTS
Release: 20.04

$ apt-cache policy apport
apport:
  Installed: 2.20.11-0ubuntu27.27
  Candidate: 2.20.11-0ubuntu27.27
  Version table:
 *** 2.20.11-0ubuntu27.27 500
        500 https://mirror.math.princeton.edu/pub/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.20.11-0ubuntu27.26 500
        500 https://mirror.math.princeton.edu/pub/ubuntu focal-security/main amd64 Packages
     2.20.11-0ubuntu27 500
        500 https://mirror.math.princeton.edu/pub/ubuntu focal/main amd64 Packages

Expected to happen: apport does its work in a timely manner then exits.

What appeared to happen: apport had hung/entered a loop which at the time I found it, with above twenty hours of CPU time. Unfortunately I can't offer any other information about the circumstances or why apport had entered this state besides what was captured by apport on its self.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: apport 2.20.11-0ubuntu27.27
ProcVersionSignature: Ubuntu 5.15.0-1081.90~20.04.1-azure 5.15.173
Uname: Linux 5.15.0-1081-azure x86_64
ApportLog: ERROR: apport (pid 108263) Mon Mar 10 01:34:11 2025: host pid 108234 crashed in a container without apport support
ApportVersion: 2.20.11-0ubuntu27.27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Mar 10 18:08:52 2025
ExecutablePath: /usr/share/apport/apport
InterpreterPath: /usr/bin/python3.8
PackageArchitecture: all
ProcEnviron:

Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
TGP1994 (tgp1994) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and contributing to Ubuntu. We had similar reports in the past, but never got down to the reason.

Can you attach /var/crash/_usr_share_apport_apport.0.crash and /var/crash/_usr_bin_apport-cli.0.crash to this bug report (after checking that there are no sensitive information inside)?

Revision history for this message
TGP1994 (tgp1994) wrote :

Hi Benjamin,

I can imagine it's frustrating trying to get to the bottom of a problem like this - I'll do what I can to contribute! With that being said though, I was only able to find the _usr_share_apport* crash file you mentioned - the most recent _usr_bin_apport* file is from March 5. I've attached what I think is the relevant file you were looking for. Let me know if there's anything else I can do.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Thanks. That has a stack trace to investigate:

```
Traceback:
 Traceback (most recent call last):
   File "/usr/share/apport/apport", line 20, in <module>
     import apport, apport.fileutils
   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
     from apport.report import Report
   File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
     import apport.fileutils
   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
     import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
   File "/usr/lib/python3/dist-packages/requests_unixsocket/__init__.py", line 1, in <module>
     import requests
   File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
     from urllib3.contrib import pyopenssl
   File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 48, in <module>
     from cryptography.hazmat.backends.openssl import backend as openssl_backend
   File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/__init__.py", line 7, in <module>
     from cryptography.hazmat.backends.openssl.backend import backend
   File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 44, in <module>
     from cryptography.hazmat.backends.openssl.ed448 import (
   File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/ed448.py", line 81, in <module>
     class _Ed448PrivateKey(object):
   File "/usr/lib/python3/dist-packages/cryptography/utils.py", line 47, in register_decorator
     verify_interface(iface, klass)
   File "/usr/lib/python3/dist-packages/cryptography/utils.py", line 108, in verify_interface
     if sig != actual:
 UnboundLocalError: local variable 'sig' referenced before assignment
```

Revision history for this message
TGP1994 (tgp1994) wrote :

Oh, good! I hope that's a helpful place to start at. I'm sitting here running some manual crash uploads with apport-cli, and it's segfaulted on just about nearly every upload so far. I should mention if I haven't already, but... I don't really trust the stability or integrity of this (virtual) machine that Ubuntu is operating within. I've had a heck of a time trying to get to the bottom of why things seem to be crashing so much in Ubuntu. I'm about ready to blow it all away and migrate my containers/applications to a fresh OS at some point, so I hope this may save you some grief trying to troubleshoot this specific issue. Otherwise I'm still game to provide any help if requested.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.