Discussion:
[Bug 507492] [NEW] hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
(too old to reply)
Launchpad Bug Tracker
2010-03-09 21:14:59 UTC
Permalink
You have been subscribed to a public bug:

Binary package hint: apport

I tried to report a bug against linux-image-generic, while running a kernel from mainline-ppa,
and got this traceback:

arnd at rhea:~$ ubuntu-bug linux-image-generic
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/apport/report.py", line 635, in add_hooks_info
symb['add_info'](self, ui)
File "/usr/share/apport/package-hooks//source_linux-meta.py", line 100, in add_info
report['UnreportableReason'] = _('The running kernel is not an Ubuntu kernel')
NameError: global name '_' is not defined

Package version is 1.11-0ubuntu5 on lucid.

ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: arnd 4818 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xd0620000 irq 27'
Mixer name : 'Analog Devices AD1882'
Components : 'HDA:11d41882,80861003,00100300'
Controls : 42
Simple ctrls : 25
Date: Thu Jan 14 15:05:24 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
HibernationDevice: RESUME=/dev/sdb3
IwConfig:
lo no wireless extensions.

eth0 no wireless extensions.

virbr0 no wireless extensions.
Package: linux-image-generic 2.6.32.10.10
ProcCmdLine: root=UUID=861603ac-5155-4707-ab0b-f3e756bdcd67 ro quiet splash quiet
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
Regression: Yes
Reproducible: Yes
RfKill:

SourcePackage: linux-meta
Tags: lucid regression-potential
TestedUpstream: Yes
Uname: Linux 2.6.33-020633rc4-generic x86_64
WpaSupplicantLog:

dmi.bios.date: 11/27/2008
dmi.bios.vendor: Intel Corp.
dmi.bios.version: CBQ4510H.86A.0067.2008.1127.1732
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: DQ45CB
dmi.board.vendor: Intel Corporation
dmi.board.version: AAE30148-205
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrCBQ4510H.86A.0067.2008.1127.1732:bd11/27/2008:svn:pn:pvr:rvnIntelCorporation:rnDQ45CB:rvrAAE30148-205:cvn:ct3:cvr:

** Affects: apport (Ubuntu)
Importance: Medium
Status: Confirmed

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


** Tags: amd64 apport-bug crash lucid regression-potential
--
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
https://bugs.edge.launchpad.net/bugs/507492
You received this bug notification because you are a member of Kernel Bugs, which is subscribed to linux in ubuntu.
Bryce Harrington
2010-03-09 21:14:53 UTC
Permalink
Weird, why'd this get filed against xorg? Seems to be an issue in the
linux apport hook. Refiling their way.

** Package changed: xorg (Ubuntu) => linux (Ubuntu)
--
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
https://bugs.launchpad.net/bugs/507492
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.
Jeremy Foshee
2010-03-17 16:29:05 UTC
Permalink
Arnd,
There have been some updates to apport recently. Have you continued to encounter this issue?

Thanks!

~JFo

** Changed in: linux (Ubuntu)
Status: New => Incomplete
--
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
https://bugs.launchpad.net/bugs/507492
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.
Arnd
2010-03-17 17:06:53 UTC
Permalink
Why did you think it was fixed?
Actually I didn't bother to test, but I believe the bug is still there:

arnd at rhea:~$ pylint /usr/share/apport/package-hooks//source_linux-meta.py | egrep "^E"
No config file found, using default configuration
E:112:add_info: Undefined variable '_

If you have any reason to believe that it was fixed I can try again, if you wish.
I'll need to reboot the system which is a bit of a hassle right now.

Best regards,
Arnd
--
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
https://bugs.launchpad.net/bugs/507492
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.
Daniel Hahler
2010-08-09 18:55:46 UTC
Permalink
Just happened with /usr/share/apport/package-hooks/source_xorg.py in
Maverick, too (bug 507492).

This is probably rather a problem with Apport, not the hooks itself -
otherwise please add Xorg (and others) to the the list of affected
packages, too.

I will triage this according to my guess: invalid for Linux.

** Changed in: apport (Ubuntu)
Importance: Medium => High

** Changed in: apport (Ubuntu)
Status: Confirmed => Triaged

** Changed in: linux (Ubuntu)
Status: Incomplete => Invalid
--
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
https://bugs.launchpad.net/bugs/507492
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.
Jean-Baptiste Lallement
2010-08-30 10:20:41 UTC
Permalink
This bug in source_linux-peta.py as been fixed in
apport (1.13.2-0ubuntu1) lucid; urgency=low

[ Martin Pitt ]
[...]
* data/package-hooks/source_linux.py: Drop _() i18n, it's not available in
the hook and causes crashes. (LP: #538368)

I'm closing this report and unduplicating #615494 which needs a fix too
but is a different hook.

** Changed in: apport (Ubuntu)
Status: Triaged => Fix Released
--
hook /usr/share/apport/package-hooks//source_linux-meta.py crashed:
https://bugs.launchpad.net/bugs/507492
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.
Loading...