all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: dmantipov@yandex.ru, monnier@IRO.UMontreal.CA
Cc: emacs-devel@gnu.org
Subject: Re: Hit eassert introduced in r110971
Date: Sat, 06 Apr 2013 22:16:34 +0300	[thread overview]
Message-ID: <83sj33cvvx.fsf@gnu.org> (raw)
In-Reply-To: <83vc7zcxon.fsf@gnu.org>

> Date: Sat, 06 Apr 2013 21:37:44 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org
> 
> > Date: Sat, 06 Apr 2013 20:35:10 +0400
> > From: Dmitry Antipov <dmantipov@yandex.ru>
> > Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>
> > 
> > Found 100% method to hit eassert introduced in r110971 within update_tool_bar:
> > 
> > 1) ./src/emacs -nw -Q
> > 2) M-x make-frame-on-display :0
> > 3) Move mouse to new X frame and left-click;
> > 4) Move mouse back to TTY frame and left-click;
> > 5) Press C-g staying in TTY frame ==>
> > 
> > #0  0x0000003daf40eedb in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:41
> > #1  0x00000000005a1cf2 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647)
> >      at src/emacs.c:343
> > #2  0x000000000065d92d in die (msg=0x79db98 "assertion failed: EQ (selected_window, XFRAME (selected_frame)->selected_window)", file=
> >      0x79b560 "src/xdisp.c", line=11427) at src/alloc.c:6522
> > #3  0x000000000044c6b5 in update_tool_bar (f=f@entry=0x14a29d8, save_match_data=save_match_data@entry=0)
> >      at src/xdisp.c:11424
> 
> Which frame is the selected frame here: the X frame or the TTY frame?

And btw, why do we at all care here about the selected window?
AFAICS, none of the code involved ever changes that.

Or, if we do care (maybe some weird code that updates the tool bar can
switch windows?), then simply saving and restoring it would be better
than the assertion.

Stefan, am I missing something?



  reply	other threads:[~2013-04-06 19:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-06 16:35 Hit eassert introduced in r110971 Dmitry Antipov
2013-04-06 18:37 ` Eli Zaretskii
2013-04-06 19:16   ` Eli Zaretskii [this message]
2013-04-07  0:36     ` Stefan Monnier
2013-04-07  2:49       ` Eli Zaretskii
2013-04-07 13:50         ` Stefan Monnier
2013-04-07 15:37           ` Eli Zaretskii
2013-04-07 17:54             ` Stefan Monnier
2013-04-08 15:02       ` Eli Zaretskii
2013-04-08 17:40         ` Stefan Monnier

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=83sj33cvvx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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.