Bug 92682 - Plugging in Sony Computer Entertainment Wireless Stereo Headset causes a crash
Summary: Plugging in Sony Computer Entertainment Wireless Stereo Headset causes a crash
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/evdev (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: have-backtrace
Depends on:
Blocks:
 
Reported: 2015-10-26 17:38 UTC by austinenglish@gmail.com
Modified: 2015-10-27 00:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
evemu-describe (6.67 KB, text/plain)
2015-10-26 20:53 UTC, austinenglish@gmail.com
no flags Details

Description austinenglish@gmail.com 2015-10-26 17:38:41 UTC
[    52.930] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_X.
[    52.930] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_Y.
[    52.930] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_PRESSURE.
[    52.930] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_DISTANCE.
[    52.930] (EE) BUG: triggered 'if (axnum >= dev->valuator->numAxes)'
[    52.930] (EE) BUG: /var/tmp/portage/x11-base/xorg-server-1.16.4/work/xorg-server-1.16.4/Xi/exevents.c:2086 in InitValuatorAxisStruct()
[    52.930] (EE)
[    52.930] (EE) Backtrace:
[    52.932] (EE) 0: /usr/bin/X (xorg_backtrace+0x48) [0x5849e8]
[    52.933] (EE) 1: /usr/bin/X (InitValuatorAxisStruct+0x68) [0x5178b8]
[    52.933] (EE) 2: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f01aee81000+0x5109) [0x7f01aee86109]
[    52.933] (EE) 3: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f01aee81000+0x559f) [0x7f01aee8659f]
[    52.933] (EE) 4: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f01aee81000+0x725b) [0x7f01aee8825b]
[    52.933] (EE) 5: /usr/bin/X (ActivateDevice+0x37) [0x42bd27]
[    52.933] (EE) 6: /usr/bin/X (0x400000+0x81776) [0x481776]
[    52.933] (EE) 7: /usr/bin/X (0x400000+0x9771b) [0x49771b]
[    52.933] (EE) 8: /usr/bin/X (0x400000+0x97ac8) [0x497ac8]
[    52.933] (EE) 9: /usr/bin/X (WakeupHandler+0x6d) [0x43aa8d]
[    52.933] (EE) 10: /usr/bin/X (WaitForSomething+0x1bb) [0x581f5b]
[    52.933] (EE) 11: /usr/bin/X (0x400000+0x35ef1) [0x435ef1]
[    52.933] (EE) 12: /usr/bin/X (0x400000+0x39f9a) [0x439f9a]
[    52.933] (EE) 13: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f01b3acc855]
[    52.933] (EE) 14: /usr/bin/X (0x400000+0x256de) [0x4256de]
[    52.933] (EE)
[    52.933] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: initialized for absolute axes.

X11 appears to still be functional. There are a few other reports of this floating around online:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780022
http://pastebin.com/c4SW0iYD

austin@austin1 ~ $ qlist -Iv evdev xorg
dev-libs/libevdev-1.4.4
x11-base/xorg-drivers-1.16
x11-base/xorg-server-1.16.4
x11-drivers/xf86-input-evdev-2.9.2

I updated to ev-dev-2.9.2 based on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780022#35, which suggests that http://cgit.freedesktop.org/xorg/driver/xf86-input-evdev/commit/?id=38e107a39fb4a0b630ee5adb5870c91dbc27abde may make a difference, but it doesn't here.

