public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Crash X11 with 3 commands
@ 2015-12-11 16:21 Nem W Schlecht
  2015-12-11 17:54 ` Jim Reisert AD1C
  2016-02-23 18:13 ` Jon Turney
  0 siblings, 2 replies; 11+ messages in thread
From: Nem W Schlecht @ 2015-12-11 16:21 UTC (permalink / raw)
  To: The Cygwin Mailing List

I was experimenting with Xterm escape sequences - trying to
resize/reposition a window while its iconized and found I can crash
X11 in just 3 escape commands in an Xterm (which I have in a shell
script):

---------------------------------------------------------------
#!/bin/bash -x

# Iconify window
echo -ne "\e[2t"

# Set height/width to 36x80 and position at +100+100
# If I do just one of these X11 does *not* crash

# Resize to 36x80.  This one doesn't work, even if I run just it
# by itself so X11 doesn't crash.  Also, this one has to be first.
# If I re-position, then change geometry, it doesn't crash.
echo -ne "\e[8;36;80t"

# The re-position, next, actually does work behind the scenes,
# if I run just this alone and then de-iconify manually, its in the
# correct position.
echo -ne "\e[3;100;100t"

# To de-iconify (doesn't work in Cygwin anyways, unfortunately)
echo -ne "\e[1t"
---------------------------------------------------------------


Can anybody else confirm?  (WARNING - if it does, it'll kill all your
X11 windows!  Be careful.)




-- 
Nem W Schlecht
 "Perl did the magic.  I just waved the wand."

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2015-12-11 16:21 Crash X11 with 3 commands Nem W Schlecht
@ 2015-12-11 17:54 ` Jim Reisert AD1C
  2015-12-11 17:59   ` Marco Atzeri
  2016-02-23 18:13 ` Jon Turney
  1 sibling, 1 reply; 11+ messages in thread
From: Jim Reisert AD1C @ 2015-12-11 17:54 UTC (permalink / raw)
  To: cygwin

On Fri, Dec 11, 2015 at 9:21 AM, Nem W Schlecht wrote:

> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
> X11 windows!  Be careful.)

Same here, kills the xterm as well as XWin.exe

-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2015-12-11 17:54 ` Jim Reisert AD1C
@ 2015-12-11 17:59   ` Marco Atzeri
  2015-12-11 18:47     ` Nem W Schlecht
  0 siblings, 1 reply; 11+ messages in thread
From: Marco Atzeri @ 2015-12-11 17:59 UTC (permalink / raw)
  To: cygwin

On 11/12/2015 18:54, Jim Reisert AD1C wrote:
> On Fri, Dec 11, 2015 at 9:21 AM, Nem W Schlecht wrote:
>
>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>> X11 windows!  Be careful.)
>
> Same here, kills the xterm as well as XWin.exe
>

not on my W7-64

cygwin            2.4.0-0.9
xorg-server       1.18.0-1
xterm             320-1

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2015-12-11 17:59   ` Marco Atzeri
@ 2015-12-11 18:47     ` Nem W Schlecht
  2015-12-11 18:51       ` Nem W Schlecht
  0 siblings, 1 reply; 11+ messages in thread
From: Nem W Schlecht @ 2015-12-11 18:47 UTC (permalink / raw)
  To: The Cygwin Mailing List

W7-64 for me as well.  Same xterm version too.

I was on xorg-server 1.17.4-1, but just now upped that to 1.18.0-1 and
I'm still getting the crash.  Will try upgrading cygwin core as well.

On Fri, Dec 11, 2015 at 11:59 AM, Marco Atzeri <marco.atzeri@gmail.com> wrote:
> On 11/12/2015 18:54, Jim Reisert AD1C wrote:
>>
>> On Fri, Dec 11, 2015 at 9:21 AM, Nem W Schlecht wrote:
>>
>>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>>> X11 windows!  Be careful.)
>>
>>
>> Same here, kills the xterm as well as XWin.exe
>>
>
> not on my W7-64
>
> cygwin            2.4.0-0.9
> xorg-server       1.18.0-1
> xterm             320-1
>
>
> --
> 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
>



-- 
Nem W Schlecht                   nem@emptec.com
Empyreal Technologies    http://www.emptec.com/
 "Perl did the magic.  I just waved the wand."

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2015-12-11 18:47     ` Nem W Schlecht
@ 2015-12-11 18:51       ` Nem W Schlecht
  2015-12-12 23:57         ` Stephen John Smoogen
  0 siblings, 1 reply; 11+ messages in thread
