delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/06/15/04:56:50

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT saght DOT tessag DOT com>
To: "Cygwin-Apps" <cygwin-apps AT cygwin DOT com>,
"Cygwin-Xfree" <cygwin-xfree AT sources DOT redhat DOT com>
Cc: "Suhaib Siddiqi" <ssiddiqi AT inspirepharm DOT com>
Subject: AW: accept() failed message on kde 1.1.2 ??
Date: Fri, 15 Jun 2001 10:47:55 +0200
Message-ID: <000001c0f577$dec63960$6e032bb7@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-reply-to: <7F2B9185F0196F44B59990759B91B1C2505D49@ins-exch.inspirepharm.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal

>
> > > 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 AT BRAMSCHE /usr/local/kde1/bin
$ kcmkpanel -init
kcmkpanel: Fatal IO error: client killed
_XSERVTransSocketUNIXAccept: accept() failed

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

----------------------------------------------------------------------------
---------
... starting with strace -> xserver restart
Habacker AT 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 AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019