public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey ``Bass'' Shcheglov <andrewbass@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Crash X11 with 3 commands
Date: Wed, 24 Feb 2016 10:08:00 -0000	[thread overview]
Message-ID: <56CD812C.5080305@gmail.com> (raw)
In-Reply-To: <56CCA145.1080706@dronecode.org.uk>

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

  reply	other threads:[~2016-02-24 10:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 16:21 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 [this message]
2016-02-24 19:56   ` Nem W Schlecht
2016-03-03 19:26     ` Jon Turney
2016-03-04 14:53       ` Nem W Schlecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CD812C.5080305@gmail.com \
    --to=andrewbass@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).