Bug#569337: xserver-xorg-input-tslib: "xset q" crashes X server
(Sorry for the third mail, for some reason my second mail did not show
up on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569337 )
Unfortunately this seems to still be a problem with 0.0.6-5 if the
steps to reproduce are changed just slightly (you need to touch the
screen between xset invocations).
Steps to reproduce:
1) sudo gdb X and type "run"
2) xclock &
3) xset q
4) touch the screen
5) xset q
Expected results:
3 & 5) X does not crash
Actual results:
3) X does not crash
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
XKB indicators:
00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off
03: Shift Lock: off 04: Group 2: off 05: Mouse Keys: off
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffdfffdfe5ef
ffffffffffffffff
ffffffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 600 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 65535
Font Path:
/usr/share/fonts/X11/misc,built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Enabled
Monitor is On
5) X crashes:
(gdb) run
Starting program: /usr/bin/X
[Thread debugging using libthread_db enabled]
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-trunk-iop32x armv5tel Debian
Current Operating System: Linux ginger 2.6.29-GTA02_lindi2-andy-tracking-mokodev #1 Wed Jul 7 09:11:01 EEST 2010 armv4tl
Kernel command line: loglevel=4 console=tty0 console=ttySAC2,115200 init=/sbin/init ro mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(qi),0x00040000(depr-ub-env),0x00800000(kernel),0x000a0000(depr),0x00040000(identity-ext2),0x0f6a0000(rootfs) g_ether.host_addr=00:1F:11:01:1F:6B g_ether.dev_addr=00:1F:11:01:1F:6B root=/dev/mmcblk0p1 rootdelay=1 rootdelay=1 panic=20 mem=127M root=/dev/mmcblk0p2 loglevel=8
Build Date: 05 June 2010 05:17:19PM
xorg-server 2:1.7.7-2 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 8 09:49:07 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
[tcsetpgrp failed in terminal_inferior: Operation not permitted]
(EE) Failed to load module "kbd" (module does not exist, 0)
SELinux: Disabled on system, not enabling in X server
(EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
(EE) GLX: could not load software renderer
xf86TslibControlProc
xf86TslibControlProc
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No input driver matching `kbd'
Program received signal SIGSEGV, Segmentation fault.
ProcGetPointerControl (client=0x34dc40) at ../../dix/devices.c:2136
2136 ../../dix/devices.c: No such file or directory.
in ../../dix/devices.c
(gdb) thread apply all bt full
Thread 1 (Thread 0x40021970 (LWP 4371)):
#0 ProcGetPointerControl (client=0x34dc40) at ../../dix/devices.c:2136
ptr = <value optimized out>
rep = {type = 1 '\001', pad1 = 12 '\f', sequenceNumber = 8, length = 0, accelNumerator = 56384, accelDenominator = 52, threshold = 0, pad2 = 0,
pad3 = 1698864, pad4 = 1698864, pad5 = 3464256, pad6 = 0}
rc = 0
#1 0x000333c0 in Dispatch () at ../../dix/dispatch.c:439
result = 0
client = 0x34dc40
nready = <value optimized out>
start_tick = 40
#2 0x00027950 in main (argc=1, argv=0xbe8a28a4, envp=<value optimized out>) at ../../dix/main.c:285
i = 1
alwaysCheckForInput = {0, 1}
(gdb) x/5i $pc
=> 0x29680 <ProcGetPointerControl+104>: ldrh r2, [r7, #12]
0x29684 <ProcGetPointerControl+108>: ldr r3, [r5, #16]
0x29688 <ProcGetPointerControl+112>: strh r2, [sp, #12]
0x2968c <ProcGetPointerControl+116>: cmp r3, #0
0x29690 <ProcGetPointerControl+120>: ldrh r3, [r7, #4]
(gdb) info register
r0 0x0 0
r1 0xbe8a25e4 3196724708
r2 0x8 8
r3 0x19ec30 1698864
r4 0x19ec30 1698864
r5 0x34dc40 3464256
r6 0x1 1
r7 0x0 0
r8 0x0 0
r9 0x1b3018 1781784
r10 0x34dc40 3464256
r11 0x28 40
r12 0xbe8a2620 3196724768
sp 0xbe8a2620 0xbe8a2620
lr 0x29668 169576
pc 0x29680 0x29680 <ProcGetPointerControl+104>
fps 0x1001000 16781312
cpsr 0x60000010 1610612752
More info:
1)
$ COLUMN=80 dpkg -l | grep xser
ii x11-xserver-utils 7.5+1 X server utilities
ii xserver-common 2:1.7.7-2 common files used by various X servers
ii xserver-xorg 1:7.5+6 the X.Org X server
ii xserver-xorg-core 2:1.7.7-2 Xorg X server - core server
ii xserver-xorg-core-dbg 2:1.7.7-2 Xorg - the X.Org X server (debugging symbols
ii xserver-xorg-dev 2:1.7.7-2 Xorg X server - development files
ii xserver-xorg-input-evdev 1:2.3.2-6 X.Org X server -- evdev input driver
ii xserver-xorg-input-synaptics 1.2.2-2 Synaptics TouchPad driver for X.Org server
ii xserver-xorg-input-tslib 0.0.6-5 tslib touchscreen driver for X.Org/XFree86 s
ii xserver-xorg-video-fbdev 1:0.4.2-2 X.Org X server -- fbdev display driver
2) This seems to also occur with 0.0.6-4
3) To test 0.0.6-3 I downgraded xserver-xorg-core from 2:1.7.7-2 to
2:1.7.4-2. The problem does not occur!
=> this broke between -3 and -4.
Reply to: