From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33345: 27.0.50; Abort in bidi_cache_iterator_state Date: Sun, 11 Nov 2018 18:03:13 +0200 Message-ID: <83in13a9fi.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1541952132 18957 195.159.176.226 (11 Nov 2018 16:02:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 16:02:12 +0000 (UTC) Cc: 33345@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 17:02:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLsBc-0004oL-0J for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 17:02:08 +0100 Original-Received: from localhost ([::1]:42765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLsDi-0000PL-F6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 11:04:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLsDc-0000OW-N0 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:04:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLsDW-00058b-Uc for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:04:12 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLsDT-00056t-At for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:04:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLsDT-0001jF-4o for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:04:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2018 16:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33345-submit@debbugs.gnu.org id=B33345.15419522256611 (code B ref 33345); Sun, 11 Nov 2018 16:04:03 +0000 Original-Received: (at 33345) by debbugs.gnu.org; 11 Nov 2018 16:03:45 +0000 Original-Received: from localhost ([127.0.0.1]:46597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLsDA-0001iZ-VW for submit@debbugs.gnu.org; Sun, 11 Nov 2018 11:03:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLsD9-0001iK-KY for 33345@debbugs.gnu.org; Sun, 11 Nov 2018 11:03:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLsD1-00042A-CS for 33345@debbugs.gnu.org; Sun, 11 Nov 2018 11:03:38 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLsCs-0003yA-RU; Sun, 11 Nov 2018 11:03:30 -0500 Original-Received: from [176.228.60.248] (port=4032 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gLsCp-00014y-Ib; Sun, 11 Nov 2018 11:03:24 -0500 In-reply-to: (message from Stefan Monnier on Sun, 11 Nov 2018 10:03:31 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:152298 Archived-At: > From: Stefan Monnier > Date: Sun, 11 Nov 2018 10:03:31 -0500 > > I can *currently* reproduce it at will: > > start `emacs -f gnus`, then enter my IMAP password, then press RET > on the first group (INBOX) and *boom*. > > As the backtrace indicates, the crash happens not while running the Gnus > code that enters the group, displaying the summary of all messages, but > in the immediately subsequent redisplay. > > If I enter another group, the problem doesn't occur, so I guess it has > to do with the current content of the summary buffer in my INBOX > (i.e. probably due to some unusual email message's title). > > The crash happens because of: > > /* We should never cache on backward scans. */ > if (bidi_it->scan_dir == -1) > emacs_abort (); > > The content of bidi_it is below, in case it helps, Thanks, but IME it is nigh impossible to debug these problems without having the text that causes them. That's because the real problem is usually much earlier than where the abort happens, and because bidi display code is stateful, with some of the state in the cache. Since this seems to be caused by displaying the group summary, please try to save the summary to a file and post it. (To prevent the abort, turn off bidi-display-reordering before entering the group.) After saving the summary to a file, please try visiting the file in "emacs -Q", which hopefully will reproduce the abort. If all that works as I hope, try reducing the file to the minimum that still reproduces the problem, before posting it. And pleas post as compressed archive, to prevent everyone else's Emacs from crashing.