all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 35204@debbugs.gnu.org
Subject: bug#35204: 27.0.50; Crash on Cygwin
Date: Fri, 12 Apr 2019 08:02:33 +0900	[thread overview]
Message-ID: <b4mzhow2liu.fsf@jpl.org> (raw)
In-Reply-To: <b4m4l77wqht.fsf@jpl.org>

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

On Thu, 11 Apr 2019 16:19:28 +0300, Eli Zaretskii wrote:
>> (gdb) source .gdbinit
[...]
>> .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.

I did so.

[...]
> This is still not the information we need.  Since "thread apply all"
> crashes, please try this alternative:

>   (gdb) thread 1
>   (gdb) bt

The result is in the first attachment, and

> And please separately do also this:

>   (gdb) info threads

that of it is in the second attachment.

> and post the results.

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

No one mentions Emacs of git master in the Cygwin list so far.
I tried to update my Cygwin installation, but setup.exe said
it is up-to-date.  So, I'll try the snapshot later.

Thanks.

[-- Attachment #2: Type: application/octet-stream, Size: 3540 bytes --]

GNU gdb (GDB) (Cygwin 8.1.1-1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from emacs.exe...done.
warning: File "/Work/emacs-27.0.50/src/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /Work/emacs-27.0.50/src/.gdbinit
line to your configuration file "/home/yamaoka/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/yamaoka/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
(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 0x10054a670: file emacs.c, line 371.
Breakpoint 2 at 0x100513717: file xterm.c, line 9986.
(gdb) r -Q
Starting program: /Work/emacs-27.0.50/src/emacs.exe -Q
[New Thread 416.0x297c]
[New Thread 416.0xdd8]
[New Thread 416.0x17cc]
[New Thread 416.0x28e0]
[New Thread 416.0x9e8]
[New Thread 416.0x2510]
[New Thread 416.0x1650]
[New Thread 416.0x221c]
[New Thread 416.0x2158]
[New Thread 416.0x21c8]
[New Thread 416.0x3b0]
[New Thread 416.0x10cc]
[New Thread 416.0x104c]

** (emacs:13102): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[New Thread 416.0x238c]
[New Thread 416.0xf54]
[New Thread 416.0x16d4]
[New Thread 416.0xc90]
[New Thread 416.0x25c8]

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=11, 
    backtrace_limit=40) at emacs.c:371
371	  signal (sig, SIG_DFL);
(gdb) thread 1
[Switching to thread 1 (Thread 416.0x297c)]
#0  terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:371
371	  signal (sig, SIG_DFL);
(gdb) bt
#0  terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:371
#1  0x000000010057110d in handle_fatal_signal (sig=11) at sysdep.c:1793
#2  0x00000001005710e0 in deliver_thread_signal (sig=11, 
    handler=0x1005710f5 <handle_fatal_signal>) at sysdep.c:1767
#3  0x0000000100571149 in deliver_fatal_thread_signal (sig=11) at sysdep.c:1805
#4  0x0000000100571361 in handle_sigsegv (sig=11, 
    siginfo=0x100acfb70 <sigsegv_stack+32464>, arg=0xffffde50) at sysdep.c:1890
#5  0x000000018005f65a in altstack_wrapper (sig=<optimized out>, 
    siginfo=<optimized out>, sigctx=0xffffde50, 
    handler=0x1005712a5 <handle_sigsegv>)
    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 ?? ()
Segmentation fault (core dumped) 

