source_libmtp.py hook crashed on `apport-bug libmtp9` with Nexus 10

Bug #1172123 reported by Michał Sawicz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libmtp
Fix Released
Unknown
libmtp (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

The source_libmtp.py hook crashed with the following backtrace when trying to apport-bug libmtp9 with a Nexus 10 device connected:

$ apport-bug libmtp9
ERROR: hook /usr/share/apport/package-hooks/source_libmtp.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/package-hooks/source_libmtp.py", line 16, in add_info
    attach_related_packages(report, [
NameError: global name 'attach_related_packages' is not defined

(process:14422): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: libmtp9 1.1.5-42-g6e96316-1ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-7.16-generic 3.8.0
Uname: Linux 3.8.0-7-generic x86_64
NonfreeKernelModules: wl nvidia
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Wed Apr 24 07:12:50 2013
MarkForUpload: True
SourcePackage: libmtp
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michał Sawicz (saviq) wrote :
Rolf Leggewie (r0lf)
Changed in libmtp (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in libmtp (Ubuntu):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

same in trusty i386

Changed in libmtp (Ubuntu):
milestone: none → ubuntu-14.04-beta-1
Revision history for this message
Sebastien Bacher (seb128) wrote :

Indeed, the apport hook is buggy, I've a fixed version and sent the patch to Debian, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802601

Changed in libmtp (Ubuntu):
status: Confirmed → Fix Committed
Changed in libmtp (Ubuntu):
milestone: ubuntu-14.04-beta-1 → none
assignee: nobody → Sebastien Bacher (seb128)
Changed in libmtp:
status: Unknown → New
Changed in libmtp:
status: New → Fix Committed
Changed in libmtp:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libmtp - 1.1.10-2

---------------
libmtp (1.1.10-2) unstable; urgency=medium

  * debian/apport/source_libmtp.py:
    - updated apport hook to work, import what we need, mention the
      current soname version and don't include hal info. Thanks to
      Sebastien Bacher for the patch. (Closes: #802601) (LP: #1172123)
  * Add Noka C5-00's alternative ID (Closes: #728088)

 -- Alessio Treglia <email address hidden> Wed, 28 Oct 2015 22:08:19 +0000

Changed in libmtp (Ubuntu):
status: Fix Committed → Fix Released
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.