Ubuntu patches to evdev 2.6.0 crash X

Bug #709915 reported by SheeEttin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xserver-xorg-input-evdev (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-input-evdev

Since upgrading to evdev 2.6.0, X crashes when starting and leaves all graphics & input in an unusable state.
Trying evdev from upstream X git works fine, only when using Ubuntu sources does X crash.

Backtrace from Xorg.0.log:
[ 9701.960] 0: /usr/bin/X (xorg_backtrace+0x26) [0x45be16]
[ 9701.960] 1: /usr/bin/X (0x400000+0x59c9a) [0x459c9a]
[ 9701.960] 2: /lib/libpthread.so.0 (0x7fe7a2286000+0xfc80) [0x7fe7a2295c80]
[ 9701.960] 3: /usr/lib/xorg/modules/input/evdev_drv.so (0x7fe79d5eb000+0x639d) [0x7fe79d5f139d]
[ 9701.960] 4: /usr/lib/xorg/modules/input/evdev_drv.so (0x7fe79d5eb000+0x439d) [0x7fe79d5ef39d]
[ 9701.960] 5: /usr/bin/X (0x400000+0x87897) [0x487897]
[ 9701.960] 6: /usr/bin/X (NewInputDeviceRequest+0x3b7) [0x487e87]
[ 9701.960] 7: /usr/bin/X (0x400000+0x80588) [0x480588]
[ 9701.960] 8: /usr/bin/X (0x400000+0x80b3e) [0x480b3e]
[ 9701.960] 9: /usr/bin/X (config_init+0x9) [0x469349]
[ 9701.960] 10: /usr/bin/X (InitInput+0x95) [0x466ee5]
[ 9701.960] 11: /usr/bin/X (0x400000+0x218d6) [0x4218d6]
[ 9701.960] 12: /lib/libc.so.6 (__libc_start_main+0xfe) [0x7fe7a11efd1e]
[ 9701.961] 13: /usr/bin/X (0x400000+0x214b9) [0x4214b9]
[ 9701.961] Segmentation fault at address 0x1010
[ 9701.961] Caught signal 11 (Segmentation fault). Server aborting

Much more information should be attached.

I could try applying the Ubuntu patches one by one to see which one crashes X, if someone tells me how.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xserver-xorg-input-evdev 1:2.6.0-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
Uname: Linux 2.6.38-1-generic x86_64
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/allscreens/options/active_plugins'
DRM.card0.VGA.1:
 status: connected
 enabled: enabled
 dpms: Standby
 modes: 1280x1024 1280x1024 1024x768 1024x768 1024x768 832x624 800x600 800x600 800x600 800x600 640x480 640x480 640x480 640x480 720x400
 edid-base64: AP///////wAEckatAAAAACEQAQMIIht46NxVo1lIniQRUFS/7wABAQEBAQEBAQEBAQEBAQEBMCoAmFEAKkAwcBMAUg4RAAAeAAAA/QA4Sx5TDgAKICAgICAgAAAA/wA2MzNDNkYzNzQwMDEKAAAA/ABBTDE3MDYKICAgICAgAK0=
Date: Sat Jan 29 16:19:30 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus:

GconfCompiz:

GdmLog: Not present
GdmLog1: Not present
GdmLog2: Not present
GraphicsCard:
 Subsystem: ASUSTeK Computer Inc. Device [1043:0170]
   Subsystem: ASUSTeK Computer Inc. Device [1043:0171]
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101201.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-1-generic root=UUID=e7026872-c3b5-40e3-81b6-d0797159809d ro quiet splash vt.handoff=7
Renderer: Unknown
SourcePackage: xserver-xorg-input-evdev
version.libdrm2: libdrm2 2.4.23-1ubuntu3
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10-1ubuntu1
version.xserver-xorg: xserver-xorg 1:7.5+6ubuntu8
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.13.2+git20110124.fadee040-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Revision history for this message
SheeEttin (sheeettin) wrote :
SheeEttin (sheeettin)
summary: - Ubuntu patches to evdev crash X
+ Ubuntu patches to evdev 2.6.0 crash X
Changed in xserver-xorg-input-evdev (Ubuntu):
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote : Re: [Bug 709915] [NEW] Ubuntu patches to evdev crash X

On Sat, Jan 29, 2011 at 09:34:27PM -0000, SheeEttin wrote:
> Since upgrading to evdev 2.6.0, X crashes when starting and leaves all graphics & input in an unusable state.
> Trying evdev from upstream X git works fine, only when using Ubuntu sources does X crash.
>
> Much more information should be attached.
>
> I could try applying the Ubuntu patches one by one to see which one
> crashes X, if someone tells me how.

Thanks for reporting this, as well as testing upstream.

To save you some time I've gone ahead and prepared packages in PPAs with
each of the evdev patches disabled:

  https://launchpad.net/~bryce/+archive/apple # no patch 100
  https://launchpad.net/~bryce/+archive/banana # no patch 101
  https://launchpad.net/~bryce/+archive/cherry # no patch 100 or 101

If you could, please test all three and let me know which one(s) resolve
the crash. That should pinpoint which patch is causing the crash.

If none of them resolve the crash, then that would suggest some other
setting in the packaging, like an incorrect dependency version in
debian/control, or an inappropriate configure parameter in debian/rules.

To answer your question, you can enable/disable patches in packages like
this:

  apt-get source <package>
  sudo apt-get build-dep <package>
  cd <package>-<version>
  vi debian/patches/series # Comment out patches you want to disable
  debuild

That should generate .deb files (one for the driver, one dbg for
debugging).

Then install the debs normally, e.g.:

  dpkg -i *evdev*.deb

Revision history for this message
SheeEttin (sheeettin) wrote :

Everything works as expected without patch 101.

As a matter of fact, in the process of trying to get a more complete backtrace with gdb, I happened to try "bt full"--and noticing references to my MP3 player, I tried starting X without it plugged in, and sure enough, it started fine! (And, attaching it after X is running immediately produced a crash! Now how's that for repeatability?)

My MP3 player is a Sandisk Sansa e250 running Rockbox version r21735-090709. Attached is the full backtrace for the startup crash. (I can provide the same for the running crash, too, if it'd help.)

Unfortunately, I can't seem to locate the debug symbols for evdev, so that part of the backtrace isn't so helpful.

Revision history for this message
Bryce Harrington (bryce) wrote : Re: [Bug 709915] Re: Ubuntu patches to evdev 2.6.0 crash X

On Sun, Jan 30, 2011 at 04:13:53AM -0000, SheeEttin wrote:
> Everything works as expected without patch 101.

Just for absolute clarity - you're saying patch 101 is the cause of the
crash, and with it disabled the crashes go away?

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

See bug 709977 for duplicates.

Revision history for this message
Anton Anikin (anton-anikin) wrote :

I can confirm - https://launchpad.net/~bryce/+archive/banana # no patch 101 fixes this problem

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

It works with 1:2.6.0-1ubuntu2~nopatch101.

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.