[Natty Alpha-2] crash in source_xorg.py hook when reporting X bug

Bug #714784 reported by Christian Kirbach
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Invalid
Undecided
Unassigned
xorg (Ubuntu)
Fix Released
Medium
Bryce Harrington

Bug Description

Binary package hint: apport

ubuntu@ubuntu:~$ ubuntu-bug xorg
hook /usr/share/apport/package-hooks//source_xorg.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 636, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/package-hooks//source_xorg.py", line 424, in add_info
    attach_3d_info(report, ui)
  File "/usr/share/apport/package-hooks//source_xorg.py", line 325, in attach_3d_info
    report['glxinfo'] = command_output_quiet(['glxinfo'])
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 500, in __setitem__
    and (hasattr(v[0], 'isalnum') or hasattr(v[0], 'read'))))
AssertionError

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: apport 1.17.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic x86_64
Architecture: amd64
Date: Mon Feb 7 19:28:13 2011
LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110118)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=de_DE.UTF-8:de:en_GB:en
 LANG=de_DE.UTF-8
 LC_MESSAGES=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: apport

Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :
summary: - crash in source_xorg.py hook when reporting X bug
+ [Natty Alpha-2] crash in source_xorg.py hook when reporting X bug
Revision history for this message
Brian Murray (brian-murray) wrote :

The package hook is provided by the xorg package. Which particular version of xorg do you have installed? Thanks in advance.

Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
Brian Murray (brian-murray) wrote :

Actually from your other bug it looks like the version is version.xserver-xorg: xserver-xorg 1:7.5+6ubuntu7. Could you try running glxinfo in a terminal and post the output.

bugbot (bugbot)
affects: xorg (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Brian Murray (brian-murray) wrote :

It occurred to me that glxinfo is from a package in universe and I was able to recreate the crash using the following steps:

8:28:59 - flash:[~/Documents/subtitles] sudo chmod -x '/usr/bin/glxinfo'
[sudo] password for bdmurray:
8:29:10 - flash:[~/Documents/subtitles] ubuntu-bug xorg
ERROR: hook /usr/share/apport/package-hooks//source_xorg.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 637, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/package-hooks//source_xorg.py", line 450, in add_info
    attach_3d_info(report, ui)
  File "/usr/share/apport/package-hooks//source_xorg.py", line 332, in attach_3d_info
    report['glxinfo'] = command_output_quiet(['glxinfo'])
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 510, in __setitem__
    and (hasattr(v[0], 'isalnum') or hasattr(v[0], 'read'))))
AssertionError

The existence of glxinfo should be tested before trying to run it.

Changed in apport (Ubuntu):
status: New → Invalid
Changed in xorg-server (Ubuntu):
assignee: nobody → Bryce Harrington (bryce)
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote : Re: [Bug 714784] Re: [Natty Alpha-2] crash in source_xorg.py hook when reporting X bug

On Wed, Feb 09, 2011 at 04:34:17PM -0000, Brian Murray wrote:
> It occurred to me that glxinfo is from a package in universe and I was
> able to recreate the crash using the following steps:
>
> 8:28:59 - flash:[~/Documents/subtitles] sudo chmod -x '/usr/bin/glxinfo'
> [sudo] password for bdmurray:
> 8:29:10 - flash:[~/Documents/subtitles] ubuntu-bug xorg
> ERROR: hook /usr/share/apport/package-hooks//source_xorg.py crashed:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/apport/report.py", line 637, in add_hooks_info
> symb['add_info'](self, ui)
> File "/usr/share/apport/package-hooks//source_xorg.py", line 450, in add_info
> attach_3d_info(report, ui)
> File "/usr/share/apport/package-hooks//source_xorg.py", line 332, in attach_3d_info
> report['glxinfo'] = command_output_quiet(['glxinfo'])
> File "/usr/lib/python2.7/dist-packages/problem_report.py", line 510, in __setitem__
> and (hasattr(v[0], 'isalnum') or hasattr(v[0], 'read'))))
> AssertionError
>
> The existence of glxinfo should be tested before trying to run it.

Yeah, it used to be that glxinfo was installed by default along with the
rest of mesa, but a release or two ago the mesa utilities including this
one got broken out into a separate package, which we don't install by
default.

However, historically glxinfo has provided minimal usefulness; we don't
really seem to miss it when it's not attached. I think we've mostly
moved beyond the class of problems that glxinfo used to help with,
especially now that we have the more precise instrumentation from the
compiz and unity folks.

So, I'm thinking we should just drop the call entirely. I'll
doublecheck with Jay and David first though.

Bryce

Bryce Harrington (bryce)
affects: xorg-server (Ubuntu) → xorg (Ubuntu)
Bryce Harrington (bryce)
Changed in xorg (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg - 1:7.6~3ubuntu5

---------------
xorg (1:7.6~3ubuntu5) natty; urgency=low

  * apport/source_xorg.py:
    - Add 'locale' information (for keyboards)
    - Drop 'glxinfo' since it's been demoted to universe (LP: #714784)
    - Switch to new attach_root_command_outputs() call. Prevents prompting
      for password 3 times for 3 gdm files (thanks Pitti!) (LP: #716595)
 -- Bryce Harrington <email address hidden> Thu, 17 Feb 2011 11:42:58 -0800

Changed in xorg (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.