Cygwin/X XWinrc menu no longer launches after recent updates

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Cygwin/X XWinrc menu no longer launches after recent updates

Roland Roberts
I only noticed this in the last week or so, and assumed I'd messed up
something with Windows 10 permission, which is still a possibility. My
first attempt to "fix" this was to reinstall pretty much everything in
Cygwin that was part of X11 or Base. And that seemed to fix
things...until I rebooted Windows.

There are no errors in the logs, not stackdumps, nothign to indicate
anything is not working. The X log is below. You'll notice it says

     "executing '/bin/mintty', pid 3152"

but that window never opens. If I start a shell directly via my desktop
shortcut, which has this as it's target

     C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -

I can see that there is no PID 3152.

My .XWinrc is this:

---- .XWinrc ----
menu root {
  "Cygwin Terminal" exec "/bin/mintty -e /bin/bash"
  Emacs exec "/bin/emacs"
  xterm exec "/bin/xterm"
  notepad exec notepad
  SEPARATOR
  FAQ            EXEC "cygstart
http://x.cygwin.com/docs/faq/cygwin-x-faq.html"
  "User's Guide" EXEC "cygstart
http://x.cygwin.com/docs/ug/cygwin-x-ug.html"
  SEPARATOR
  "View logfile" EXEC "xterm -title $XWINLOGFILE -e less +F $XWINLOGFILE"
  SEPARATOR
  "Reload .XWinrc"        RELOAD
  SEParATOR
}

RootMenu root
----

and my .startxwinrc is

---- .startxwinrc ----
if [ -f $HOME/.Xdefaults ]; then
     xrdb -merge $HOME/.Xdefaults &
fi
sleep infinity
----

I'm lost on what might be causing this. One thing that I *did* change,
though that was over a month ago, was to add the Cygwin sshd service. On
the off-chance that that was the issue, I disabled it and rebooted to
get a clean start. No joy, I still can't launch from the .XWinrc menu.
The log entry makes it clear that it is seen and is trying.

Oh, and from a mintty shell, if I set DISPLAY=:0.0 when X is running, I
*can* launch other X apps.