From: Nem W Schlecht @ 2015-12-11 18:51 UTC (permalink / raw)
  To: The Cygwin Mailing List

Nope.  Still crashing with 2.4.0-0.9 for me.

Marco - when you run that script, does your xterm at least iconize?
What's in your xterm after you run the script?


On Fri, Dec 11, 2015 at 12:47 PM, Nem W Schlecht <nemws1@gmail.com> wrote:
> W7-64 for me as well.  Same xterm version too.
>
> I was on xorg-server 1.17.4-1, but just now upped that to 1.18.0-1 and
> I'm still getting the crash.  Will try upgrading cygwin core as well.
>
> On Fri, Dec 11, 2015 at 11:59 AM, Marco Atzeri <marco.atzeri@gmail.com> wrote:
>> On 11/12/2015 18:54, Jim Reisert AD1C wrote:
>>>
>>> On Fri, Dec 11, 2015 at 9:21 AM, Nem W Schlecht wrote:
>>>
>>>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>>>> X11 windows!  Be careful.)
>>>
>>>
>>> Same here, kills the xterm as well as XWin.exe
>>>
>>
>> not on my W7-64
>>
>> cygwin            2.4.0-0.9
>> xorg-server       1.18.0-1
>> xterm             320-1
>>


-- 
Nem W Schlecht
 "Perl did the magic.  I just waved the wand."

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2015-12-11 18:51       ` Nem W Schlecht
@ 2015-12-12 23:57         ` Stephen John Smoogen
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen John Smoogen @ 2015-12-12 23:57 UTC (permalink / raw)
  To: cygwin

On 11 December 2015 at 11:51, Nem W Schlecht <nemws1@gmail.com> wrote:
> Nope.  Still crashing with 2.4.0-0.9 for me.
>
> Marco - when you run that script, does your xterm at least iconize?
> What's in your xterm after you run the script?
>

With various X problems it is usually useful to list what the video
card, display mode/size are in case it is those which may be crashing.

>>> cygwin            2.4.0-0.9
>>> xorg-server       1.18.0-1
>>> xterm             320-1
>>>
>
>
> --
> Nem W Schlecht
>  "Perl did the magic.  I just waved the wand."
>
> --
> 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
>



-- 
Stephen J Smoogen.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2015-12-11 16:21 Crash X11 with 3 commands Nem W Schlecht
  2015-12-11 17:54 ` Jim Reisert AD1C
@ 2016-02-23 18:13 ` Jon Turney
  2016-02-24 10:08   ` Andrey ``Bass'' Shcheglov
  2016-02-24 19:56   ` Nem W Schlecht
  1 sibling, 2 replies; 11+ messages in thread
From: Jon Turney @ 2016-02-23 18:13 UTC (permalink / raw)
  To: cygwin; +Cc: Nem W Schlecht

