bpython: crash after a few seconds related to apparmor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bpython (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
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.
File "/usr/lib/
exit_value = repl.mainloop(True, paste)
File "/usr/lib/
while self.module_
File "/usr/lib/
next(
File "/usr/lib/
for module in self.find_
File "/usr/lib/
for subname in self.find_
File "/usr/lib/
for subname in self.find_
File "/usr/lib/
for subname in self.find_
[Previous line repeated 12 more times]
File "/usr/lib/
stat = path_real.stat()
File "/usr/lib/
return self._accessor.
FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/
tags: | added: patch patch-accepted-upstream |
Changed in bpython (Ubuntu): | |
importance: | Undecided → Medium |
Changed in bpython (Ubuntu): | |
status: | New → Fix Committed |
Fixed by backporting upstream patch. Uploaded to https:/ /launchpad. net/~schopin/ +archive/ ubuntu/ test-ppa/ +sourcepub/ 12668725/ +listing- archive- extra as well.