xinput --disable / --enable segfaults X server
Submitted by Davide
Assigned to Xorg Project Team
Description
A script periodically issues the following ordered list of commands:
DISPLAY=:$active_screen xinput --disable 10 # notebook keyboard DISPLAY=:$active_screen xinput --disable 9 # usb mouse DISPLAY=:$active_screen xinput --disable 11 # touchpad
DISPLAY=:$run_screen xinput --enable 10 DISPLAY=:$run_screen xinput --enable 9 DISPLAY=:$run_screen xinput --enable 11
Sometimes, in the same instant as these instructions are executed, X segfaults with the following in Xorg.0.log:
http://wiki.x.org for help. [198636.683] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [198636.683] (EE) [198636.780] (EE) Server terminated with error (1). Closing log file.
[198636.680] (EE) [198636.680] (EE) Backtrace: [198636.681] (EE) 0: /usr/bin/X (xorg_backtrace+0x4f) [0xb7742c0f] [198636.681] (EE) 1: /usr/bin/X (0xb759b000+0x1ab9e4) [0xb77469e4] [198636.681] (EE) 2: linux-gate.so.1 (__kernel_rt_sigreturn+0x0) [0xffffe40c] [198636.681] (EE) 3: /usr/bin/X (mieqProcessDeviceEvent+0x138) [0xb7722fa8] [198636.681] (EE) 4: /usr/bin/X (mieqProcessInputEvents+0xfd) [0xb772318d] [198636.681] (EE) 5: /usr/bin/X (ProcessInputEvents+0x14) [0xb7619234] [198636.682] (EE) 6: /usr/bin/X (0xb759b000+0x3c91c) [0xb75d791c] [198636.682] (EE) 7: /usr/bin/X (0xb759b000+0x40c25) [0xb75dbc25] [198636.682] (EE) 8: /usr/bin/X (0xb759b000+0x2a93e) [0xb75c593e] [198636.682] (EE) 9: /lib/i386-linux-gnu/i686/cmov/libc.so.6 (__libc_start_main+0xf3) [0xb7128a63] [198636.682] (EE) 10: /usr/bin/X (0xb759b000+0x2a974) [0xb75c5974] [198636.682] (EE) [198636.682] (EE) Segmentation fault at address 0xa8 [198636.682] (EE) Fatal server error: [198636.682] (EE) Caught signal 11 (Segmentation fault). Server aborting [198636.682] (EE) [198636.682] (EE) Please consult the The X.Org Foundation support atI'm not aware of how I could report further details. I suspect the crash might be related to my buggy USB mouse (device #9 in the previous xinput command) which periodically is reported by the kernel as disconnected from the USB bus, for then automatically reconnecting by its own within a few milliseconds. This happens regularly and periodically during all the uptime of the notebook, whether X is running or not. I suspect that if xinput attempts to act on this device during the short time frame while it is virtually disconnected, this might cause the segfault.
Xorg -version
#36 SMP Fri Jun 6 01:14:16 CEST 2014 i686 Kernel command line: root=/dev/mmcblk0p1 rootflags=noatime,nodiratime,norelatime,async quiet Build Date: 15 April 2014 07:46:36PM xorg-server 2:1.15.1-1 (http://www.debian.org/support) Current version of pixman: 0.32.4
X.Org X Server 1.15.1 Release Date: 2014-04-13 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.2.0-4-amd64 i686 Debian Current Operating System: Linux RAM 3.11.1-SDcard-5620z-- Davide