From: Eli Zaretskii <eliz@gnu.org>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: 35204@debbugs.gnu.org
Subject: bug#35204: 27.0.50; Crash on Cygwin
Date: Wed, 10 Apr 2019 17:37:58 +0300 [thread overview]
Message-ID: <8336mq6i49.fsf@gnu.org> (raw)
In-Reply-To: <b4mimvmxxxj.fsf@jpl.org> (message from Katsumi Yamaoka on Wed, 10 Apr 2019 13:54:16 +0900)
> Date: Wed, 10 Apr 2019 13:54:16 +0900
> From: Katsumi Yamaoka <yamaoka@jpl.org>
> Cc: 35204@debbugs.gnu.org
>
> > Is this when you run Emacs from GDB to begin with? If not, please run
> > Emacs from GDB, then the backtrace should be more informative.
>
> I did so. I rebuilt separately Emacs from scratch from today's
> Git repo with no modification on the source using these configure
> options
>
> 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.
> run it from gdb, and I got the backtrace that is in the bottom of
> the attached GDB log. It might be too short to analyze, though.
Yes, it's still not informative enough.
> > How many threads are in the process? Did you type "bt" when the Lisp
> > thread was the current one?
>
> There are 121 threads (IIUC).
Is it normal to have so many threads? What are they doing?
> 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.
> Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=11,
> backtrace_limit=40) at emacs.c:370
> 370 {
> (gdb) bt
> #0 terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:370
> #1 0x00000001004f134e in handle_fatal_signal (sig=sig@entry=11)
> at sysdep.c:1793
> #2 0x00000001004f153f in deliver_thread_signal (sig=sig@entry=11,
> handler=0x1004f1340 <handle_fatal_signal>) at sysdep.c:1767
> #3 0x00000001004f159f in deliver_fatal_thread_signal (sig=11) at sysdep.c:1805
> #4 handle_sigsegv (sig=11, siginfo=0x1009dea10 <sigsegv_stack+32464>,
> arg=<optimized out>) at sysdep.c:1890
> #5 0x000000018005f65a in altstack_wrapper (sig=<optimized out>,
> siginfo=<optimized out>, sigctx=0xffffde50,
> handler=0x1004f1580 <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 ?? ()
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
I don't think this is the thread we are interested in. Let's see what
"thread apply all bt" shows us.
> Lisp Backtrace:
> "x-show-tip" (0xffffac20)
> "tooltip-show" (0xffffaf60)
> "tooltip-help-tips" (0xffffb2c8)
> "run-hook-with-args-until-success" (0xffffb2c0)
> "tooltip-timeout" (0xffffb670)
> "apply" (0xffffb668)
> "timer-event-handler" (0xffffb9a8)
> (gdb)
This seems to be related to showing a tooltip. Do the crashes
generally happen when Emacs is supposed to display a tooltip?
Also, you say that the 3 commits you identified cause the problem, but
those commits are related to the function
x-display-monitor-attributes-list. Is this function being called in
your usage pattern? Can you put a breakpoint inside that function and
see if it breaks, and how often?
Thanks.
next prev parent reply other threads:[~2019-04-10 14:37 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 [this message]
2019-04-11 2:31 ` Katsumi Yamaoka
2019-04-11 13:19 ` Eli Zaretskii
2019-04-11 23:02 ` Katsumi Yamaoka
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=8336mq6i49.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=35204@debbugs.gnu.org \
--cc=yamaoka@jpl.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.