delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/06/23/13:58:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=FNq7edeu9GI9JpOl
SWKQBz3/ijwH3Y7BfUBrn0XpUeApxo5VS6vdZtnHZrhCG69TWeVXUCIv5z0UOlzU
/3hSSqYbCtAzbWleetsed1YduAslkxpgALkfn8l0pSI5Y2/4H56IFScgmajEyFr6
mrd+0o9p5NAir2wC/EuZMxHfcNM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=RydRjKJ0852w0bMuO3+zzC
lIRAQ=; b=y3Qevc8G5QKeepJVQsuugmSGNt757aGBuScMl2YNRBIElDT95U3Nbf
fzFI0XhzoyZQGoHiu8VSu6NNIGMjurHeplavjJDZ4GHaalT7z4LmIwLEt7ooHR25
Vp3UEAnjYPHb4GBcSFat6ozQ0ZVLObmy1x//4cqki0rzv5xzhekZ4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*u:WOW64, Cygwin, H*F:D*org.uk, H*r:9.0.019
X-HELO: rgout0806.bt.lon5.cpcloud.co.uk
X-OWM-Source-IP: 86.141.131.103 (GB)
X-OWM-Env-Sender: jonturney AT btinternet DOT com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-SNCR-VADESECURE: CLEAN
Subject: Re: Bug in libX11 or something near ?
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <CAC-34C0eHbNVnKT9HV1JGd3MJ4R=njABKWavXkiYLAUkjcXvKQ AT mail DOT gmail DOT com>
Cc: Philippe <philippe DOT raven AT gmail DOT com>
From: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Message-ID: <5fa8b89e-1a9d-2619-f49f-c1680d587148@dronecode.org.uk>
Date: Sun, 23 Jun 2019 18:57:38 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
MIME-Version: 1.0
In-Reply-To: <CAC-34C0eHbNVnKT9HV1JGd3MJ4R=njABKWavXkiYLAUkjcXvKQ@mail.gmail.com>

On 18/06/2019 17:07, Philippe wrote:
> I'm using Cygwin/X and identified a critical bug using some piece of
> software.
> I don't really know where to begin, but I'm able to crash some applications
> via the application's menu, only with Cygwin/X (no crash with Xming, and no
> crash under any Linux distributions).
> 
> For information, It goes through VirtualGL. I'll give the example on how to
> reproduce it with a free software : Paraview (under linux).
> 
> So you open Paraview, then clic on "View" > show the "Toolbars" submenu,
> then you move your mouse directly on the "Sources" or "Edit" menu, then it
> crashes immediately. The only error message in the linux shell (from where
> it was launched) is "paraview: Fatal IO error: client killed".
> 
> I got those lines in the XWin.0.log file :
> SetupSysMenu: GetSystemMenu() failed for HWND 0x130746
> winTopLevelWindowProc - WM_DESTROY - WM_WM_KILL

Thanks for reporting this problem, and the clear reproduction steps.

This is an interesting bug in the Cygwin X server's multiwindow mode. It 
seems that under some circumstances, when removing a WM_TRANSIENT_FOR 
window which in turn had a child WM_TRANSIENT_FOR window (e.g. a menu 
which has a sub-menu), the X server's integrated WM would get confused 
and think that the main window had been closed (so terminating the 
application).

I've has a go at fixing this and uploaded a snapshot at [1].  Perhaps 
you could try that and see if it improves things for you?

(I guessed you are using 64-bit Cygwin. If you need a 32-bit build 
instead, please let me know and I'll generate one)

[1] 
ftp://cygwin.com/pub/cygwinx/x86_64/XWin.20190623-git-210c90b328cf8f18.exe.bz2

-- 
Jon Turney
Volunteer Cygwin/X X Server maintainer

--
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

- Raw text -


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