[Bug 926577] Re: command-not-found is hiding exception/backtrace when crashing
Zygmunt Krynicki
zygmunt.krynicki at canonical.com
Mon Feb 6 15:02:25 UTC 2012
On 02/04/2012 11:39 AM, Alistair Buxton wrote:
> The problem is that the crash_guard tries to do (basically) this:
>
> print "Python version: %d.%d.%d %s %d" % sys.version_info
>
> This fails. Then the outer try: block catches and hides the exception
> that this produces before exiting.
>
> I'm not sure if this is a python bug or change or what, but the
> following code works instead:
>
> print "Python version: %d.%d.%d %s %d" % (sys.version_info.major,
> sys.version_info.minor, sys.version_info.micro,
> sys.version_info.releaselevel, sys.version_info.serial)
>
> or indeed:
>
> print "Python version: %s" % sys.version
>
> ** Changed in: command-not-found (Ubuntu)
> Status: New => Confirmed
>
I have a somewhat unfinished branch that fixes this and tries to work
around most of the "I connected with putty and ubuntu does not work" issues.
Thanks
ZK
--
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/926577
Title:
command-not-found is hiding exception/backtrace when crashing
Status in “command-not-found” package in Ubuntu:
Confirmed
Bug description:
command-not-found is telling the user to report a bug but is hiding
the usefull informations.
i have a case where i can crash the crash dumper of "command-not-
found"
LANG=en (instead of LANG=en_EN.UTF-8)
this is crashing the crash dumper and command-not-found can not get
that informations to display it (should also affect other situations
where crash dumper is crashed before)
LANG=en
vii foo
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
for the wrong version-output there is already
https://bugs.launchpad.net/ubuntu/+source/command-not-
found/+bug/925678
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: command-not-found 0.2.46ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-12.21-generic 3.2.2
Uname: Linux 3.2.0-12-generic i686
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Sat Feb 4 11:04:15 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110426)
PackageArchitecture: all
ProcEnviron:
PATH=(custom, no user)
LANG=en
SHELL=/bin/bash
SourcePackage: command-not-found
UpgradeStatus: Upgraded to precise on 2011-12-04 (61 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/926577/+subscriptions
More information about the foundations-bugs
mailing list