[Bug 1941709] [NEW] bpython: crash after a few seconds related to apparmor

Launchpad Bug Tracker 1941709 at bugs.launchpad.net
Thu Aug 26 08:04:36 UTC 2021


You have been subscribed to a public bug by Simon Chopin (schopin):

Something goes wrong in the import completion code, as it tries to open
an apparmor-related sysfs file. The crash appears a few seconds after
launching bpython. Seems fixed upstream.

LANG=C bpython
bpython version 0.21 on top of Python 3.9.6 /usr/bin/python3
>>> 
Traceback (most recent call last):
  File "/usr/bin/bpython", line 33, in <module>
    sys.exit(load_entry_point('bpython==0.21', 'console_scripts', 'bpython')())
  File "/usr/lib/python3/dist-packages/bpython/curtsies.py", line 201, in main
    exit_value = repl.mainloop(True, paste)
  File "/usr/lib/python3/dist-packages/bpython/curtsies.py", line 115, in mainloop
    while self.module_gatherer.find_coroutine():
  File "/usr/lib/python3/dist-packages/bpython/importcompletion.py", line 226, in find_coroutine
    next(self.find_iterator)
  File "/usr/lib/python3/dist-packages/bpython/importcompletion.py", line 217, in find_all_modules
    for module in self.find_modules(p):
  File "/usr/lib/python3/dist-packages/bpython/importcompletion.py", line 202, in find_modules
    for subname in self.find_modules(path_real):
  File "/usr/lib/python3/dist-packages/bpython/importcompletion.py", line 202, in find_modules
    for subname in self.find_modules(path_real):
  File "/usr/lib/python3/dist-packages/bpython/importcompletion.py", line 202, in find_modules
    for subname in self.find_modules(path_real):
  [Previous line repeated 12 more times]
  File "/usr/lib/python3/dist-packages/bpython/importcompletion.py", line 199, in find_modules
    stat = path_real.stat()
  File "/usr/lib/python3.9/pathlib.py", line 1222, in stat
    return self._accessor.stat(self)
FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/security/apparmor/apparmorfs:[15545]'

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

-- 
bpython: crash after a few seconds related to apparmor
https://bugs.launchpad.net/bugs/1941709
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list