From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.bugs Subject: bug#44506: 28.0.50; Segfault on opening a particular message in Gnus in terminal/tty Date: Sat, 07 Nov 2020 15:03:53 -0500 Organization: GNU Message-ID: <874km1djdi.fsf@gnu.org> References: <87sg9l57vx.fsf@gnu.org> <83zh3t56zd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eric Abrahamsen , 44506@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 07 21:05:11 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 1kbUSU-0002gi-W3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 21:05:10 +0100 Original-Received: from localhost ([::1]:47476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbUSU-00055x-0z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 15:05:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbUSM-00055T-TH for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 15:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbUSM-00038P-Iz for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 15:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbUSM-0007BR-6f; Sat, 07 Nov 2020 15:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 07 Nov 2020 20:05: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.160477944327498 (code B ref 44506); Sat, 07 Nov 2020 20:05:02 +0000 Original-Received: (at 44506) by debbugs.gnu.org; 7 Nov 2020 20:04:03 +0000 Original-Received: from localhost ([127.0.0.1]:59292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbURP-00079S-5Q for submit@debbugs.gnu.org; Sat, 07 Nov 2020 15:04:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbURO-00078t-3v for 44506@debbugs.gnu.org; Sat, 07 Nov 2020 15:04:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36444) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbURI-00034U-7p; Sat, 07 Nov 2020 15:03:56 -0500 Original-Received: from [2607:fea8:3fdf:f688:2969:6d76:9383:bd3a] (port=34160 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbURH-00089Y-Jm; Sat, 07 Nov 2020 15:03:55 -0500 In-Reply-To: <83zh3t56zd.fsf@gnu.org> 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:192852 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Amin Bandali >> Date: Sat, 07 Nov 2020 13:39:14 -0500 >>=20 >> I noticed today that when trying to open the following message (attached >> with John's permission) using Gnus in a terminal emulator or a tty in >> GNU/Linux, it results in Emacs quitting with a segfault. I'm also >> attaching the result of running `bt full' in GDB after the segfault. >> The issue seems related in part to the inclusion of Persian characters >> in the message body. > > Just visiting the text you send in "emacs -Q -nw" doesn't cause any > segfaults. Does it happen to you in "emacs -Q"? > It does not indeed. With -Q, visiting the message body saved into a regular text file or opening the actual message using Gnus does not result in a segfault. After some bisecting of my config files, I narrowed the segaulting of Gnus when opening that message down to inclusion of (require 'ebdb-gnus) in my configs. ebdb-gnus is part of EBDB, available on GNU ELPA. I'm Cc'ing Eric, EBDB's creator and maintainer, in case he might have any ideas. >> #0 0x0000555555639248 in encode_terminal_code (src=3D0x7ffff7f61cc0, >> src_len=3Dsrc_len@entry=3D1, coding=3Dcoding@entry=3D0x555555e7ec00) at >> term.c:564 >> cmp =3D 0x0 >> gstring =3D 0x0 >> i =3D >> src_end =3D 0x7ffff7f61cf0 >> buf =3D 0x5555561483a0 ' ' , "John =D8=8C=D9= =85=D8=AA=D8=B3=D9=88=D8=AF >> =DB=8C=D8=B3=D8=B1", '-' >> nchars =3D 0 >> nbytes =3D 0 >> required =3D >> tbase =3D 0x0 >> charset_list =3D 0x7fffea1f724b > > This is an optimized build, so it's hard to understand what caused the > crash. According to the line number, it crashes here: > > if (src->u.cmp.automatic) > { > gstring =3D composition_gstring_from_id (src->u.cmp.id); > required =3D src->slice.cmp.to - src->slice.cmp.from + 1; > } > else > { > cmp =3D composition_table[src->u.cmp.id]; <<<<<<<<<<<<<<< > required =3D cmp->glyph_len; > } > > If that is true, then I don't understand how it happened: we don't use > any compositions except automatic in Emacs, so I'm unsure how you get > to that place. Can you see which place in the code indeed crashes and > why? > GDB's source display does indeed highlight that line for me. Is this the confirmation you were looking for, or did you mean I should look into disabling optimization and *then* run Emacs through GDB to collect the backtrace? Thanks for your help. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCgAuFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl+m/akQHGJhbmRhbGlA Z251Lm9yZwAKCRCLRKDNx7lW8kHHD/9Hi+6L1PA6+NDhwK0BgYNgq8vReNCrI5VK ezjXIXH4p+ZPIp1cXuc7Qq73dWJHSiCnr1GuSpvK2OMWXSAXgMH9eeuAZfABrZ/c R6FEDzsGQ2nRZMsRnykK+ZtHNg3B8qfEe472BKOg2jr97oeUQQqje+aKYn4xDMuo PLnFJQcNG9C4ebRsYO7OI68NNF22+TFUu3SnloXyKgJLSB9TTgq6+jdJ0J5XCqnY 37atDCw3yvxLiq6e0XA1aU+sPNzadKB+4nK3BlRmeEnxXVgoWcA8z/7XXgA4wcT0 AugI1ooXO/gwoe1Ky2CQCwxdnoruy7E28DCNmL6YvjUnTaQFzDeKr+qgcngC6NCo XWsVtK6XoeF4rQCEfhPkOPIUKMcybK2jBoui/KhpTue4zamIdCbZqzIagJ/pv7HV LHXEfJT5+ZWf2RN5uYT9FqeGIm+E6VxdCY1oVdPW/R6lHwPOnG/4XsXadntHceNy bLe16SVflDPtSOPlqYaMWTCVTzf/a/BVSTk+HsI5B/VZRf82fEBU1a/NbU1FZrFl pshoOh+VGzQMPGtS2NfgRjHzE2pxO/Pf5XN/pL+6umV3DGVREmVvASawjfKp9LVY r10I/6qNEJKvhABph3G52QE/r+HmYl/BvwlxcukiHxjH+aUibQmNPBZwHidlVgD5 uji3RAIyiA== =1svF -----END PGP SIGNATURE----- --=-=-=--