delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:references | |
:mime-version:content-type:in-reply-to; q=dns; s=default; b=K5jv | |
qFGhNlmt9IwZntAfaaLdkfDHya0NykJCZnoJavjJTEi8niOJlV6UMRJKmz1qlsZR | |
zikLbbvY6Jss6eV79icpebTSR3F9F5LGEG676Yg0+HU7E7xAS714ZbUa7sB7Sby/ | |
B5E9/KaFWUJBrK1k5/c1F2YxksnbtLEjPRWG0to= | |
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:date:from:to:subject:message-id:references | |
:mime-version:content-type:in-reply-to; s=default; bh=KiZEzUMMQ2 | |
efPoDzFr+7EQBQfO8=; b=WOj7GuAJP6bH1susNC0hd65o7hfzhM5a42K/K3fpWV | |
6mL8s7sl2VpExwBUih7NXN72WRHpA+r9EZ+rAMOlc506je5P6XZMemWb0iZVaKL4 | |
p3Foj4WXEv1PzztHdQ8WRk7KW9+JL9GwYiWQkDrlK/Q2K7Fk0w7Y3bziIWCzWVCw | |
A= | |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*F:D*net.au, Duncan, duncan, watcher |
X-HELO: | mail106.syd.optusnet.com.au |
Date: | Wed, 19 Apr 2017 16:35:02 +1000 |
From: | Duncan Roe <duncan_roe AT acslink DOT net DOT au> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Segfault using `watch -c` with ANSI escapes in output |
Message-ID: | <20170419063502.GA31554@dimstar.local.net> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CA+kUOanFdr6i3E8=2hTJS+3X7RYY246y6czxiJ_=O=dwpz_daA AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CA+kUOanFdr6i3E8=2hTJS+3X7RYY246y6czxiJ_=O=dwpz_daA@mail.gmail.com> |
User-Agent: | Mutt/1.6.1 (2016-04-27) |
X-Optus-CM-Score: | 0 |
X-Optus-CM-Analysis: | v=2.2 cv=VbSHBBh9 c=1 sm=1 tr=0 a=/xIuaNGu1NPzt0yKkvdCVQ==:117 a=/xIuaNGu1NPzt0yKkvdCVQ==:17 a=kj9zAlcOel0A:10 a=AzvcPWV-tVgA:10 a=HTIWeaAi2O1cIBYZQnoA:9 a=CjuIK1q_8ugA:10 |
X-IsSubscribed: | yes |
On Tue, Apr 18, 2017 at 01:36:34PM +0100, Adam Dinwoodie wrote: > I'm seeing a segfault from using `watch -c` with commands that output > ANSI colour sequences, which is a bit sad given the whole point of the > `-c` is to get the ANSI colour sequences to be displayed. > > Simple test case: > > $ echo -e '\e[0;32mGreen\e[0;0m' >escapes > > $ cat escapes # Text is green in my terminal > Green > > $ xxd escapes > 00000000: 1b5b 303b 3332 6d47 7265 656e 1b5b 303b .[0;32mGreen.[0; > 00000010: 306d 0a 0m. > > $ watch -c cat escapes > Segmentation fault (core dumped) > > $ cat watch.exe.stackdump > Exception: STATUS_ACCESS_VIOLATION at rip=001004029B0 > rax=0000000058F5FF8D rbx=0000000600001200 rcx=0000000600000060 > rdx=0000000000000000 rsi=0000000000000000 rdi=0000000000000004 > r8 =00000000FFFFCA2C r9 =000000018013C800 r10=0000000100000000 > r11=000000010040299A r12=0000000000000004 r13=00000000FFFFCAF0 > r14=0000000600000E50 r15=00000001801F82C0 > rbp=0000000000000000 rsp=00000000FFFFCA60 > program=C:\cygwin64\bin\watch.exe, pid 12100, thread main > cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B > Stack trace: > Frame Function Args > 00000000000 001004029B0 (00000000000, 00000000000, 00000000030, > 30001010000FF00) > 000FFFFCCC0 00180047812 (00000000000, 00000000000, 00000000000, > 00000000000) > 00000000000 001800455E3 (00000000000, 00000000000, 00000000000, > 00000000000) > 000FFFFFFF0 00180045694 (00000000000, 00000000000, 00000000000, > 00000000000) > End of stack trace > > This works as expected when using `watch` without the `-c` option, and > when using `watch -c` with output that doesn't include any ANSI colour > sequences. > > Output from `cygcheck -srv` is attached, and `cygcheck -f > /usr/bin/watch.exe` returns `procps-ng-3.3.11-1`. Where does "watch" come from? It's not on my cygwin installation: > 16:12:50$ type watch > -bash: type: watch: not found and when I enter "watch" in the installer Search window, all it shows me is > xfce-mailwatch-plugin: Xfce mail watcher panel plugin and > xfce-mailwatch-plugin-debuginfo: Debug info for xfce4-mailwatch-plugin Cheers ... Duncan. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |