From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35204: 27.0.50; Crash on Cygwin Date: Thu, 11 Apr 2019 16:19:28 +0300 Message-ID: <83ef6865nj.fsf@gnu.org> References: <83ftqr7bnb.fsf@gnu.org> <8336mq6i49.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181233"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35204@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 15:21:19 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 1hEZdh-000kwE-CJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 15:21:13 +0200 Original-Received: from localhost ([127.0.0.1]:48815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEZdg-0003jE-8I for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 09:21:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEZdX-0003Zx-KE for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 09:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEZdW-00039H-Kd for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 09:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEZdW-000394-DP for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 09:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hEZdV-00023g-SD for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 09:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 13:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35204 X-GNU-PR-Package: emacs Original-Received: via spool by 35204-submit@debbugs.gnu.org id=B35204.15549888027818 (code B ref 35204); Thu, 11 Apr 2019 13:21:01 +0000 Original-Received: (at 35204) by debbugs.gnu.org; 11 Apr 2019 13:20:02 +0000 Original-Received: from localhost ([127.0.0.1]:54032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEZcX-000222-Sv for submit@debbugs.gnu.org; Thu, 11 Apr 2019 09:20:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEZcW-00021V-9I for 35204@debbugs.gnu.org; Thu, 11 Apr 2019 09:20:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEZcN-0001qd-FM; Thu, 11 Apr 2019 09:19:53 -0400 Original-Received: from [176.228.60.248] (port=2865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hEZcJ-0001pH-Pz; Thu, 11 Apr 2019 09:19:49 -0400 In-reply-to: (message from Katsumi Yamaoka on Thu, 11 Apr 2019 11:31:11 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:157492 Archived-At: > Date: Thu, 11 Apr 2019 11:31:11 +0900 > From: Katsumi Yamaoka > Cc: 35204@debbugs.gnu.org > > >> configure --verbose --with-x-toolkit=gtk3 > > >> (I detached "CFLAGS=-O0") > > > Does it mean you used "CFLAGS=-O0", or does it mean you did NOT use > > it? It is better to use it, together with -g3, as that makes > > debugging easier. > > At that time I didn't use CFLAGS=-O0 so as to exclude anything > special, though I'm not sure it is worthwhile. Today I tried > building two types; one uses CFLAGS=-O0 and the other doesn't. > The difference between them is that with the one built *with* > CFLAGS=-O0 the gdb command `source .gdbinit' ends up with this > error: > > (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. This is why I suggested to use CFLAGS='-O0 -g3', please try that next. > > Is it normal to have so many threads? What are they doing? > > It's a result of I did many things to break Emacs since it can't > seem to die soon. But I got a good means to break Emacs at once, > that is to eval: (x-display-monitor-attributes-list) So please use this method from now on, to trigger the crash. It is important to have consistency in this. > >> I don't konw what is the Lisp thread, sorry. > > > That's usually the thread you get when you type "thread 1" at GDB > > prompt. But let's see what all those threads do, so please type this: > > > (gdb) thread apply all bt > > > and post the results here. > > Thanks. Attached the one fetched with Emacs built without > CFLAGS=-O0 (it has no notably difference from the one fetched > with Emacs built with CFLAGS=-O0). Note that gdb crashes when > the `thread apply all bt' command is invoked. This is still not the information we need. Since "thread apply all" crashes, please try this alternative: (gdb) thread 1 (gdb) bt And please separately do also this: (gdb) info threads and post the results. Thanks. P.S. I see you are using Cygwin 3.0.6, could it be a bug in Cygwin itself? Is there a newer version of Cygwin?