2041 roland> cat XWin.0.log
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.5.0
OS: CYGWIN_NT-10.0-18363 flamsteed 3.1.4-340.x86_64 2020-02-19 08:49 UTC
x86_64
OS: Windows 10  [Windows NT 10.0 build 18363] (Win64)
Package: version 1.20.5-3 built 2019-09-06

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth
  /home/roland/.serverauth.2909

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 2560 h 1440
winInitializeScreenDefaults - native DPI x 96 y 96
[   734.546] (II) xorg.conf is not supported
[   734.546] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for
more information
[   734.546] LoadPreferences: Loading /home/roland/.XWinrc
[   734.562] winDetectSupportedEngines - RemoteSession: no
[   734.625] winDetectSupportedEngines - DirectDraw4 installed, allowing
ShadowDDNL
[   734.625] winDetectSupportedEngines - Returning, supported engines
00000005
[   734.625] winSetEngine - Multi Window or Rootless => ShadowGDI
[   734.625] winScreenInit - Using Windows display depth of 32 bits per
pixel
[   734.625] winAllocateFBShadowGDI - Creating DIB with width: 3760
height: 1920 depth: 32
[   734.625] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[   734.625] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff
BPRGB 8 d 24 bpp 32
[   734.625] MIT-SHM extension disabled due to lack of kernel support
[   734.625] XFree86-Bigfont extension local-client optimization
disabled due to lack of shared memory support in the kernel
[   734.640] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
[   735.171] (II) AIGLX: Testing pixelFormatIndex 5
[   735.265] GL_VERSION:     4.6.0 NVIDIA 425.91
[   735.265] GL_VENDOR:      NVIDIA Corporation
[   735.265] GL_RENDERER:    Quadro K1000M/PCIe/SSE2
[   735.265] (II) GLX: enabled GLX_SGI_make_current_read
[   735.265] (II) GLX: enabled GLX_SGI_swap_control
[   735.265] (II) GLX: enabled GLX_MESA_swap_control
[   735.265] (II) GLX: enabled GLX_SGIX_pbuffer
[   735.265] (II) GLX: enabled GLX_ARB_multisample
[   735.265] (II) GLX: enabled GLX_SGIS_multisample
[   735.265] (II) GLX: enabled GLX_ARB_fbconfig_float
[   735.265] (II) GLX: enabled GLX_EXT_fbconfig_packed_float
[   735.265] (II) GLX: enabled GLX_ARB_create_context
[   735.265] (II) GLX: enabled GLX_ARB_create_context_profile
[   735.265] (II) GLX: enabled GLX_ARB_create_context_robustness
[   735.265] (II) GLX: enabled GLX_EXT_create_context_es2_profile
[   735.265] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   735.265] (II) 1182 pixel formats reported by
wglGetPixelFormatAttribivARB
[   735.296] (II) 1146 fbConfigs
[   735.296] (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel
type, 36 unaccelerated
[   735.296] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
[   735.562] winPointerWarpCursor - Discarding first warp: 1880 960
[   735.562] (--) 5 mouse buttons found
[   735.562] (--) Setting autorepeat to delay=500, rate=31
[   735.562] (--) Windows keyboard layout: "00000409" (00000409) "US",
type 7
[   735.562] (--) Found matching XKB configuration "English (USA)"
[   735.562] (--) Model = "pc105" Layout = "us" Variant = "none" Options
= "none"
[   735.562] Rules = "base" Model = "pc105" Layout = "us" Variant =
"none" Options = "none"
[   735.562] [   735.562] winInitMultiWindowWM - DISPLAY=:0.0
winMultiWindowXMsgProc - DISPLAY=:0.0
[   735.625] winInitMultiWindowWM - xcb_connect () returned and
successfully opened the display.
[   735.625] winProcEstablishConnection - winInitClipboard returned.
[   735.625] winClipboardThreadProc - DISPLAY=:0.0
[   735.625] winMultiWindowXMsgProc - xcb_connect() returned and
successfully opened the display.
[   735.625] winClipboardProc - xcb_connect () returned and successfully
opened the display.
[   735.625] Using Composite redirection
[   795.156] executing '/bin/mintty', pid 3152
[  1287.562] LoadPreferences: Loading /home/roland/.XWinrc
[  1287.562] SetupSysMenu: GetSystemMenu() failed for HWND 0x5093c
[  1287.562] SetupSysMenu: GetSystemMenu() failed for HWND 0x507be


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Takashi Yano
On Tue, 3 Mar 2020 00:14:12 -0500
Roland Roberts wrote:

> I only noticed this in the last week or so, and assumed I'd messed up
> something with Windows 10 permission, which is still a possibility. My
> first attempt to "fix" this was to reinstall pretty much everything in
> Cygwin that was part of X11 or Base. And that seemed to fix
> things...until I rebooted Windows.
>
> There are no errors in the logs, not stackdumps, nothign to indicate
> anything is not working. The X log is below. You'll notice it says
>
>      "executing '/bin/mintty', pid 3152"
>
> but that window never opens. If I start a shell directly via my desktop
> shortcut, which has this as it's target
>
>      C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
>
> I can see that there is no PID 3152.

Does reverting cygwin1.dll to 3.1.2 help?

--
Takashi Yano <[hidden email]>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Henry S. Thompson
Takashi Yano writes:

> Does reverting cygwin1.dll to 3.1.2 help?

In my case, yes it does.  The resulting view from pstree is

`-sh,1614 /usr/bin/startxwin
     `-xinit,1645 /home/ht/.startxwinrc -- /usr/bin/XWin :0 -multiwindow ...
         |-XWin,1646 :0 -multiwindow -auth /home/ht/.serverauth.1614
         `-sh,1652 /home/ht/.Xclients
             |-ssh-agent,1664 /bin/env TMPDIR=/tmp /home/ht/.Xclients
             `-xterm,1665 -geometry +0+60 -ls
                 `-bash,1666
                     `-sh,1684 /home/ht/bin/goE -Y
                         `-ssh,1685 ecclerig.inf.ed.ac.uk -Y

Compare this to the 3.1.4 result:

`-sh,2027 /usr/bin/startxwin
    `-xinit,2058 /home/ht/.startxwinrc -- /usr/bin/XWin :0 -multiwindow -auth ...
        |-XWin,2059 :0 -multiwindow -auth /home/ht/.serverauth.2027
        `-sh,2065

ht
--
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: [hidden email]
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Takashi Yano
On Tue, 03 Mar 2020 12:18:44 +0000
"Henry S. Thompson" wrote:

> Takashi Yano writes:
>
> > Does reverting cygwin1.dll to 3.1.2 help?
>
> In my case, yes it does.  The resulting view from pstree is
>
> `-sh,1614 /usr/bin/startxwin
>      `-xinit,1645 /home/ht/.startxwinrc -- /usr/bin/XWin :0 -multiwindow ...
>          |-XWin,1646 :0 -multiwindow -auth /home/ht/.serverauth.1614
>          `-sh,1652 /home/ht/.Xclients
>              |-ssh-agent,1664 /bin/env TMPDIR=/tmp /home/ht/.Xclients
>              `-xterm,1665 -geometry +0+60 -ls
>                  `-bash,1666
>                      `-sh,1684 /home/ht/bin/goE -Y
>                          `-ssh,1685 ecclerig.inf.ed.ac.uk -Y
>
> Compare this to the 3.1.4 result:
>
> `-sh,2027 /usr/bin/startxwin
>     `-xinit,2058 /home/ht/.startxwinrc -- /usr/bin/XWin :0 -multiwindow -auth ...
>         |-XWin,2059 :0 -multiwindow -auth /home/ht/.serverauth.2027
>         `-sh,2065

Then, this may be caused by the same bug as
https://www.cygwin.com/ml/cygwin/2020-02/msg00197.html

This bug was already fixed in current git head.

--
Takashi Yano <[hidden email]>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Henry S. Thompson
Takashi Yano writes:

> On Tue, 03 Mar 2020 12:18:44 +0000
> "Henry S. Thompson" wrote:
>> Takashi Yano writes:
>>
>> > Does reverting cygwin1.dll to 3.1.2 help?
>>
>> In my case, yes it does.  The resulting view from pstree is
>>
>> `-sh,1614 /usr/bin/startxwin
>>      `-xinit,1645 /home/ht/.startxwinrc -- /usr/bin/XWin :0 -multiwindow ...
>>          |-XWin,1646 :0 -multiwindow -auth /home/ht/.serverauth.1614
>>          `-sh,1652 /home/ht/.Xclients
>>              |-ssh-agent,1664 /bin/env TMPDIR=/tmp /home/ht/.Xclients
>>              `-xterm,1665 -geometry +0+60 -ls
>>                  `-bash,1666
>>                      `-sh,1684 /home/ht/bin/goE -Y
>>                          `-ssh,1685 ecclerig.inf.ed.ac.uk -Y
>>
>> Compare this to the 3.1.4 result:
>>
>> `-sh,2027 /usr/bin/startxwin
>>     `-xinit,2058 /home/ht/.startxwinrc -- /usr/bin/XWin :0 -multiwindow -auth ...
>>         |-XWin,2059 :0 -multiwindow -auth /home/ht/.serverauth.2027
>>         `-sh,2065
>
> Then, this may be caused by the same bug as
> https://www.cygwin.com/ml/cygwin/2020-02/msg00197.html
>
> This bug was already fixed in current git head.

Current git head for Cygwin?  Or mintty?

Because I have another box, and now see that the bug does _not_ occur
with Cygwin 3.1.4 and mintty 3.1.0 -- the above error labelled 3.1.4 is
with Cygwin 3.1.4 _and_ mintty 3.1.4.

ht
--
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: [hidden email]
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Takashi Yano
On Tue, 03 Mar 2020 12:40:17 +0000
"Henry S. Thompson" wrote:
> Takashi Yano writes:
> > This bug was already fixed in current git head.
>
> Current git head for Cygwin?  Or mintty?

I mean cygwin.

> Because I have another box, and now see that the bug does _not_ occur
> with Cygwin 3.1.4 and mintty 3.1.0 -- the above error labelled 3.1.4 is
> with Cygwin 3.1.4 _and_ mintty 3.1.4.

In my environment, your problem does not occur even with cygwin
3.1.4 and mintty 3.1.4. So I am not sure what is the real cause.

--
Takashi Yano <[hidden email]>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Henry S. Thompson
Takashi Yano writes:

> On Tue, 03 Mar 2020 12:40:17 +0000
> "Henry S. Thompson" wrote:
>> Takashi Yano writes:
>> > This bug was already fixed in current git head.
>>
>> Current git head for Cygwin?  Or mintty?
>
> I mean cygwin.

OK, this is now getting very weird.  As at least one other person
reported, the problem is intermittent, with both my systems, both on
3.1.4 Cygwin and 3.1.4 mintty.

Two further shots in the dark:

 1) I tried to run cygcheck -s while there was an XWin + sh hang, as
    previously reported.  It hung also.  Process Explorer shows

  bash.exe
     bash.exe
        cygcheck.exe
           id.exe

    I can use strace to attach to it, and it is indeed
    [cygdir]\bin\id.exe, showing lots of dll loads, then a thread being
    created and exiting happily, last two lines are

     thread nnn created
     _cygtls::remove: wait 0

  Mystery

  So, try connecting strace to the hung sh process...

  [Nothing :-[
 
  Connecting to it with gdb shows various threads, but ^C doesn't
  achieve anything.

 2) There are some hints that cygrunsrv/cygserver might be implicated.
    Two cygchecks on one of my machines (which did run to completion)
    differ in that the one taken while XWin had started successfully
    differed from the other in that all my Cygwin services (cron,
    cygserver, sshd, and exim) were stopped,
    In the other, a case of XWin hang, they were all running.

    On my other system after several fails in a row, I stopped all my
    services and XWin launched successfully.

Grasping at straws here, but I have one machine sitting in a hung state,
and other debugging ideas welcome...

ht
--
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: [hidden email]
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Brian Inglis-2
On 2020-03-03 10:21, Henry S. Thompson wrote:

> Takashi Yano writes:
>
>> On Tue, 03 Mar 2020 12:40:17 +0000
>> "Henry S. Thompson" wrote:
>>> Takashi Yano writes:
>>>> This bug was already fixed in current git head.
>>>
>>> Current git head for Cygwin?  Or mintty?
>>
>> I mean cygwin.
>
> OK, this is now getting very weird.  As at least one other person
> reported, the problem is intermittent, with both my systems, both on
> 3.1.4 Cygwin and 3.1.4 mintty.
>
> Two further shots in the dark:
>
>  1) I tried to run cygcheck -s while there was an XWin + sh hang, as
>     previously reported.  It hung also.  Process Explorer shows
>
>   bash.exe
>      bash.exe
>         cygcheck.exe
>            id.exe
>
>     I can use strace to attach to it, and it is indeed
>     [cygdir]\bin\id.exe, showing lots of dll loads, then a thread being
>     created and exiting happily, last two lines are
>
>      thread nnn created
>      _cygtls::remove: wait 0
>
>   Mystery
>
>   So, try connecting strace to the hung sh process...
>
>   [Nothing :-[
>  
>   Connecting to it with gdb shows various threads, but ^C doesn't
>   achieve anything.
>
>  2) There are some hints that cygrunsrv/cygserver might be implicated.
>     Two cygchecks on one of my machines (which did run to completion)
>     differ in that the one taken while XWin had started successfully
>     differed from the other in that all my Cygwin services (cron,
>     cygserver, sshd, and exim) were stopped,
>     In the other, a case of XWin hang, they were all running.
>
>     On my other system after several fails in a row, I stopped all my
>     services and XWin launched successfully.
>
> Grasping at straws here, but I have one machine sitting in a hung state,
> and other debugging ideas welcome...

XWin startup takes different paths depending on whether you have sshd running or
not. I also have cygserver defined with max supported threads, as I have cron
jobs which need them. I can often get multiwindow X to launch from mintty with
sshd disabled, after deleting:

$ llgo -AR /tmp/.X* /tmp/dbus-* /tmp/fam-$USER/fam-
-r--r--r--  1 11 Mar  2 00:20 /tmp/.X0-lock
srwxrwxrwx  1  0 Mar  2 14:27 /tmp/dbus-5P1mCxSjEA=
srwxrwxrwx  1  0 Mar  2 00:20 /tmp/dbus-JEIRS3qks6=
srwxrwxrwx  1  0 Mar  2 12:34 /tmp/dbus-K5HWAHFshg=
srwxrwxrwx  1  0 Mar  3 10:34 /tmp/dbus-pvf4OTaHDu=
srwxrwxrwx  1  0 Mar  2 08:47 /tmp/dbus-QdAWXiPC8F=
srwxrwxrwx  1  0 Mar  2 14:01 /tmp/dbus-TFjEzRHU4c=
srwxrwxrwx  1  0 Mar  2 14:26 /tmp/dbus-VsXRfGI5GT=
srwxrwxrwx  1  0 Mar  2 12:37 /tmp/dbus-Zo1S6Q5MSG=
srw-------  1  0 Mar  2 00:20 /tmp/fam-$USER/fam-=

/tmp/.X11-unix:
total 1.0K
srw-rw-rw- 1 0 Mar  2 00:20 X0=
-rw------- 1 0 Mar  2 00:20 X0.lock

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Brian Inglis
In reply to this post by Henry S. Thompson
On 2020-03-03 10:21, Henry S. Thompson wrote:

> Takashi Yano writes:
>
>> On Tue, 03 Mar 2020 12:40:17 +0000
>> "Henry S. Thompson" wrote:
>>> Takashi Yano writes:
>>>> This bug was already fixed in current git head.
>>>
>>> Current git head for Cygwin?  Or mintty?
>>
>> I mean cygwin.
>
> OK, this is now getting very weird.  As at least one other person
> reported, the problem is intermittent, with both my systems, both on
> 3.1.4 Cygwin and 3.1.4 mintty.
>
> Two further shots in the dark:
>
>  1) I tried to run cygcheck -s while there was an XWin + sh hang, as
>     previously reported.  It hung also.  Process Explorer shows
>
>   bash.exe
>      bash.exe
>         cygcheck.exe
>            id.exe
>
>     I can use strace to attach to it, and it is indeed
>     [cygdir]\bin\id.exe, showing lots of dll loads, then a thread being
>     created and exiting happily, last two lines are
>
>      thread nnn created
>      _cygtls::remove: wait 0
>
>   Mystery
>
>   So, try connecting strace to the hung sh process...
>
>   [Nothing :-[
>  
>   Connecting to it with gdb shows various threads, but ^C doesn't
>   achieve anything.
>
>  2) There are some hints that cygrunsrv/cygserver might be implicated.
>     Two cygchecks on one of my machines (which did run to completion)
>     differ in that the one taken while XWin had started successfully
>     differed from the other in that all my Cygwin services (cron,
>     cygserver, sshd, and exim) were stopped,
>     In the other, a case of XWin hang, they were all running.
>
>     On my other system after several fails in a row, I stopped all my
>     services and XWin launched successfully.
>
> Grasping at straws here, but I have one machine sitting in a hung state,
> and other debugging ideas welcome...

XWin startup takes different paths depending on whether you have sshd running or
not. I also have cygserver defined with max supported threads, as I have cron
jobs which need them. I can often get multiwindow X to launch from mintty with
sshd disabled, after deleting:

$ llgo -AR /tmp/.X* /tmp/dbus-* /tmp/fam-$USER/fam-
-r--r--r--  1 11 Mar  2 00:20 /tmp/.X0-lock
srwxrwxrwx  1  0 Mar  2 14:27 /tmp/dbus-5P1mCxSjEA=
srwxrwxrwx  1  0 Mar  2 00:20 /tmp/dbus-JEIRS3qks6=
srwxrwxrwx  1  0 Mar  2 12:34 /tmp/dbus-K5HWAHFshg=
srwxrwxrwx  1  0 Mar  3 10:34 /tmp/dbus-pvf4OTaHDu=
srwxrwxrwx  1  0 Mar  2 08:47 /tmp/dbus-QdAWXiPC8F=
srwxrwxrwx  1  0 Mar  2 14:01 /tmp/dbus-TFjEzRHU4c=
srwxrwxrwx  1  0 Mar  2 14:26 /tmp/dbus-VsXRfGI5GT=
srwxrwxrwx  1  0 Mar  2 12:37 /tmp/dbus-Zo1S6Q5MSG=
srw-------  1  0 Mar  2 00:20 /tmp/fam-$USER/fam-=

/tmp/.X11-unix:
total 1.0K
srw-rw-rw- 1 0 Mar  2 00:20 X0=
-rw------- 1 0 Mar  2 00:20 X0.lock

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Henry S. Thompson
In reply to this post by Henry S. Thompson
cygcheck output attached, just in case...

Per previous message, had to interrupt id, which was hanging, which
produced

  garbled output from "id" command - no uid= found

while cygcheck carried on...
and then hung with Process Explorer showing

  bash.exe
     bash.exe
        cygcheck.exe
           cmd.exe
             cygrunsrv.exe

while pstree -Aap shows

  cygrunsrv.2209 --version

Interrupted _that_ and cygcheck finished, without showing the running
services as it normally would.

/var/log/xwin/XWin.0.log also attached in winning and losing versions,
output from

  > diff -bw <(cut -f 3- -d ' ' /var/log/xwin/XWin.0.log_winning) <(cut -f 3-  -d ' ' /var/log/xwin/XWin.0.log_losing)

may provide some help?

ht


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



--
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: [hidden email]
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

notWorking_XWin_cygcheck.txt (152K) Download Attachment
XWin.0.log_losing (16K) Download Attachment
XWin.0.log_winning (16K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Henry S. Thompson
In reply to this post by Brian Inglis
Brian Inglis writes:

>>  2) There are some hints that cygrunsrv/cygserver might be implicated.
>>     Two cygchecks on one of my machines (which did run to completion)
>>     differ in that the one taken while XWin had started successfully
>>     differed from the other in that all my Cygwin services (cron,
>>     cygserver, sshd, and exim) were stopped,
>>     In the other, a case of XWin hang, they were all running.
>>
>>     On my other system after several fails in a row, I stopped all my
>>     services and XWin launched successfully.
>>
>> Grasping at straws here, but I have one machine sitting in a hung state,
>> and other debugging ideas welcome...
>
> XWin startup takes different paths depending on whether you have sshd
> running or not.

Ah, interesting.

> I also have cygserver defined with max supported threads, as I have
> cron jobs which need them. I can often get multiwindow X to launch
> from mintty with sshd disabled, after deleting:

> $ llgo -AR /tmp/.X* /tmp/dbus-* /tmp/fam-$USER/fam-
> srwxrwxrwx  1  0 Mar  2 08:47 /tmp/dbus-QdAWXiPC8F=
> ...

Just stopping sshd didn't do it, I did eventually have to kill all 4 of
my services (cron, cygserver, exim, sshd).

But, I only did one trial after stopping each one, starting with sshd,
so this isn't definitive...

ht
--
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: [hidden email]
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Roland Roberts
In reply to this post by Takashi Yano
On 3/3/2020 7:59 AM, Takashi Yano wrote:

> On Tue, 03 Mar 2020 12:40:17 +0000
> "Henry S. Thompson" wrote:
>> Takashi Yano writes:
>>> This bug was already fixed in current git head.
>>
>> Current git head for Cygwin?  Or mintty?
>
> I mean cygwin.
>
>> Because I have another box, and now see that the bug does _not_ occur
>> with Cygwin 3.1.4 and mintty 3.1.0 -- the above error labelled 3.1.4 is
>> with Cygwin 3.1.4 _and_ mintty 3.1.4.
>
> In my environment, your problem does not occur even with cygwin
> 3.1.4 and mintty 3.1.4. So I am not sure what is the real cause.

Well, for me it *does* happen with cygwin 3.1.4 and mintty 3.1.4. I
tried rolling back just mintty to 3.1.0 and it still happened. Then I
rolled both of them back and it no longer happens, at least on one of my
systems where I am *not* running sshd. Now to go try the other one....

roland


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Brian Inglis
In reply to this post by Henry S. Thompson
On 2020-03-03 15:02, Henry S. Thompson wrote:

> cygcheck output attached, just in case...
>
> Per previous message, had to interrupt id, which was hanging, which
> produced
>
>   garbled output from "id" command - no uid= found
>
> while cygcheck carried on...
> and then hung with Process Explorer showing
>
>   bash.exe
>      bash.exe
>         cygcheck.exe
>            cmd.exe
>              cygrunsrv.exe

As cygcheck is a Windows msvcrt.dll program, not a Cygwin cygwin1.dll program,
it uses Windows popen which runs commands under $COMSPEC rather than $SHELL, and
that can be affected by {HKLM,HKCU}/Software/Microsoft/Command Processor/
registry entries e.g.:

$ regtool list -v /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Command\
Processor/
DefaultColor (REG_DWORD) = 0x00000000 (0)
EnableExtensions (REG_DWORD) = 0x00000001 (1)
CompletionChar (REG_DWORD) = 0x00000040 (64)
PathCompletionChar (REG_DWORD) = 0x00000040 (64)
$ regtool list -v /proc/registry/HKEY_CURRENT_USER/SOFTWARE/Microsoft/Command\
Processor/
Autorun (REG_EXPAND_SZ) = "@chcp 65001 >nul"
CompletionChar (REG_DWORD) = 0x00000009 (9)
DefaultColor (REG_DWORD) = 0x00000000 (0)
EnableExtensions (REG_DWORD) = 0x00000001 (1)
PathCompletionChar (REG_DWORD) = 0x00000009 (9)

runs chcp 65001 at cmd startup, but could also do much more and different.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Henry S. Thompson
Brian Inglis writes:

> On 2020-03-03 15:02, Henry S. Thompson wrote:
>> cygcheck output attached, just in case...
>>
>> Per previous message, had to interrupt id, which was hanging, which
>> produced
>>
>>   garbled output from "id" command - no uid= found

And yes, I inadvertently left out the 'cmd' line in the previous message.

> ...
> that can be affected by {HKLM,HKCU}/Software/Microsoft/Command Processor/
> registry entries e.g.:
>
> $ regtool list -v /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Command\ Processor
> ...
> $ regtool list -v /proc/registry/HKEY_CURRENT_USER/SOFTWARE/Microsoft/Command\ Processor/
> Autorun (REG_EXPAND_SZ) = "@chcp 65001 >nul"
> ...
> runs chcp 65001 at cmd startup, but could also do much more and different.

Thanks, but mine are the same as yours, except _no_ Autorun in either
case, so I don't _think_ that's a possible source of the problem...

ht
--
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: [hidden email]
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin/X XWinrc menu no longer launches after recent updates

Roland Roberts
In reply to this post by Roland Roberts
On 3/3/2020 8:12 PM, Roland Roberts wrote:

> On 3/3/2020 7:59 AM, Takashi Yano wrote:
>> On Tue, 03 Mar 2020 12:40:17 +0000
>> "Henry S. Thompson" wrote:
>>> Takashi Yano writes:
>>>> This bug was already fixed in current git head.
>>> Current git head for Cygwin?  Or mintty?
>>
>> I mean cygwin.
>>
>>> Because I have another box, and now see that the bug does _not_ occur
>>> with Cygwin 3.1.4 and mintty 3.1.0 -- the above error labelled 3.1.4 is
>>> with Cygwin 3.1.4 _and_ mintty 3.1.4.
>>
>> In my environment, your problem does not occur even with cygwin
>> 3.1.4 and mintty 3.1.4. So I am not sure what is the real cause.
>
> Well, for me it *does* happen with cygwin 3.1.4 and mintty 3.1.4. I
> tried rolling back just mintty to 3.1.0 and it still happened. Then I
> rolled both of them back and it no longer happens, at least on one of my
> systems where I am *not* running sshd. Now to go try the other one....

For me, it is sufficient to roll back just cygwin to 3.1.0. The mintty
version does not matter at all.

roland
"--Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple"