Bug 40198 - Intermittant segfault in PlayReleasedEvents
Summary: Intermittant segfault in PlayReleasedEvents
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.6 (2010.12)
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 06:20 UTC by elliot.kendall
Modified: 2012-01-02 20:39 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description elliot.kendall 2011-08-18 06:20:27 UTC
Since updating from 7.5 to 7.6 (Ubuntu 10.10 -> 11.04), X crashes occasionally, maybe 1-3 times per day. According to the backtrace (see below), the crash is in PlayReleasedEvents in dix/events.c.

I've made a variety of changes hoping to avoid the problem, so far without success. These include: changing display drivers, switching to an older Linux kernel that I used before the problem started, trying new Xorg packages from the XorgOnTheEdge repository, switching video cards (ATI and NVIDIA), and even switching architectures from i386 to x86_64.

The crash seems to be related to keyboard input, since it only happens when I'm actively typing - never when I'm not at the system, or just using the mouse.

Here is the backtrace:

#0 0x000000000043d7e5 in PlayReleasedEvents () at ../../dix/events.c:1188
        prev = <value optimized out>
        qe = 0x3096340
        dev = <value optimized out>
        pDev = <value optimized out>
#1 ComputeFreezes () at ../../dix/events.c:1385
        replayDev = <value optimized out>
        w = <value optimized out>
        grab = <value optimized out>
        dev = <value optimized out>
#2 0x000000000043df1b in ProcAllowEvents (client=0x2965480) at ../../dix/events.c:1846
        time = {months = 0, milliseconds = 18270373}
        mouse = 0x2544b90
        keybd = <value optimized out>
        stuff = 0x2f426a0
#3 0x000000000042e2a9 in Dispatch () at ../../dix/dispatch.c:431
        clientReady = 0x26e75d0
        result = <value optimized out>
        client = 0x2965480
        nready = 0
        icheck = 0x7f1410
        start_tick = 5560
#4 0x0000000000421a7e in main (argc=1, argv=<value optimized out>, envp=<value optimized out>) at ../../dix/main.c:287
        i = <value optimized out>
        alwaysCheckForInput = {0, 1}
Comment 1 elliot.kendall 2011-11-09 06:23:14 UTC
This seems to be tied to hotkeys in the Sawfish WM. See:

https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/787207
Comment 2 Peter Hutterer 2011-12-18 21:51:45 UTC
Note that the git X server has some changes in PlayReleasedEvents so this bug may have been accidentally fixed anyway.

Also, have you been able to reproduce this with the vanilla X server? Ubuntu has a number of patches and a patch that Chase sent me a while ago that looks awfully similar to the one below [1] had at least one bug that caused crashes.

[1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/xorg-server/precise/view/head:/debian/patches/500_xi2.1.patch
Comment 3 Jeremy Huddleston Sequoia 2012-01-02 20:39:45 UTC
Closing as "worksforme" ... please reopen if you can reproduce this with current xserver git master.


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.