From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#35204: 27.0.50; Crash on Cygwin Date: Tue, 09 Apr 2019 17:07:58 +0900 Organization: Emacsen advocacy group Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140359"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) To: 35204@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 09 10:09:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDloe-000aO5-AJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Apr 2019 10:09:12 +0200 Original-Received: from localhost ([127.0.0.1]:37160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDlod-0001qI-94 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Apr 2019 04:09:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDloX-0001pt-3Y for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDloW-0002EH-5L for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:09:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDloV-0002E4-TQ for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:09:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDloV-0005e3-I2 for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:09:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Apr 2019 08:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35204 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155479729721638 (code B ref -1); Tue, 09 Apr 2019 08:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Apr 2019 08:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:50499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDlnk-0005cw-Uo for submit@debbugs.gnu.org; Tue, 09 Apr 2019 04:08:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDlni-0005cg-Jl for submit@debbugs.gnu.org; Tue, 09 Apr 2019 04:08:15 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDlnd-0001zi-Dw for submit@debbugs.gnu.org; Tue, 09 Apr 2019 04:08:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDlnc-0001bK-9Y for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:08:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDlnb-0001zI-Ap for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:08:08 -0400 Original-Received: from goldenrod.birch.relay.mailchannels.net ([23.83.209.74]:8041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDlna-0001yv-Um for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 04:08:07 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DC4D5141EF2 for ; Tue, 9 Apr 2019 08:08:04 +0000 (UTC) Original-Received: from hampton.hostforweb.net (100-96-2-111.trex.outbound.svc.cluster.local [100.96.2.111]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 9A305141F1B for ; Tue, 9 Apr 2019 08:08:03 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 09 Apr 2019 08:08:04 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Versed-Lettuce: 4e4e21457221158c_1554797284439_512996689 X-MC-Loop-Signature: 1554797284439:1332686132 X-MC-Ingress-Time: 1554797284438 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hDlnO-00CVjj-4C for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2019 03:07:55 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:YeAfQg8FqLBgwQafBqmxGQhhgLM= X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157398 Archived-At: Hi, Recently Emacs on Cygwin suddenly crashes while it is (probably) in idle, only it lives for several minuits, but reverting the following three changes seems to help. 1. commit 0b8117ed1abfc17bb0bc1690a8997736f1e8f98c ; * src/frame.h (MonitorInfo): Remove const modifier 2. commit 7b78857c0ba69eafd780484641b858ae8a167044 ; * src/xfns.c (x-display-monitor-attributes-list) Fix typo. 3. commit a35e06bbe27c5907f56c5aeb48182d7be00d1dec Plug memory leak in GTK x-display-monitor-attributes-list * src/frame.c (free_monitors) [USE_GTK]: Define in the GTK case as well. * src/xfns.c (x-display-monitor-attributes-list) [USE_GTK]: Plug memory leak. * src/frame.h (MonitorInfo): Declare name as pointing to const char. I'm not sure what to do but please tell me anything I should do. In GNU Emacs 27.0.50 (build 3, x86_64-pc-cygwin, GTK+ Version 3.22.28) of 2019-04-09 built on localhost Windowing system distributor 'The Cygwin/X Project', version 11.0.12004000 Configured using: 'configure CFLAGS=-O0 --verbose --with-x-toolkit=gtk3' uname -a CYGWIN_NT-10.0 localhost 3.0.6(0.338/5/3) 2019-04-06 16:18 x86_64 Cygwin Here is a gdb backtrace I got after reverting only 1.: (gdb) bt #0 0x000000010054a66a in terminate_due_to_signal () #1 0x000000010057110d in handle_fatal_signal () #2 0x00000001005710e0 in deliver_thread_signal () #3 0x0000000100571149 in deliver_fatal_thread_signal () #4 0x0000000100571361 in handle_sigsegv () #5 0x000000018005f65a in altstack_wrapper (sig=, siginfo=, sigctx=0xffffde50, handler=0x1005712a5 ) at /usr/src/debug/cygwin-3.0.6-1/winsup/cygwin/exceptions.cc:1595 #6 0x0000000180062dfa in _cygtls::call_signal_handler (this=0xffffce00) at /usr/src/debug/cygwin-3.0.6-1/winsup/cygwin/exceptions.cc:1777 #7 0x0000000000000000 in ?? () I couldn't fetch a backtrace for Emacs before reverting because of an error: (gdb) bt #0 0x000000010054a72f in terminate_due_to_signal () #1 0x000303e90000faf0 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) Couldn't fetch xbacktrace either: (gdb) source .gdbinit SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x10054a66a .gdbinit:1228: Error in sourced command file: No symbol "defined_HAVE_X_WINDOWS" in current context. Thanks. Regards,