On 11/12/2015 16:21, Nem W Schlecht wrote:
> I was experimenting with Xterm escape sequences - trying to
> resize/reposition a window while its iconized and found I can crash
> X11 in just 3 escape commands in an Xterm (which I have in a shell
> script):
>
> ---------------------------------------------------------------
> #!/bin/bash -x
>
> # Iconify window
> echo -ne "\e[2t"
>
> # Set height/width to 36x80 and position at +100+100
> # If I do just one of these X11 does *not* crash
>
> # Resize to 36x80.  This one doesn't work, even if I run just it
> # by itself so X11 doesn't crash.  Also, this one has to be first.
> # If I re-position, then change geometry, it doesn't crash.
> echo -ne "\e[8;36;80t"
>
> # The re-position, next, actually does work behind the scenes,
> # if I run just this alone and then de-iconify manually, its in the
> # correct position.
> echo -ne "\e[3;100;100t"
>
> # To de-iconify (doesn't work in Cygwin anyways, unfortunately)
> echo -ne "\e[1t"
> ---------------------------------------------------------------
>
>
> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
> X11 windows!  Be careful.)

Thanks for reporting this.

I was able to reproduce the crash (sporadically), but only when I was 
using  XWin with the -compositewm option.  Are you using that?

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2016-02-23 18:13 ` Jon Turney
@ 2016-02-24 10:08   ` Andrey ``Bass'' Shcheglov
  2016-02-24 19:56   ` Nem W Schlecht
  1 sibling, 0 replies; 11+ messages in thread
From: Andrey ``Bass'' Shcheglov @ 2016-02-24 10:08 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

Just my 2 cents.

I can't reproduce this, but once the script is executed 3 or more times,
I start seeing permanent visual artifacts in the xterm window, which may
indicate memory corruption.

The artifacts have nothing to do with the terminal state (hard resetting
the terminal doesn't help).

The screenshot is here:
<https://habrastorage.org/files/23e/b52/ac4/23eb52ac47c246cd9fbd41fa50508a70.png>

Regards,
Andrey.

> On 11/12/2015 16:21, Nem W Schlecht wrote:
>> I was experimenting with Xterm escape sequences - trying to
>> resize/reposition a window while its iconized and found I can crash
>> X11 in just 3 escape commands in an Xterm (which I have in a shell
>> script):
>>
>> ---------------------------------------------------------------
>> #!/bin/bash -x
>>
>> # Iconify window
>> echo -ne "\e[2t"
>>
>> # Set height/width to 36x80 and position at +100+100
>> # If I do just one of these X11 does *not* crash
>>
>> # Resize to 36x80.  This one doesn't work, even if I run just it
>> # by itself so X11 doesn't crash.  Also, this one has to be first.
>> # If I re-position, then change geometry, it doesn't crash.
>> echo -ne "\e[8;36;80t"
>>
>> # The re-position, next, actually does work behind the scenes,
>> # if I run just this alone and then de-iconify manually, its in the
>> # correct position.
>> echo -ne "\e[3;100;100t"
>>
>> # To de-iconify (doesn't work in Cygwin anyways, unfortunately)
>> echo -ne "\e[1t"
>> ---------------------------------------------------------------
>>
>>
>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>> X11 windows!  Be careful.)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2016-02-23 18:13 ` Jon Turney
  2016-02-24 10:08   ` Andrey ``Bass'' Shcheglov
@ 2016-02-24 19:56   ` Nem W Schlecht
  2016-03-03 19:26     ` Jon Turney
  1 sibling, 1 reply; 11+ messages in thread
From: Nem W Schlecht @ 2016-02-24 19:56 UTC (permalink / raw)
  To: The Cygwin Mailing List

On Tue, Feb 23, 2016 at 12:13 PM, Jon Turney
<jon.turney@dronecode.org.uk> wrote:
>
> On 11/12/2015 16:21, Nem W Schlecht wrote:
>>
>> I was experimenting with Xterm escape sequences - trying to
>> resize/reposition a window while its iconized and found I can crash
>> X11 in just 3 escape commands in an Xterm (which I have in a shell
>> script):
>>
>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>> X11 windows!  Be careful.)
>
>
> Thanks for reporting this.
>
> I was able to reproduce the crash (sporadically), but only when I was using  XWin with the -compositewm option.  Are you using that?
>

Yes, I am.  My apologies, I added that ages ago and forgot about it.

-- 
Nem W Schlecht
 "Perl did the magic.  I just waved the wand."

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2016-02-24 19:56   ` Nem W Schlecht
@ 2016-03-03 19:26     ` Jon Turney
  2016-03-04 14:53       ` Nem W Schlecht
  0 siblings, 1 reply; 11+ messages in thread
