command-not-found announces crash on typing short word

Bug #996726 reported by Stéphane Gourichon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

### Context : Ubuntu precise 12.04 AMD64.

### Action : type something not an existing command

### Reproducible : rare.
Happened twice in about a month while using the shell extensively every day.

### Expected:
$ tidz
No command 'tidz' found, did you mean:
 Command 'tidy' from package 'tidy' (main)
 Command 'tide' from package 'xtide' (universe)
tidz: command not found

### Observed:
$ tidy
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.2.44

### Additional information :

* Can't remember what (mistyped) command yielded the first crash. It was very short, like "odp".
* Shell has been used for hours, ran many commands, defined associative arrays (small content).

$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

$ apt-cache policy command-not-found
command-not-found:
  Installed: 0.2.46ubuntu6
  Candidate: 0.2.46ubuntu6
  Version table:
 *** 0.2.46ubuntu6 0
        500 http://fr.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: command-not-found 0.2.46ubuntu6
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Tue May 8 21:45:21 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120419)
PackageArchitecture: all
SourcePackage: command-not-found
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in command-not-found (Ubuntu):
status: New → Confirmed
Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :

Just happened again 2012y05m09d-10h36m42s

$ acpi
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.2.44

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.