all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 11717@debbugs.gnu.org
Subject: bug#11717: 24.1.50; Segmentation fault in Fdelete_other_windows_internal when running	Gnus unit tests
Date: Fri, 15 Jun 2012 22:46:31 +0200	[thread overview]
Message-ID: <8762as8frs.fsf@engster.org> (raw)
In-Reply-To: <838vfofin7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Jun 2012 23:02:36 +0300")

Eli Zaretskii writes:
>> From: David Engster <deng@randomsample.de>
>> Cc: 11717@debbugs.gnu.org
>> Date: Fri, 15 Jun 2012 21:00:29 +0200
>
>> 
>> Regarding MOUSE_HL_INFO, I guess this
>> 
>> (gdb) p f->output_data
>> $6 = {
>>   tty = 0x0,
>>   x = 0x0,
>>   w32 = 0x0,
>>   ns = 0x0,
>>   nothing = 0
>> }
>> 
>> doesn't play well with either expression which might get executed in the
>> macro. FRAME_WINDOW_P(f) is false since output_method is
>> 'output_initial', hence it tries to access
>> output_data.tty->display_info->mouse_highlight.
>
> Does it help to condition the entire portion that accesses and uses
> hlinfo by 'if (!noninteractive)' ?

Yes, when I condition the lines 2650-2663, it works fine.

> But what I don't understand is why are we calling delete-other-windows
> when we are running in batch mode?  Isn't that a bug as well?

I absolutely love it that Emacs can run stuff like Gnus in batch mode
and it Just Works. While this might sound obscure, it makes setting up
automatic testing through continuous integration systems just so much
less painful. Also, besides from testing, I think there's a lot of
interactive code out there which can actually be useful in batch-mode,
and it would be tedious to always have to wrap every window-handling
part in "(unless noninteractive" clauses.

BTW, the Gnus test worked for quite a while in Emacs24 from trunk prior
to the Emacs 24.1 release. If it is of any value, I can probably bisect
the commit which triggers the above crash.

-David





  reply	other threads:[~2012-06-15 20:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15 18:11 bug#11717: 24.1.50; Segmentation fault in Fdelete_other_windows_internal when running Gnus unit tests David Engster
2012-06-15 18:29 ` Eli Zaretskii
2012-06-15 19:00   ` David Engster
2012-06-15 20:02     ` Eli Zaretskii
2012-06-15 20:46       ` David Engster [this message]
2012-06-16  6:43         ` Eli Zaretskii

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=8762as8frs.fsf@engster.org \
    --to=deng@randomsample.de \
    --cc=11717@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.