From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs 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 Message-ID: <8762as8frs.fsf@engster.org> References: <87ehpg8mxz.fsf@engster.org> <83bokkfmxu.fsf@gnu.org> <87aa048koi.fsf@engster.org> <838vfofin7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339793228 20817 80.91.229.3 (15 Jun 2012 20:47:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2012 20:47:08 +0000 (UTC) Cc: 11717@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 22:47:07 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SfdQA-0001QW-KO for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2012 22:47:06 +0200 Original-Received: from localhost ([::1]:36115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfdQA-000361-F6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2012 16:47:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfdQ7-00035k-Gx for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfdQ5-0000qu-Pq for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:47:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfdQ5-0000qj-Jl for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SfdSz-0005zh-JU for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jun 2012 20:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11717-submit@debbugs.gnu.org id=B11717.133979337923010 (code B ref 11717); Fri, 15 Jun 2012 20:50:01 +0000 Original-Received: (at 11717) by debbugs.gnu.org; 15 Jun 2012 20:49:39 +0000 Original-Received: from localhost ([127.0.0.1]:44406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfdSc-0005z5-SO for submit@debbugs.gnu.org; Fri, 15 Jun 2012 16:49:39 -0400 Original-Received: from randomsample.de ([83.169.19.17]:51096) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfdSZ-0005yv-Rg for 11717@debbugs.gnu.org; Fri, 15 Jun 2012 16:49:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=fOiOrm6y3MnyzXz4AKYk7rT4yea8DlzfpQkSUiBDE3s=; b=Bvb1y+TE2zTgvzbODGPsfG41jHuiNdzZKukeKSAsUOdpDeh6QRyYxSKUzOY/LI0zbBzUVMfPLavub/Pe43Id6LFiWEVXB1elcHjFjnEatSk7gZbeTOYxe2HErsRAzIfZ; Original-Received: from dslc-082-083-050-207.pools.arcor-ip.net ([82.83.50.207] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SfdPc-0004fy-9c; Fri, 15 Jun 2012 22:46:32 +0200 In-Reply-To: <838vfofin7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Jun 2012 23:02:36 +0300") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61030 Archived-At: Eli Zaretskii writes: >> From: David Engster >> 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