X crashes on startup in evdev_drv

Bug #725202 reported by Fabien Tassin
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
xserver-xorg-input-evdev (Ubuntu)
Fix Released
Medium
Chase Douglas

Bug Description

Binary package hint: xserver-xorg-input-evdev

In Natty, X (and gdm) recently started to crash on startup when trying to detect my wireless mouse:

Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:160
160 ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S
(gdb) bt
#0 __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:160
#1 0x0813fa9e in XIChangeDeviceProperty (dev=0x95459f8, property=250, type=4, format=32, mode=<value optimized out>,
    len=20, value=0x11b, sendevent=0) at /usr/include/bits/string3.h:52
#2 0x005b36f1 in ?? () from /usr/lib/xorg/modules/input/evdev_drv.so
#3 0x005b39c3 in ?? () from /usr/lib/xorg/modules/input/evdev_drv.so
#4 0x08064690 in ActivateDevice (dev=0x95459f8, sendevent=1 '\001') at ../../dix/devices.c:534
#5 0x080c3770 in xf86NewInputDevice (pInfo=0x94dc7f8, pdev=0xbfdee674, enable=1 '\001')
    at ../../../../hw/xfree86/common/xf86Xinput.c:810
#6 0x080cc499 in device_added (udev_device=<value optimized out>) at ../../config/udev.c:194
#7 0x080cccbe in config_udev_init () at ../../config/udev.c:295
#8 0x080cbe17 in config_init () at ../../config/config.c:39
#9 0x080b5d1d in InitInput (argc=1, argv=0xbfdee844) at ../../../../hw/xfree86/common/xf86Init.c:823
#10 0x080628e6 in main (argc=1, argv=0xbfdee844, envp=0xbfdee84c) at ../../dix/main.c:259

Full trace attached.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xserver-xorg-input-evdev 1:2.6.0-1ubuntu8
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic i686
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86 Kernel Module 270.29 Wed Feb 23 16:16:53 PST 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-3ubuntu3)
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,gnomecompat,commands,vpswitch,resize,snap,mousepoll,regex,move,place,session,animation,wall,workarounds,expo,ezoom,staticswitcher,fade,scale,unityshell]
CompositorRunning: compiz
Date: Fri Feb 25 20:48:45 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus: nvidia-current, 270.29, 2.6.38-5-generic, i686: installed
GraphicsCard:
 nVidia Corporation G94 [GeForce 9600 GT] [10de:0622] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:827c]
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100331)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/usr/bin/tcsh
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-5-generic root=UUID=03e1779a-d90a-4b59-8b03-2d1198aeb7cc ro quiet splash vt.handoff=7
Renderer: Unknown
SourcePackage: xserver-xorg-input-evdev
dmi.bios.date: 08/04/2006
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F2
dmi.board.name: 945PL-S3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF2:bd08/04/2006:svn:pn:pvr:rvnGigabyteTechnologyCo.,Ltd.:rn945PL-S3:rvrx.x:cvn:ct3:cvr:
version.compiz: compiz 1:0.9.4-0ubuntu1
version.libdrm2: libdrm2 2.4.23-1ubuntu3
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1~git20110215.cc1636b6-0ubuntu2
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6~3ubuntu8
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-1ubuntu11
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu5

Revision history for this message
Fabien Tassin (fta) wrote :
Changed in xserver-xorg-input-evdev (Ubuntu):
assignee: nobody → Chase Douglas (chasedouglas)
Revision history for this message
Fabien Tassin (fta) wrote :

unpluging that usb radio transceiver and plugin another one (from another brand) allowed me to start X.

Revision history for this message
Chase Douglas (chasedouglas) wrote :

Hi Fabien,

Please you install this previous version of xserver-xorg-input-evdev:

https://launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/1:2.6.0-1ubuntu6/+buildjob/2236576/+files/xserver-xorg-input-evdev_2.6.0-1ubuntu6_i386.deb

Then log into X, save the X log, and attach it here. Also, run:

$ xinput list

Find the device that is causing the crash with the latest evdev. Note it's device id number. Then run:

$ xinput list <device number>

Save the output and attach it as well. Finally, run the following:

$ xinput list-props <device number>

Save the output and attach it as well.

Thanks!

Revision history for this message
Fabien Tassin (fta) wrote :

-1ubuntu6 also crashes for another reason.

Attached valgrind logs with the current version.

Changed in xserver-xorg-input-evdev (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Fabien Tassin (fta) wrote :

new valgrind logs with your u9~test1 debs

Revision history for this message
Fabien Tassin (fta) wrote :

..and gdb backtrace

Revision history for this message
Michael Flaig (mflaig) wrote :

For me the device that segfaults Xorg is my mouse. Logitech MX Air.

Revision history for this message
Michael Flaig (mflaig) wrote :

725172 might be the same problem...

Revision history for this message
Fabien Tassin (fta) wrote :

evtest of the device causing the crash.

Revision history for this message
Marcos Magalhães (marcos-daekdroom) wrote :

The device that segaults my Xorg is my keyboard.

Revision history for this message
Chase Douglas (chasedouglas) wrote :

Unfortunately, the evtest log from Fabien was for one of the non-crashing evdev nodes for his device. I would appreciate it if anyone could follow these instructions to get a device recording so other can test out the device virtually:

Stop X so it doesn't crash anymore:
1. logout
1. Enter VT 1 by pressing ctrl + alt + f1
2. login to the console
3. $ sudo stop gdm

Record the device properties of the crashing event node:
4. plug in device
5. $ sudo evemu-describe (/dev/input/by-path/name where name is your device name) > device.prop

Return to X:
6. unplug device
7. sudo start gdm

There may be multiple names for your device. If you are unsure which event node is causing the device to fail, please get device files for them all.

Thanks!

Revision history for this message
Fabien Tassin (fta) wrote :

Here it is, and more.

Revision history for this message
Chase Douglas (chasedouglas) wrote :

Please test the xserver-xorg-input-evdev package here:

http://people.canonical.com/~cndougla/utouch/

I believe this should resolve the issue. If so, I'll try to get this in before Alpha 3 is released.

Revision history for this message
Artem Popov (artfwo) wrote :

Chase, your package just resolved the bug for me. Many thanks!

Revision history for this message
Fabien Tassin (fta) wrote :

@cnd: fix confirmed: no more crashes, and my mouse still works. Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-input-evdev - 1:2.6.0-1ubuntu9

---------------
xserver-xorg-input-evdev (1:2.6.0-1ubuntu9) natty; urgency=low

  [ Chase Douglas ]
  * Fix evdev when handling devices with full array of abs axes (LP: #725202)
 -- Alberto Milone <email address hidden> Tue, 01 Mar 2011 16:56:14 +0100

Changed in xserver-xorg-input-evdev (Ubuntu):
status: In Progress → Fix Released
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.