X-Recipient: archive-cygwin@delorie.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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type; q=dns; s=default; b=
	H5xCAUfYaeRxnxPoPd6VvlZ4uazN+Nvhn0aj0qlSwbdBrQ6gQ5w1YvA8hvNgteob
	pcmjjSYqILuV05i5MB8uyI6BuY8+VtdymabCW78vqu4wSVp3UXRuUXin1aeE1B1/
	FBUg/t3VQ3QeLGhvyA2LtZt4YanHdt/8wOqGEVNg0oU=
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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type; s=default; bh=GPFe
	c63g7QY3U0uolgVW2o9RoFs=; b=cbB+DkigQc27+bnoCcZpnFHsWKyGp8e3tr5O
	KFT7bH54Vc3agxbRLGzGtxtYm4PgJnS6/SFFcZlULnYaJ/LcwoA8ECc68TaqaNyb
	ZQshsNnu5IbvvWDTguoQXj+KSJuFzC0vYXGZlV7kF0G7CpEd/GJRhLmJJLdATdjp
	GLg4Aqw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=sequences, resetting, experimenting, Schlecht
X-HELO: mail-lb0-f173.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:message-id:date:from:reply-to:organization         :user-agent:mime-version:to:subject:references:in-reply-to         :content-type;        bh=9NwC29KPKQOHUD4XrAjCYuMpWT+uDkXwvDAsSjNTQ+0=;        b=hq725CS8xTZDaV4sC4fqOUqwKLd+AsrkS4TTcn3Vv+KbRktCo5kJZ7X862FK/Vsn3I         5pZ4vCqsV/JQEMFLcz3LBoGsahyCBM4sUlJmPBWqrhbbXmW17fyw2m6JRvGbkviVg7g0         AqdUGxUfceaVhlCUh8h9b1d8bntDYUKPMfoo7+7sIpZvsknPOia+Ss3KEtj9dQUdHJok         SkgcyXEwCYtdCEEVSn2E3bJxuFcXhgji52s/eO3f3g4M3HWPnaY7kSODYE1h7rEfUxZC         xbHRuV1GhYJ/89BcNviM7d49Cl1QA9AVuli1oRbUDDe9Pvum5Bxd9m4NHoHyzDN37fzR         RTZA==
X-Gm-Message-State: AG10YOQuzC7Dg0qymY7fiInq5UpZYMexxwLq8nmG3lTrCeKBxUhTG+St0/l1zISe6Zu11g==
X-Received: by 10.112.171.100 with SMTP id at4mr13865192lbc.7.1456308528061;        Wed, 24 Feb 2016 02:08:48 -0800 (PST)
Message-ID: <56CD812C.5080305@gmail.com>
Date: Wed, 24 Feb 2016 13:08:44 +0300
From: "Andrey ``Bass'' Shcheglov" <andrewbass@gmail.com>
Reply-To: andrewbass@gmail.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Crash X11 with 3 commands
References: <CA+2x6-LySp7b3UzNdvnb6bsUujpY+-As5LqQjUtanH_qSD4scQ@mail.gmail.com> <56CCA145.1080706@dronecode.org.uk>
In-Reply-To: <56CCA145.1080706@dronecode.org.uk>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w1D6fexSbApDRSV5UtliadTooG0nkC3sX"
X-IsSubscribed: yes

--w1D6fexSbApDRSV5UtliadTooG0nkC3sX
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

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/23eb52ac47c246cd9fbd41fa50508a7=
0.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.)


--w1D6fexSbApDRSV5UtliadTooG0nkC3sX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlbNgSwACgkQFX2weoTrDGcsxQCfY3eBlq81STOZcXZJrwFLYdtz
6PAAoImmWPyKV6pqnkPBMrlqLqbIE8dt
=1TF+
-----END PGP SIGNATURE-----

--w1D6fexSbApDRSV5UtliadTooG0nkC3sX--
