From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44506: 28.0.50; Segfault on opening a particular message in Gnus in terminal/tty Date: Sat, 14 Nov 2020 14:14:11 +0200 Message-ID: <835z68w2y4.fsf@gnu.org> References: <87sg9l57vx.fsf@gnu.org> <83zh3t56zd.fsf@gnu.org> <874km1djdi.fsf@gnu.org> <83y2jc6hc9.fsf@gnu.org> <87mtzsbim5.fsf@ericabrahamsen.net> <83v9ef6gnu.fsf@gnu.org> <877dqvvh53.fsf@gnu.org> <83d00n65mv.fsf@gnu.org> <83blg764g4.fsf@gnu.org> <87v9ef7fc3.fsf@gnu.org> <835z6f5hoz.fsf@gnu.org> <87imafp2b4.fsf@gnu.org> <33F3730E-AF53-4CCC-B688-DEC41075CC69@gnu.org> <83y2ja4j6u.fsf@gnu.org> <874klxyd7p.fsf@ericabrahamsen.net> <83h7px2ppb.fsf@gnu.org> <874kltn88f.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37885"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eric@ericabrahamsen.net, 44506@debbugs.gnu.org To: Amin Bandali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 14 13:15:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kduSj-0009k7-MI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 13:15:25 +0100 Original-Received: from localhost ([::1]:37772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kduSi-0002T6-0C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 07:15:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kduSM-0002SB-Tn for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 07:15:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kduSM-00027i-Ht for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 07:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kduSM-0000eq-Az; Sat, 14 Nov 2020 07:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Nov 2020 12:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44506 X-GNU-PR-Package: emacs,gnus Original-Received: via spool by 44506-submit@debbugs.gnu.org id=B44506.16053560732476 (code B ref 44506); Sat, 14 Nov 2020 12:15:02 +0000 Original-Received: (at 44506) by debbugs.gnu.org; 14 Nov 2020 12:14:33 +0000 Original-Received: from localhost ([127.0.0.1]:49933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kduRs-0000ds-Oz for submit@debbugs.gnu.org; Sat, 14 Nov 2020 07:14:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kduRr-0000dg-UT for 44506@debbugs.gnu.org; Sat, 14 Nov 2020 07:14:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53554) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kduRl-0001uV-EU; Sat, 14 Nov 2020 07:14:26 -0500 Original-Received: from [176.228.60.248] (port=1608 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kduRk-0003JR-6T; Sat, 14 Nov 2020 07:14:24 -0500 In-Reply-To: <874kltn88f.fsf@gnu.org> (message from Amin Bandali on Fri, 13 Nov 2020 00:20:16 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193266 Archived-At: > From: Amin Bandali > Cc: Eric Abrahamsen , 44506@debbugs.gnu.org > Date: Fri, 13 Nov 2020 00:20:16 -0500 > > >> With "emacs -Q" there are no records to search or display, so I assumed > >> it must be the header-access functions causing the problem. But I wrote > >> a function that does most of what EBDB does, without actually using > >> EBDB, and it caused no segfault, so I don't know what's going on there, > >> sorry. > > > > Thank you for your efforts. > > I, too, would like to say thank you, both to Eli and Eric, for your > efforts and looking into this. I just sent information to Eli off-list > for accessing a test account I set up on a server of mine for debugging > this issue. FTR, it is very easy to reproduce the problem, no need for Gnus or EBDB. Here's the recipe: emacs -Q -nw C-x 3 C-x b foo Now type some R2L character. For example, turn on the Arabic input method and press 'a'. You will see that the character does not appear on display. Basically, on a TTY frame, the first character of a R2L line in a window that is not the rightmost one is not shown: it is overwritten by the vertical-border character '|' we display between the two adjacent windows. This doesn't crash as long as the overwritten glyph is of a character, but in the case in point that glyph came from a composition, and then all hell breaks loose... This is a regression introduced in Emacs 27.1, by the code that supports display-fill-column-indicator-mode. I have now fixed it on the emacs-27 branch. Many thanks to Amin for giving me access to a system where this could be easily reproduced.