source_linux.py logic fails to detect 3.8.0-0-generic as an Ubuntu kernel

Bug #1100198 reported by James Hunt
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Brian Murray

Bug Description

I am trying to report a bug against the Ubuntu kernel. On my system...

$ uname -a
Linux azul 3.8.0-0-generic #3-Ubuntu SMP Fri Jan 11 17:26:08 UTC 2013 i686 i686 i686 GNU/Linux
$ cat /proc/version
Linux version 3.8.0-0-generic (buildd@lamiak) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-17ubuntu2) ) #3-Ubuntu SMP Fri Jan 11 17:26:08 UTC 2013
$ cat /proc/version_signature
Ubuntu 3.8.0-0.3-generic 3.8.0-rc3

... but if I run 'ubuntu-bug linux', apport tells me:

__________

It appears you are currently running a mainline kernel. It would be
better to report this bug upstream at http://bugzilla.kernel.org/ so
that the upstream kernel developers are aware of the issue. If you'd
still like to file a bug against the Ubuntu kernel, please boot with an
official Ubuntu kernel and re-file.

The problem cannot be reported:

The running kernel is not an Ubuntu kernel
__________

It looks like the problem lies with /usr/share/apport/package-hooks/source_linux.py which is extracting the number between the two dashes in the version number ('-0-') and if it is zero claiming the kernel is not an Ubuntu one.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: apport 2.8-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-0.3-generic 3.8.0-rc3
Uname: Linux 3.8.0-0-generic i686
NonfreeKernelModules: nvidia
ApportLog:

ApportVersion: 2.8-0ubuntu1
Architecture: i386
Date: Wed Jan 16 09:21:40 2013
InstallationDate: Installed on 2010-10-21 (818 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_CA.UTF8
 SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: Upgraded to raring on 2012-12-20 (26 days ago)

Revision history for this message
James Hunt (jamesodhunt) wrote :
Revision history for this message
James Hunt (jamesodhunt) wrote :

This also affects apport-collect. Running:

$ apport-collect -p linux-image-3.8.0-0-generic 1100202

... reports the erroneous mainline kernel message and then hangs hard.

Changed in apport (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.8-0ubuntu2

---------------
apport (2.8-0ubuntu2) raring; urgency=low

  [ Martin Pitt ]
  * debian/control: Add alternative libc-dbg dependencies.

  [ Brian Murray ]
  * data/package-hooks/source_linux.py: modify check for whether or not the
    kernel is an upstream one (LP: #1100198)
 -- Brian Murray <email address hidden> Thu, 17 Jan 2013 09:04:19 -0800

Changed in apport (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Jorge (jorge-vila) wrote :

Still happening with apport 2.9.2

Revision history for this message
Brian Murray (brian-murray) wrote :

I tried recreating this using apport version, 2.9.2-0ubuntu8.3, on Ubuntu 13.04 and was unsuccessful. What version of the kernel do you have installed Jorge? One way to check would be with 'dpkg -l | grep ii | grep linux'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.