apport-gpu-error-intel.py crashed with SystemError in open()

Bug #1103061 reported by Shih-Yuan Lee
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdiagnose (Ubuntu)
Fix Released
Undecided
Bryce Harrington
Quantal
Fix Released
Medium
Unassigned

Bug Description

I don't know how this happened.
It just happened after I logged into Unity desktop environment and executed `apt-get update` in gnome-terminal.

Traceback:
 Traceback (most recent call last):
   File "/usr/share/apport/apport-gpu-error-intel.py", line 170, in <module>
     sys.exit(main())
   File "/usr/share/apport/apport-gpu-error-intel.py", line 135, in main
     attach_related_packages(report, ["xserver-xorg", "libdrm2", "xserver-xorg-video-intel"])
   File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line 646, in attach_related_packages
     report['RelatedPackageVersions'] = package_versions(*packages)
   File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line 658, in package_versions
     matching_packages = packaging.package_name_glob(package_pattern)
   File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 589, in package_name_glob
     return glob.fnmatch.filter(self._cache().keys(), nameglob)
   File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 53, in _cache
     self._apt_cache = apt.Cache(progress, rootdir='/')
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in __init__
     self.open(progress)
   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 145, in open
     self._cache = apt_pkg.Cache(progress)
 SystemError: E:Problem renaming the file /var/cache/apt/pkgcache.bin.V1T9Mp to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory), W:You may want to run apt-get update

Related branches

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in xdiagnose (Ubuntu):
status: New → Confirmed
description: updated
Bryce Harrington (bryce)
Changed in xdiagnose (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Bryce Harrington (bryce)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdiagnose - 3.4.4

---------------
xdiagnose (3.4.4) raring; urgency=low

  * debian/xdiagnose.udev: Disable gpu apport hook for raring release
    (LP: #1073626)
  * apport/apport-gpu-error-intel.py:
    - Bail if not on a devel release (LP: #1071278)
    - Skip over failure accessing apt cache (LP: #1103061)
 -- Bryce Harrington <email address hidden> Mon, 01 Apr 2013 18:54:09 -0700

Changed in xdiagnose (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Michael Mori (mori-mike) wrote : Re: [Bug 1103061] Re: apport-gpu-error-intel.py crashed with SystemError in open()

Hi, my pc froze completely and with the restart only produced the
background with no icons, just the password required, which when completed
just left the background.

I sent to Hilton Computers who got the machine working but now both CPU's
are working at 100% - see screen shot below, and error messages occur every
30 seconds.

[image: Inline images 1]

On 2 April 2013 04:41, Launchpad Bug Tracker <email address hidden>wrote:

> This bug was fixed in the package xdiagnose - 3.4.4
>
> ---------------
> xdiagnose (3.4.4) raring; urgency=low
>
> * debian/xdiagnose.udev: Disable gpu apport hook for raring release
> (LP: #1073626)
> * apport/apport-gpu-error-intel.py:
> - Bail if not on a devel release (LP: #1071278)
> - Skip over failure accessing apt cache (LP: #1103061)
> -- Bryce Harrington <email address hidden> Mon, 01 Apr 2013 18:54:09 -0700
>
> ** Changed in: xdiagnose (Ubuntu)
> Status: In Progress => Fix Released
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1158213).
> https://bugs.launchpad.net/bugs/1103061
>
> Title:
> apport-gpu-error-intel.py crashed with SystemError in open()
>
> Status in “xdiagnose” package in Ubuntu:
> Fix Released
>
> Bug description:
> I don't know how this happened.
> It just happened after I logged into Unity desktop environment and
> executed `apt-get update` in gnome-terminal.
>
> Traceback:
> Traceback (most recent call last):
> File "/usr/share/apport/apport-gpu-error-intel.py", line 170, in
> <module>
> sys.exit(main())
> File "/usr/share/apport/apport-gpu-error-intel.py", line 135, in main
> attach_related_packages(report, ["xserver-xorg", "libdrm2",
> "xserver-xorg-video-intel"])
> File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line
> 646, in attach_related_packages
> report['RelatedPackageVersions'] = package_versions(*packages)
> File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line
> 658, in package_versions
> matching_packages = packaging.package_name_glob(package_pattern)
> File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py",
> line 589, in package_name_glob
> return glob.fnmatch.filter(self._cache().keys(), nameglob)
> File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py",
> line 53, in _cache
> self._apt_cache = apt.Cache(progress, rootdir='/')
> File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in
> __init__
> self.open(progress)
> File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 145, in
> open
> self._cache = apt_pkg.Cache(progress)
> SystemError: E:Problem renaming the file
> /var/cache/apt/pkgcache.bin.V1T9Mp to /var/cache/apt/pkgcache.bin - rename
> (2: No such file or directory), W:You may want to run apt-get update
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/xdiagnose/+bug/1103061/+subscriptions
>

--
Kind regards,

Michael Mori

Revision history for this message
Bryce Harrington (bryce) wrote :
Changed in xdiagnose (Ubuntu Quantal):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

...however as of 3.2.3 the apport hook is no longer being run, so this issue should not crop up in practice anymore.

Changed in xdiagnose (Ubuntu Quantal):
status: Triaged → Fix Released
Revision history for this message
Michael Mori (mori-mike) wrote :

Hi Bryce,

I must apologise for not acknowledging your emails, so thanks very much. I
have got the latest 12.10 on my machine and all is working very well. I
have Chrome, Skype and Dropbox all working perfectly, but I am very scared
to install the 302 updates that are available, because every time I have
done this over the past few weeks, I encountered the display issues. So
unless you suggest otherwise, I will not install any updates for a few
weeks.

Best wishes

Michael Mori

On 25 April 2013 06:26, Bryce Harrington <email address hidden> wrote:

> ...however as of 3.2.3 the apport hook is no longer being run, so this
> issue should not crop up in practice anymore.
>
> ** Changed in: xdiagnose (Ubuntu Quantal)
> Status: Triaged => Fix Released
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1158213).
> https://bugs.launchpad.net/bugs/1103061
>
> Title:
> apport-gpu-error-intel.py crashed with SystemError in open()
>
> Status in “xdiagnose” package in Ubuntu:
> Fix Released
> Status in “xdiagnose” source package in Quantal:
> Fix Released
>
> Bug description:
> I don't know how this happened.
> It just happened after I logged into Unity desktop environment and
> executed `apt-get update` in gnome-terminal.
>
> Traceback:
> Traceback (most recent call last):
> File "/usr/share/apport/apport-gpu-error-intel.py", line 170, in
> <module>
> sys.exit(main())
> File "/usr/share/apport/apport-gpu-error-intel.py", line 135, in main
> attach_related_packages(report, ["xserver-xorg", "libdrm2",
> "xserver-xorg-video-intel"])
> File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line
> 646, in attach_related_packages
> report['RelatedPackageVersions'] = package_versions(*packages)
> File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line
> 658, in package_versions
> matching_packages = packaging.package_name_glob(package_pattern)
> File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py",
> line 589, in package_name_glob
> return glob.fnmatch.filter(self._cache().keys(), nameglob)
> File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py",
> line 53, in _cache
> self._apt_cache = apt.Cache(progress, rootdir='/')
> File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in
> __init__
> self.open(progress)
> File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 145, in
> open
> self._cache = apt_pkg.Cache(progress)
> SystemError: E:Problem renaming the file
> /var/cache/apt/pkgcache.bin.V1T9Mp to /var/cache/apt/pkgcache.bin - rename
> (2: No such file or directory), W:You may want to run apt-get update
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/xdiagnose/+bug/1103061/+subscriptions
>

--
Kind regards,

Michael Mori

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.