This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AW: accept() failed message on kde 1.1.2 ??


>
> > > Actually, that is probably Corinna's code.  It sounds like
> > some kind of
> > > problem with reusability of the socket.
> >
> > The only change we had in the accept() code between 1.1.8 and
> > 1.3.2 was Egor's patch to support secure connections on AF_UNIX
> > sockets. Is it possible that the security check fails under
> > some circumstances here?
> >
>
> There is no security check in X11.
>
>
> > However, a strace containing a failing accept() would perhaps help.
>
> Ralf, should be able to send a strace directly to you.
> Ralf please do not post strace files to the list :-)
>
I will try, but the difficulty is that on stracing the error does not
occure. I will analyze it in more detail ...

an example

----------------------------------------------------------------------------
---------
Habacker@BRAMSCHE /usr/local/kde1/bin
$ kcmkpanel -init
kcmkpanel: Fatal IO error: client killed
_XSERVTransSocketUNIXAccept: accept() failed

----------------------------------------------------------------------------
---------
... starting again
Habacker@BRAMSCHE /usr/local/kde1/bin
$ kcmkpanel -init
_XSERVTransSocketUNIXAccept: accept() failed
kcmkpanel: Fatal IO error: client killed

----------------------------------------------------------------------------
---------
... starting with strace -> xserver restart
Habacker@BRAMSCHE /usr/local/kde1/bin
$ strace -o x kcmkpanel -init
winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - DirectDraw4 installed
winDetectSupportedEngines () - Returning, supported engines 0000000f
winSetEngine () - Using user's preference: 4
winCreateBoundingWindowWindowed () - WindowClient width 1024 height 768
winInitVisualsShadowDDNL () - Masks 0000f800 000007e0 0000001f RGB 6 d 16
winInitVisualsShadowDDNL () - Returning
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy


----------------------------------------------------------------------------
---------
... starting with gdb  -> xserver restart
Habacker@BRAMSCHE /usr/local/kde1/bin
$ gdb -nw kcmkpanel
GNU gdb 5.0 (20010428-1)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) set args -init
(gdb) r
Starting program: /usr/local/kde1/bin/kcmkpanel.exe -init

Program exited normally.
(gdb) winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - DirectDraw4 installed
winDetectSupportedEngines () - Returning, supported engines 0000000f
winSetEngine () - Using user's preference: 4
winCreateBoundingWindowWindowed () - WindowClient width 1024 height 768
winInitVisualsShadowDDNL () - Masks 0000f800 000007e0 0000001f RGB 6 d 16
winInitVisualsShadowDDNL () - Returning
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
----------------------------------------------------------------------------
---

As you can see the socket error only occurs when !straceing && !debugging

Perhaps Suhaib can answer me a question:

I have started an app and it seems that the xserver has been restarted. Can
you tell me which conditions
could be for restarting

X -screen 0 1024x768x16 -whitepixel 255 -blackpixel 0 -engine 4 -ac

./kcminput.exe
winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - DirectDraw4 installed
winDetectSupportedEngines () - Returning, supported engines 0000000f
winSetEngine () - Using user's preference: 4
winCreateBoundingWindowWindowed () - WindowClient width 1024 height 768
winInitVisualsShadowDDNL () - Masks 0000f800 000007e0 0000001f RGB 6 d 16
winInitVisualsShadowDDNL () - Returning
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy

Done anyone have an idea ?

Regards
Ralf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]