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:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-id:content-transfer-encoding
	:mime-version; q=dns; s=default; b=OF3NpSxmMsm8L2drv/XKPx2iac4Rn
	gdR/oXo+V1Qw/kCl0dOINbW599b3ixrFE5UNicoOm9ZyORKOZkvFuMZPXwCYBlhA
	Gr6kQ25ezJe3UWysHM4CSVj0raIeBZYl08gZZMs32F+7ETLW0BTMF5/lrUlYjqAY
	q7P7Sl2fvi1OXc=
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:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-id:content-transfer-encoding
	:mime-version; s=default; bh=sInNVQymEjQFG9hPRt7FlNJyImA=; b=fvm
	WO2NCZJHLCGQaZgew7WvqXRD1huAnHeIiw/2kO8OxuRc9Cy/GRhCoHqPYSQ5/JE4
	Zq67oIk2PJjMWapZ5PBiA9iNoSxv3ygzOKboP9URJERXq59EEVyMmIByVvnrv06L
	neRw241/p6I5MyHC1z+x01EFQqQ0xXem4Ce8ZvaY=
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-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=mouse, Harry, rockefeller, Rockefeller
X-HELO: NAM01-SN1-obe.outbound.protection.outlook.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2vIwDpoBcTv3eUfgkvR8Zkghdp1nncJN978UmWoRbW8=; b=IZK1f5eFZApB87eJL3MTjyfJFXBlifp/Vn9COB9Exr7OUrlEPPcD2BtzRpUxO92hRHj+pq2kP6kjWBtWvNeYB22qnpFSTFh8NUM4+oKCNSmjFcowTdJiXSOeAcx0NCMLQjol5qlb/ejptiHcUt24alp/26ANSOyfkDBNyDyaUfg=
From: Ken Brown <kbrown@cornell.edu>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: emacs-X11 freezes with mouse cut and paste
Date: Wed, 27 Mar 2019 18:33:33 +0000
Message-ID: <614fbba4-3425-4705-3342-99bbe8684ee0@cornell.edu>
References: <fa6ec2233a744738b4efa74af9e9e68c@vsrv060ex01.ssd.fsi.com>
In-Reply-To: <fa6ec2233a744738b4efa74af9e9e68c@vsrv060ex01.ssd.fsi.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
Content-Type: text/plain; charset="utf-8"
Content-ID: <732B37DB487C3D42963B20FC1E78161A@namprd04.prod.outlook.com>
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x2RIXnVi015686

On 3/27/2019 10:40 AM, Rockefeller, Harry wrote:
> CYGWIN_NT-6.1 HARRYR-PC 3.0.4(0.338/5/3) 2019-03-16 09:50 x86_64 Cygwin
> GNU Emacs 26.1
> 
> How this happened.
> It had happened twice before but appeared to be intermittent.
> This time it happened I had copied a line from an xterm, including the [return].
> Moved mouse to emacs window and using the middle mouse button attempted to paste the copied text.
> It didn't paste and now emacs is frozen; not responding to keyboard or mouse.
> 
> In xterm window I entered
> Gdb /usr/bin/emacs-X11.exe
> Gdb told me it read the symbols.
> (gdb) info source
> Current source file is /usr/src/debug/emacs-26.1-1/src/emacs.c
> Compilation directory is /usr/src/debug/emacs-26.1-1/src
> Located in /usr/src/debug/emacs-26.1-1/src/emacs.c
> Contains 2676 lines.
> Source language is c.
> Producer is GNU C11 7.3.0 -mtune=generic -march=x86-64 -ggdb -O2 -fopenmp -fstack-protector-strong --param ssp-buffer-size=4.
> Compiled with DWARF 2 debugging format.
> Does not include preprocessor macro info.
> (gdb) list
> 660           emacs_perror ("Write error to standard output");
> 661           _exit (EXIT_FAILURE);
> 662         }
> 663
> 664       /* Do not close stderr if addresses are being sanitized, as the
> 665          sanitizer might report to stderr after this function is
> 666          invoked.  */
> 667       if (!ADDRESS_SANITIZER && close_stream (stderr) != 0)
> 668         _exit (EXIT_FAILURE);
> 669     }
> 
> I am not familiar with using gdb this way.  There is no "frame", no "info local", no stack.

That's because you haven't started the program.  Use the gdb "run" command. 
Alternatively, instead of running emacs under gdb, you could just run emacs as 
you normally do and then attach gdb when emacs freezes.  ("gdb -p <PID>")  At 
that point, a backtrace of all threads would be useful.

Ken

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


