Bug 85023

Summary: WaitForSomething(): select: Invalid argument
Product: xorg Reporter: Patrick Hemmer <freedesktop>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium    
Version: 7.7 (2012.06)   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg log
none
X11 packet capture none

Description Patrick Hemmer 2014-10-14 23:05:01 UTC
Created attachment 107844 [details]
Xorg log

My X server is frequently crashing with the error "WaitForSomething():
select: Invalid argument". There has been a previous report on this
issue in which the suggested action was to upgrade the synaptics driver
(http://lists.x.org/pipermail/xorg/2013-May/055680.html). I am already
running a significantly newer driver than the user in that report was,
as I'm using 1.7.4.

The crash happens frequently, and mostly random. However I am able to
reproduce it on demand by launching the HipChat client. As soon as the
app finishes loading and goes to display the main window, X crashes with
the mentioned error.

I have attached the Xorg.0.log from a crashed session.

I am using:
xorg-server 1.15.0
xf86-input-evdev 2.8.2
xf86-input-synaptics 1.7.4
xf86-video-intel 2.21.15
kernel 3.14.14
Comment 1 Patrick Hemmer 2014-10-14 23:06:46 UTC
Created attachment 107845 [details]
X11 packet capture

This attachment is a packet capture of HipChat talking to the X server at the time of the crash.
Comment 2 Patrick Hemmer 2014-10-15 02:26:25 UTC
Got a core dump of the process. Looks like it's dying because the timeout being passed to `select()` is negative.

    gdb> bt
    #0  0x00007f9e164e17d5 in raise () from /lib64/libc.so.6
    #1  0x00007f9e164e2c58 in abort () from /lib64/libc.so.6
    #2  0x0000000000658379 in OsAbort ()
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/os/utils.c:1324
    #3  0x0000000000661a5d in AbortServer ()
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/os/log.c:773
    #4  0x0000000000661f19 in FatalError (f=0x68bb40 "WaitForSomething(): select: %s\n")
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/os/log.c:911
    #5  0x000000000064b055 in WaitForSomething (pClientsReady=0x28702d0)
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/os/WaitFor.c:240
    #6  0x0000000000439a69 in Dispatch ()
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/dix/dispatch.c:362
    #7  0x0000000000449052 in dix_main (argc=9, argv=0x7fff32f67b38, envp=0x7fff32f67b88)
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/dix/main.c:294
    #8  0x0000000000428566 in main (argc=9, argv=0x7fff32f67b38, envp=0x7fff32f67b88)
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/dix/stubmain.c:34

    gdb> frame 5
    #5  0x000000000064b055 in WaitForSomething (pClientsReady=0x28702d0)
        at /stmp/portage/x11-base/xorg-server-1.15.0/work/xorg-server-1.15.0/os/WaitFor.c:240
    240	                    FatalError("WaitForSomething(): select: %s\n",
    
    gdb> info locals
    i = -1
    waittime = {tv_sec = 0, tv_usec = -1000}
    wt = 0x7fff32f678f0
    timeout = 995502960
    clientsReadable = {fds_bits = {0 <repeats 16 times>}}
    clientsWritable = {fds_bits = {44093408, 44669824, 140734048401728, 32, 42681776, 0, 0, 9357480, 
        42695344, 4299326544, 0, 140734048401728, 43854944, 193282885800, 42895152, 32}}
    curclient = 6629778
    selecterr = 22
    nready = 0
    devicesReadable = {fds_bits = {137448269120, 6636748, 137439242001, 140734048401680, 44093408, 
        44669824, 0, 6676162, 42695344, 4294967296, 140734048401392, 43854944, 137481648816, 6636748, 
        137438953472, 140734048401728}}
    now = 118002955
    someReady = 0
Comment 3 GitLab Migration User 2018-12-13 22:30:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/464.

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.