I can also reproduce on Debian unstable:
[ 15873.598] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_X.
[ 15873.598] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_Y.
[ 15873.598] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_PRESSURE.
[ 15873.598] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: Faking axis ABS_DISTANCE.
[ 15873.598] (EE) BUG: triggered 'if (axnum >= dev->valuator->numAxes)'
[ 15873.598] (EE) BUG: ../../Xi/exevents.c:2087 in InitValuatorAxisStruct()
[ 15873.598] (EE)
[ 15873.598] (EE) Backtrace:
[ 15873.598] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4e) [0x55e808bd75be]
[ 15873.598] (EE) 1: /usr/lib/xorg/Xorg (InitValuatorAxisStruct+0x67) [0x55e808b68cc7]
[ 15873.598] (EE) 2: /usr/lib/xorg/modules/input/evdev_drv.so (0x7fc99af58000+0x51ca) [0x7fc99af5d1ca]
[ 15873.598] (EE) 3: /usr/lib/xorg/modules/input/evdev_drv.so (0x7fc99af58000+0x565f) [0x7fc99af5d65f]
[ 15873.598] (EE) 4: /usr/lib/xorg/modules/input/evdev_drv.so (0x7fc99af58000+0x7393) [0x7fc99af5f393]
[ 15873.598] (EE) 5: /usr/lib/xorg/Xorg (ActivateDevice+0x4a) [0x55e808a6f80a]
[ 15873.598] (EE) 6: /usr/lib/xorg/Xorg (0x55e808a22000+0xa62b9) [0x55e808ac82b9]
[ 15873.598] (EE) 7: /usr/lib/xorg/Xorg (0x55e808a22000+0xbc61b) [0x55e808ade61b]
[ 15873.598] (EE) 8: /usr/lib/xorg/Xorg (0x55e808a22000+0xbc9d0) [0x55e808ade9d0]
[ 15873.598] (EE) 9: /usr/lib/xorg/Xorg (WakeupHandler+0x6d) [0x55e808a7f50d]
[ 15873.598] (EE) 10: /usr/lib/xorg/Xorg (WaitForSomething+0x1e7) [0x55e808bd46f7]
[ 15873.598] (EE) 11: /usr/lib/xorg/Xorg (0x55e808a22000+0x586c1) [0x55e808a7a6c1]
[ 15873.598] (EE) 12: /usr/lib/xorg/Xorg (0x55e808a22000+0x5c9fb) [0x55e808a7e9fb]
[ 15873.598] (EE) 13: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0x7fc9a1976b45]
[ 15873.598] (EE) 14: /usr/lib/xorg/Xorg (0x55e808a22000+0x46dee) [0x55e808a68dee]
[ 15873.598] (EE)
[ 15873.599] (II) evdev: Sony Computer Entertainment Wireless Stereo Headset: initialized for absolute axes.
[ 15873.599] (**) Sony Computer Entertainment Wireless Stereo Headset: (accel) keeping acceleration scheme 1
[ 15873.599] (**) Sony Computer Entertainment Wireless Stereo Headset: (accel) acceleration profile 0
[ 15873.599] (**) Sony Computer Entertainment Wireless Stereo Headset: (accel) acceleration factor: 2.000
[ 15873.599] (**) Sony Computer Entertainment Wireless Stereo Headset: (accel) acceleration threshold: 4

austin@debian-laptop:~$ dpkg -l | grep -e evdev -e xorg
ii  libevdev2:amd64                       1.4.4+dfsg-1                          amd64        wrapper library for evdev devices
ii  xorg                                  1:7.7+12                              amd64        X.Org X Window System
ii  xorg-docs-core                        1:1.7-1                               all          Core documentation for the X.org X Window System
ii  xorg-sgml-doctools                    1:1.11-1                              all          Common tools for building X.Org SGML documentation
ii  xserver-xorg                          1:7.7+12                              amd64        X.Org X server
ii  xserver-xorg-core                     2:1.17.2-3                            amd64        Xorg X server - core server
ii  xserver-xorg-input-evdev              1:2.9.2-1                             amd64        X.Org X server -- evdev input driver
ii  xserver-xorg-input-mouse              1:1.9.1-1                             amd64        X.Org X server -- mouse input driver
ii  xserver-xorg-input-synaptics          1.8.2-1                               amd64        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-video-intel              2:2.99.917-2                          amd64        X.Org X server -- Intel i8xx, i9xx display driver
Comment 1 Peter Hutterer 2015-10-26 20:49:34 UTC
that's a bug macro triggered in the driver, it prints the backtrace for help but isnt' a crash as such, just a warning something is amiss. so nothing to immediately worry about :)

Please record this device with evemu-describe and attach the output here, that should make it possible to reproduce and fix easily.
Comment 2 austinenglish@gmail.com 2015-10-26 20:53:58 UTC
Created attachment 119206 [details]
evemu-describe
Comment 3 austinenglish@gmail.com 2015-10-26 20:54:50 UTC
(In reply to Peter Hutterer from comment #1)
> that's a bug macro triggered in the driver, it prints the backtrace for help
> but isnt' a crash as such, just a warning something is amiss. so nothing to
> immediately worry about :)

OK.

> Please record this device with evemu-describe and attach the output here,
> that should make it possible to reproduce and fix easily.

Sure, done. I've never used it before, so please let me know if there's some option you need enabled or some other output.
Comment 4 Peter Hutterer 2015-10-26 21:44:19 UTC
log is fine, thanks. except: it works just fine here with evdev 2.9.2, 2.9.1 and even 2.9.0. that's with the server from git master and the 1.17.2, the one you have.

Any chance you can try evdev 2.9.2 from git to make sure this isn't a debian patch interfering here?
Comment 5 austinenglish@gmail.com 2015-10-27 00:01:53 UTC
(In reply to Peter Hutterer from comment #4)
> log is fine, thanks. except: it works just fine here with evdev 2.9.2, 2.9.1
> and even 2.9.0. that's with the server from git master and the 1.17.2, the
> one you have.
> 
> Any chance you can try evdev 2.9.2 from git to make sure this isn't a debian
> patch interfering here?

Originally I found this with Gentoo, the evemu-describe log was from Debian, which has 1.17.2. My gentoo machine has 1.16.4, where 2.9.2 has the issue. Building from git works there, thanks.
Comment 6 Peter Hutterer 2015-10-27 00:36:42 UTC
oh, thanks, good to know.

btw evemu sits below evdev, so it's not affected by the X or evdev version, it always produces the same log. kernel changes may affect it though.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.