vboxvideo DRI driver crashes Xorg on startup with xserver-xorg-core 2:1.9.99.901+git20110131.be3be758-0ubuntu6

Bug #722563 reported by Felix Geyer
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
High
Chris Halse Rogers
Natty
Fix Released
High
Chris Halse Rogers

Bug Description

Binary package hint: virtualbox-ose

After removing the vboxvideo DRI driver X starts just fine.

Relevant part of the Xorg log:
 [ 1398.637] (II) AIGLX: Screen 0 is not DRI2 capable
 [ 1398.637] drmOpenDevice: node name is /dev/dri/card0
 [ 1398.637] drmOpenDevice: open result is 14, (OK)
 [ 1398.637] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
 [ 1398.637] drmOpenDevice: node name is /dev/dri/card0
 [ 1398.637] drmOpenDevice: open result is 14, (OK)
 [ 1398.637] drmOpenByBusid: drmOpenMinor returns 14
 [ 1398.637] drmOpenByBusid: Interface 1.4 failed, trying 1.1
 [ 1398.637] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
 [ 1398.637] (II) AIGLX: Trying DRI driver /usr/lib/dri/vboxvideo_dri.so
 [ 1398.647] (II) Next line is added to allow vboxvideo_drv.so to appear as whitelisted driver
 [ 1398.647] (II) The file referenced, is *NOT* loaded
 [ 1398.647] (II) Loading /usr/lib/xorg/modules/drivers//ati_drv.so
 [ 1398.647] (II) AIGLX: vboxvideo does not export required DRI extension
 [ 1398.647] (II) AIGLX: Trying DRI driver /usr/lib/dri-alternates/vboxvideo_dri.so
 [ 1398.647]
 Backtrace: [...]

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: xserver-xorg-core 2:1.9.99.901+git20110131.be3be758-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-4.31-generic 2.6.38-rc5
Uname: Linux 2.6.38-4-generic x86_64
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: kwin
Date: Mon Feb 21 12:20:45 2011
DistUpgraded: Yes, recently upgraded Log time: 2011-01-08 15:25:12.512726
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus: virtualbox-ose-guest, 4.0.4, 2.6.38-4-generic, x86_64: installed
ExecutablePath: /usr/bin/Xorg
GconfCompiz:

GraphicsCard: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter [80ee:beef] (prog-if 00 [VGA controller])
Lsusb:
 Bus 001 Device 002: ID 80ee:0021
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
ProcCmdline: /usr/bin/X :0 vt9 -nr -nolisten tcp -auth /var/run/xauth/A:0-UFVlna
ProcCwd: /etc/X11
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-4-generic root=UUID=7a03444d-a34b-4484-bb7f-028bffbfb978 ro quiet splash vt.handoff=7
ProcKernelCmdLine_: BOOT_IMAGE=/boot/vmlinuz-2.6.38-4-generic root=UUID=7a03444d-a34b-4484-bb7f-028bffbfb978 ro quiet splash vt.handoff=7
Renderer: Software
SegvAnalysis:
 Segfault happened at: 0x7f055904dde1 <_dl_fini+241>: cmp %rax,0x28(%rax)
 PC (0x7f055904dde1) ok
 source "%rax" ok
 destination "0x28(%rax)" (0x00000059) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: xorg-server
StacktraceTop:
 strcmp () at ../sysdeps/x86_64/multiarch/../strcmp.S:136
 _dl_name_match_p (name=0x7fff28c2a6a0 "/usr/lib/dri-alternates/vboxvideo_dri.so", map=0x12dbcb0) at dl-misc.c:302
 _dl_map_object (loader=0x128dee0, name=0x7fff28c2a6a0 "/usr/lib/dri-alternates/vboxvideo_dri.so", type=2, trace_mode=0, mode=-1879048191, nsid=0) at dl-load.c:1980
 dl_open_worker (a=0x7fff28c2a400) at dl-open.c:226
 _dl_catch_error (objname=0x7fff28c2a450, errstring=0x7fff28c2a448, mallocedp=0x7fff28c2a45f, operate=0x7f0559051b60 <dl_open_worker>, args=0x7fff28c2a400) at dl-error.c:178
Title: Xorg crashed with SIGSEGV in strcmp()
UserGroups:

dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH
peripherals:

version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.23-1ubuntu3
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1~git20110215.cc1636b6-0ubuntu2
version.xserver-xorg: xserver-xorg 1:7.6~3ubuntu6
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-1ubuntu9
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu4

Related branches