From: Jon Turney @ 2016-03-03 19:26 UTC (permalink / raw)
  To: cygwin; +Cc: Nem W Schlecht

On 24/02/2016 19:56, Nem W Schlecht wrote:
> On Tue, Feb 23, 2016 at 12:13 PM, Jon Turney wrote:
>> On 11/12/2015 16:21, Nem W Schlecht wrote:
>>>
>>> I was experimenting with Xterm escape sequences - trying to
>>> resize/reposition a window while its iconized and found I can crash
>>> X11 in just 3 escape commands in an Xterm (which I have in a shell
>>> script):
>>>
>>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>>> X11 windows!  Be careful.)
>>
>> Thanks for reporting this.
>>
>> I was able to reproduce the crash (sporadically), but only when I was using  XWin with the -compositewm option.  Are you using that?
>
> Yes, I am.  My apologies, I added that ages ago and forgot about it.

No problem and thanks for testing.

This crash should be fixed as of 1.18.1-2

Still no implementation of Windows requesting themselves to be 
deiconified, which is unfortunately not straightforward to add.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Crash X11 with 3 commands
  2016-03-03 19:26     ` Jon Turney
@ 2016-03-04 14:53       ` Nem W Schlecht
  0 siblings, 0 replies; 11+ messages in thread
From: Nem W Schlecht @ 2016-03-04 14:53 UTC (permalink / raw)
  To: The Cygwin Mailing List; +Cc: Jon Turney

On Thu, Mar 3, 2016 at 1:25 PM, Jon Turney <jon.turney@dronecode.org.uk> wrote:
> On 24/02/2016 19:56, Nem W Schlecht wrote:
>>
>> On Tue, Feb 23, 2016 at 12:13 PM, Jon Turney wrote:
>>>
>>> On 11/12/2015 16:21, Nem W Schlecht wrote:
>>>>
>>>>
>>>> I was experimenting with Xterm escape sequences - trying to
>>>> resize/reposition a window while its iconized and found I can crash
>>>> X11 in just 3 escape commands in an Xterm (which I have in a shell
>>>> script):
>>>>
>>>> Can anybody else confirm?  (WARNING - if it does, it'll kill all your
>>>> X11 windows!  Be careful.)
>>>
>>>
>>> Thanks for reporting this.
>>>
>>> I was able to reproduce the crash (sporadically), but only when I was
>>> using  XWin with the -compositewm option.  Are you using that?
>>
>>
>> Yes, I am.  My apologies, I added that ages ago and forgot about it.
>
>
> No problem and thanks for testing.
>
> This crash should be fixed as of 1.18.1-2
>
> Still no implementation of Windows requesting themselves to be deiconified,
> which is unfortunately not straightforward to add.

Works perfectly for me.  Thanks much, as always, Jon for your
un-ending, excellent support.  It is *greatly* appreciated!! :)

-- 
Nem W Schlecht
 "Perl did the magic.  I just waved the wand."

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-03-04 14:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-11 16:21 Crash X11 with 3 commands Nem W Schlecht
2015-12-11 17:54 ` Jim Reisert AD1C
2015-12-11 17:59   ` Marco Atzeri
2015-12-11 18:47     ` Nem W Schlecht
2015-12-11 18:51       ` Nem W Schlecht
2015-12-12 23:57         ` Stephen John Smoogen
2016-02-23 18:13 ` Jon Turney
2016-02-24 10:08   ` Andrey ``Bass'' Shcheglov
2016-02-24 19:56   ` Nem W Schlecht
2016-03-03 19:26     ` Jon Turney
2016-03-04 14:53       ` Nem W Schlecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).