[Bug 146864] Re: command-not-found crash on CTRL+C exit
Ethan
146864 at bugs.launchpad.net
Mon Jun 22 02:23:46 UTC 2020
Michael, I don't know if this is the same issue as what opened the
thread, but I got similar output to you after a Ctrl-C.
"foo"
^C
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.6.9 final 0
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Exception information:
[Errno 3] No such process
Traceback (most recent call last):
File "/usr/lib/python3.6/subprocess.py", line 425, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/usr/lib/python3.6/subprocess.py", line 855, in communicate
self.wait()
File "/usr/lib/python3.6/subprocess.py", line 1477, in wait
(pid, sts) = self._try_wait(0)
File "/usr/lib/python3.6/subprocess.py", line 1424, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 23, in crash_guard
callback()
File "/usr/lib/command-not-found", line 90, in main
if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 353, in advise
snaps, mispell_snaps = self.get_snaps(command)
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 113, in get_snaps
universal_newlines=True)
File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 432, in run
process.kill()
File "/usr/lib/python3.6/subprocess.py", line 1610, in kill
self.send_signal(signal.SIGKILL)
File "/usr/lib/python3.6/subprocess.py", line 1600, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/146864
Title:
command-not-found crash on CTRL+C exit
Status in command-not-found:
Fix Released
Status in command-not-found package in Ubuntu:
Fix Released
Bug description:
Binary package hint: command-not-found
(on) From Ctrl+C interrupt. Kaboom, follow instructions, etc. Here's
the error:
OS: Ubuntu Gusty Gibbion 7.10 BETA
Crash: from using Ctrl+C
No module named CommandNotFound
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 10, in <module>
from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.1 final 0
Nothing to do with the Ctrl+C method of exiting a command, but hey, it
happened.
-Mike.
To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/146864/+subscriptions
More information about the foundations-bugs
mailing list