[-- Attachment #3: Type: application/octet-stream, Size: 4877 bytes --]

GNU gdb (GDB) (Cygwin 8.1.1-1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from emacs.exe...done.
warning: File "/Work/emacs-27.0.50/src/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /Work/emacs-27.0.50/src/.gdbinit
line to your configuration file "/home/yamaoka/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/yamaoka/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
(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 0x10054a670: file emacs.c, line 371.
Breakpoint 2 at 0x100513717: file xterm.c, line 9986.
(gdb) r -Q
Starting program: /Work/emacs-27.0.50/src/emacs.exe -Q
[New Thread 5348.0x1ee0]
[New Thread 5348.0x5a0]
[New Thread 5348.0x548]
[New Thread 5348.0xce4]
[New Thread 5348.0x2990]
[New Thread 5348.0xc8]
[New Thread 5348.0x2388]
[New Thread 5348.0xd64]
[New Thread 5348.0x1df0]
[New Thread 5348.0x2af4]
[New Thread 5348.0x2180]
[New Thread 5348.0x22cc]
[New Thread 5348.0x1c58]

** (emacs:13111): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[New Thread 5348.0x2ac4]
[New Thread 5348.0x97c]
[New Thread 5348.0x2aa8]
[New Thread 5348.0x178c]
[New Thread 5348.0xa84]

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=11, 
    backtrace_limit=40) at emacs.c:371
371	  signal (sig, SIG_DFL);
(gdb) info threads
  Id   Target Id         Frame 
* 1    Thread 5348.0x1ee0 "emacs" terminate_due_to_signal (sig=11, 
    backtrace_limit=40) at emacs.c:371
  2    Thread 5348.0x5a0 0x00007ffa6a963004 in ntdll!ZwWaitForWorkViaWorkerFactory () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  3    Thread 5348.0x548 0x00007ffa6a963004 in ntdll!ZwWaitForWorkViaWorkerFactory () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  4    Thread 5348.0xce4 0x00007ffa6a963004 in ntdll!ZwWaitForWorkViaWorkerFactory () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  5    Thread 5348.0x2990 "sig" 0x00007ffa6a95f754 in ntdll!ZwReadFile ()
   from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  6    Thread 5348.0xc8  0x00007ffa6a963004 in ntdll!ZwWaitForWorkViaWorkerFactory () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  7    Thread 5348.0x2388 0x00007ffa6a963004 in ntdll!ZwWaitForWorkViaWorkerFactory () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  8    Thread 5348.0xd64 "timerfd" 0x00007ffa67469904 in win32u!NtUserMsgWaitForMultipleObjectsEx () from /cygdrive/c/WINDOWS/System32/win32u.dll
  9    Thread 5348.0x1df0 "gmain" 0x00007ffa6a9601e4 in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  10   Thread 5348.0x2af4 "pipesel" 0x00007ffa6a95fd14 in ntdll!ZwDelayExecution () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  11   Thread 5348.0x2180 0x00007ffa6a95f7b4 in ntdll!ZwRemoveIoCompletion ()
   from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  12   Thread 5348.0x22cc "pipesel" 0x00007ffa6a95fd14 in ntdll!ZwDelayExecution () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  13   Thread 5348.0x1c58 "socksel" 0x00007ffa6a95f714 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  14   Thread 5348.0x2ac4 "dconf worker" 0x00007ffa6a9601e4 in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  15   Thread 5348.0x97c "pipesel" 0x00007ffa6a95fd14 in ntdll!ZwDelayExecution
    () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  16   Thread 5348.0x2aa8 "gdbus" 0x00007ffa6a9601e4 in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  17   Thread 5348.0x178c "socksel" 0x00007ffa6a9601e4 in ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
  18   Thread 5348.0xa84 "socksel" 0x00007ffa6a95f714 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
(gdb) 

  reply	other threads:[~2019-04-11 23:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09  8:07 bug#35204: 27.0.50; Crash on Cygwin Katsumi Yamaoka
2019-04-09  9:47 ` Eli Zaretskii
2019-04-10  4:54   ` Katsumi Yamaoka
2019-04-10 14:37     ` Eli Zaretskii
2019-04-11  2:31       ` Katsumi Yamaoka
2019-04-11 13:19         ` Eli Zaretskii
2019-04-11 23:02           ` Katsumi Yamaoka [this message]
2019-04-12  1:01             ` Katsumi Yamaoka
2019-04-12  7:11             ` Eli Zaretskii
2019-04-12  8:00               ` Katsumi Yamaoka
2019-04-12 14:54               ` Ken Brown
2019-04-12 15:15                 ` Eli Zaretskii
2019-04-13 22:26                   ` Basil L. Contovounesios
2019-04-13 22:50                     ` Alex Gramiak
2019-04-14  2:15                       ` Ken Brown
2019-04-14 23:26                         ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mzhow2liu.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=35204@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.