Segmentation fault after a keyboard disconnected
I'm running Gentoo system with x11-base/xorg-server-1.20.10-r2, dev-libs/libinput-1.16.4, sys-libs/glibc-2.32-r7, x11-drivers/xf86-input-libinput-0.30.0 packages installed. Once I disconnect the keyboard, Xorg intermittently crashes with segmentation fault:
[ 1006.003] (II) Using input driver 'libinput' for ' Gaming Keyboard Consumer Control'
[ 1006.003] (**) Gaming Keyboard Consumer Control: always reports core events
[ 1006.003] (**) Option "Device" "/dev/input/event4"
[ 1006.003] (**) Option "_source" "_driver/libinput"
[ 1006.003] (II) libinput: Gaming Keyboard Consumer Control: is a virtual subdevice
[ 1006.003] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.1/0003:0416:A0F8.000D/input/input29/event4"
[ 1006.003] (II) XINPUT: Adding extended input device " Gaming Keyboard Consumer Control" (type: KEYBOARD, id 13)
[ 1006.003] (**) Option "xkb_layout" "us,ru(winkeys)"
[ 1006.003] (**) Option "xkb_options" "grp:alt_shift_toggle,grp_led:scroll,numpad:microsoft,compose:lwin"
[ 1006.614] (II) config/udev: removing device Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)
[ 1006.615] (II) event0 - Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): device removed
[ 1006.630] (II) UnloadModule: "libinput"
[ 1006.838] (II) config/udev: removing device Gaming Keyboard
[ 1006.838] (II) event1 - Gaming Keyboard: device removed
[ 1006.858] (II) UnloadModule: "libinput"
[ 1006.890] (II) config/udev: removing device Gaming Keyboard
[ 1006.891] (II) UnloadModule: "libinput"
[ 1006.891] (II) config/udev: removing device Gaming Keyboard
[ 1006.891] (II) event2 - Gaming Keyboard: device removed
[ 1006.906] (II) UnloadModule: "libinput"
[ 1006.919] (II) config/udev: removing device Gaming Keyboard System Control
[ 1006.919] (II) event3 - Gaming Keyboard System Control: device removed
[ 1006.942] (II) UnloadModule: "libinput"
[ 1006.958] (II) config/udev: removing device Gaming Keyboard Consumer Control
[ 1006.959] (II) UnloadModule: "libinput"
[ 1006.959] (II) config/udev: removing device Gaming Keyboard Consumer Control
[ 1006.959] (II) event4 - Gaming Keyboard Consumer Control: device removed
[ 1006.974] (EE)
[ 1006.974] (EE) Backtrace:
[ 1006.982] (EE) 0: /usr/bin/X (xorg_backtrace+0x54) [0x5595596df0e4]
[ 1006.983] (EE) 1: /usr/bin/X (0x559559530000+0x1b2d85) [0x5595596e2d85]
[ 1006.983] (EE) 2: /lib64/libpthread.so.0 (0x7f6a48b2e000+0x128e0) [0x7f6a48b408e0]
[ 1006.983] (EE) 3: /usr/lib64/xorg/modules/input/libinput_drv.so (0x7f6a440e6000+0xb2a8) [0x7f6a440f12a8]
[ 1006.983] (EE) 4: /usr/bin/X (0x559559530000+0x4c086) [0x55955957c086]
[ 1006.983] (EE) 5: /usr/bin/X (RemoveDevice+0x203) [0x559559580c73]
[ 1006.983] (EE) 6: /usr/bin/X (DeleteInputDeviceRequest+0x33) [0x5595595d36d3]
[ 1006.983] (EE) 7: /usr/bin/X (0x559559530000+0xb3c9d) [0x5595595e3c9d]
[ 1006.983] (EE) 8: /usr/bin/X (0x559559530000+0xb4f2e) [0x5595595e4f2e]
[ 1006.983] (EE) 9: /usr/bin/X (0x559559530000+0xb5038) [0x5595595e5038]
[ 1006.983] (EE) 10: /usr/bin/X (0x559559530000+0x1b3751) [0x5595596e3751]
[ 1006.983] (EE) 11: /usr/bin/X (WaitForSomething+0x18b) [0x5595596dce6b]
[ 1006.983] (EE) 12: /usr/bin/X (0x559559530000+0x57d93) [0x559559587d93]
[ 1006.983] (EE) 13: /usr/bin/X (0x559559530000+0x5bff4) [0x55955958bff4]
[ 1006.983] (EE) 14: /lib64/libc.so.6 (__libc_start_main+0xea) [0x7f6a48996eda]
[ 1006.983] (EE) 15: /usr/bin/X (_start+0x2a) [0x5595595757aa]
[ 1006.983] (EE)
[ 1006.983] (EE) Segmentation fault at address 0x80
[ 1006.983] (EE)
Fatal server error:
[ 1006.983] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 1006.983] (EE)
[ 1006.983] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1006.983] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 1006.983] (EE)
My xorg.conf:
# nvidia-settings: version 275.09.07 (buildmeister@swio-display-x86-rhel47-03.nvidia.com) Wed Jun 8 14:38:19 PDT 2011
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/corefonts/"
FontPath "/usr/share/fonts/cyrillic/"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/terminus/"
FontPath "/usr/share/fonts/intlfonts/"
FontPath "/usr/share/fonts/urw-fonts/"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Hitachi CM771"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 550 Ti"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "InputClass"
Identifier "evdev pointer"
MatchIsPointer "on"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev pointer by device"
MatchDevicePath "/dev/input/mice"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "Keboard"
MatchIsKeyboard "on"
Driver "libinput"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,numpad:microsoft,compose:lwin"
EndSection