Revision history for this message
Felix Geyer (debfx) wrote :
Rocko (rockorequin)
Changed in virtualbox-ose (Ubuntu):
status: New → Confirmed
Felix Geyer (debfx)
affects: virtualbox-ose (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Felix Geyer (debfx) wrote :

The breakage was introduced in xorg-server 2:1.9.99.901+git20110131.be3be758-0ubuntu6.

Seems like the vboxvideo DRI driver fails to load and then X crashes while trying to load a driver from the alternates dir.

A workaround is to just remove /usr/lib/dri/vboxvideo_dri.so

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Confirmed in Natty.

Broken version: xorg-server 2:1.9.99.901+git20110131.be3be758-0ubuntu6
Last working version: xorg-server 2:1.9.99.901+git20110131.be3be758-0ubuntu5

The workaround is to downgrade to the later.

Changed in xorg-server (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
tags: added: regression-release
Changed in xorg-server (Ubuntu Natty):
assignee: nobody → Ubuntu-X (ubuntu-x-swat)
summary: - vboxvideo DRI driver crashes Xorg on startup
+ vboxvideo DRI driver crashes Xorg on startup with xserver-xorg-core
+ 2:1.9.99.901+git20110131.be3be758-0ubuntu6
Revision history for this message
Bryce Harrington (bryce) wrote :

RAOF - looks like the mesa dri change broke vbox. Do they just need to rebuild their driver or is it something deeper?

Changed in xorg-server (Ubuntu Natty):
assignee: Ubuntu-X (ubuntu-x-swat) → nobody
assignee: nobody → Chris Halse Rogers (raof)
Revision history for this message
Chris Halse Rogers (raof) wrote :

No, my fault. The dri-alternates patch has an error on the (infrequently hit) failure path where the dri driver can be loaded, but isn't usable for AIGLX.

bugbot (bugbot)
tags: added: kubuntu
Felix Geyer (debfx)
tags: removed: kubuntu
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.2 KiB)

This bug was fixed in the package xorg-server - 2:1.9.99.902-2ubuntu1

---------------
xorg-server (2:1.9.99.902-2ubuntu1) natty; urgency=low

  [ Christopher James Halse Rogers ]
  * Merge from Debian experimental. Remaining Ubuntu changes:
    - rules:
      + Disable SELinux, libaudit-dev is not in main yet. (LP #406226)
      + Enable xcsecurity. (LP #247537)
      + Add --with-extra-module-dir to support GL alternatives.
      + Mention Ubuntu support in builderstring rather than package uploader's
        email address.
    - control:
      + Xvfb depends on xauth, x11-xkb-utils. (LP #500102)
      + Add breaks for incompatible drivers. (LP #614993)
      + Drop libaudit-dev from build-deps.
      + Build-depend on newer mesa to pick up DRI search paths variable.
    - local/xvfb-run*: Add correct docs about error codes. (LP #328205)
    - debian/patches:
      + 100_rethrow_signals.patch:
        When aborting, re-raise signals for apport
      + 105_nvidia_fglrx_autodetect.patch:
        Load proprietary drivers automatically when installed.
      + 109_fix-swcursor-crash.patch:
        Avoid dereferencing null pointer while reloading cursors during
        resume. (LP: #371405)
      + 111_armel-drv-fallbacks.patch:
        Add support for armel driver fallbacks.
      + 121_only_switch_vt_when_active.diff:
        Add a check to prevent the X server from changing the VT when killing
        GDM from the console.
      + 122_xext_fix_card32_overflow_in_xauth.patch:
        Fix server crash when “xauth generate” is called with large timeout.
      + 157_check_null_modes.patch, 162_null_crtc_in_rotation.patch,
        166_nullptr_xinerama_keyrepeat.patch, 167_nullptr_xisbread.patch
        169_mipointer_nullptr_checks.patch,
        172_cwgetbackingpicture_nullptr_check.patch:
        Fix various segfaults in xserver by checking pointers for NULL
        values before dereferencing them.
      + 165_man_xorg_conf_no_device_ident.patch
        Correct man page
      + 168_glibc_trace_to_stderr.patch:
        Report abort traces to stderr instead of terminal
      + 184_virtual_devices_autodetect.patch:
        Use vesa for qemu device, which is not supported by cirrus
      + 188_default_primary_to_first_busid.patch:
        Pick the first device and carry on (LP: #459512)
      + 190_cache-xkbcomp_output_for_fast_start_up.patch:
      + 191-Xorg-add-an-extra-module-path.patch:
        Add support for the alternatives module path.
      + 198_nohwaccess.patch:
        Adds a -nohwaccess argument to make X not access the hardware
        ports directly.
      + 200_randr-null.patch:
        Clarify a pointer initialization.
      + 206_intel_8xx_default_to_fbdev.patch:
        Makes 8xx class intel GPUs default to fbdev for stability. (LP: #633593)
      + 208_switch_on_release.diff:
        Switch keyboard layouts on key-release rather than key-press
   (LP #36812)
      + 209_add_legacy_bgnone_option.patch:
        Add -nr as a synonym for -background none until all ?DM are updated for
   the new option.
      + 210_pixman_null_ptr_check.patch:
        Catch NULL pointer access after pixman_image_create_bits() failure
   (LP #705078)
...

Read more...

Changed in xorg-server (Ubuntu Natty):
status: Triaged → 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.