dkms_packages.py crashed with TypeError in __main__: Type str doesn't support the buffer API

Bug #1303275 reported by anders.olme@gmail.com
260
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Fix Released
Medium
Martin Pitt
Trusty
Triaged
Undecided
Unassigned

Bug Description

happened on upgrade from 13.10 to 14.04

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: dkms 2.2.0.3-1.1ubuntu5
ProcVersionSignature: Ubuntu 3.8.0-19.30-generic 3.8.8
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.14.1-0ubuntu1
Architecture: amd64
Date: Sun Apr 6 11:19:45 2014
ExecutablePath: /usr/share/apport/package-hooks/dkms_packages.py
InstallationDate: Installed on 2013-03-29 (372 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130328)
InterpreterPath: /usr/bin/python3.4
PackageArchitecture: all
ProcCmdline: python3 /usr/share/apport/package-hooks/dkms_packages.py -m nvidia-331-updates -v 331.38 -k 3.13.0-23-generic
PythonArgs: ['/usr/share/apport/package-hooks/dkms_packages.py', '-m', 'nvidia-331-updates', '-v', '331.38', '-k', '3.13.0-23-generic']
SourcePackage: dkms
Title: dkms_packages.py crashed with TypeError in __main__: Type str doesn't support the buffer API
Traceback:
 Traceback (most recent call last):
   File "/usr/share/apport/package-hooks/dkms_packages.py", line 87, in <module>
     if 'Segmentation fault' in report['DKMSBuildLog']:
 TypeError: Type str doesn't support the buffer API
UpgradeStatus: Upgraded to trusty on 2014-04-06 (0 days ago)
UserGroups:

Revision history for this message
anders.olme@gmail.com (anders-olme) wrote :
tags: removed: need-duplicate-check
Changed in dkms (Ubuntu):
importance: Undecided → Medium
Martin Pitt (pitti)
information type: Private → Public Security
Changed in dkms (Ubuntu):
status: New → Triaged
Martin Pitt (pitti)
Changed in dkms (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dkms - 2.2.0.3-2ubuntu8

---------------
dkms (2.2.0.3-2ubuntu8) xenial; urgency=medium

  * apport_python3.patch: Force unicode conversion for attaching DKMSBuildLog.
    This is in principle a human readable file, and the subsequent code wants
    to treat it as a string, not bytes. (LP: #1303275)

 -- Martin Pitt <email address hidden> Mon, 30 Nov 2015 08:06:45 +0100

Changed in dkms (Ubuntu):
status: Fix Committed → Fix Released
Martin Pitt (pitti)
Changed in dkms (Ubuntu Trusty):
assignee: nobody → Martin Pitt (pitti)
Martin Pitt (pitti)
Changed in dkms (Ubuntu Trusty):
assignee: Martin Pitt (pitti) → nobody
no longer affects: dkms (Ubuntu Wily)
Changed in dkms (Ubuntu Trusty):
status: New → Triaged
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

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