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#58767: telega makes emacs crash (under an EXWM session?) Date: Tue, 25 Oct 2022 16:31:16 +0300 Message-ID: <83tu3sni6z.fsf@gnu.org> References: <87y1t43fkb.fsf@yahoo.com> <87tu3s2vtn.fsf@yahoo.com> <87lep42unz.fsf@yahoo.com> <87fsfc2pjl.fsf@yahoo.com> <837d0op23w.fsf@gnu.org> <83wn8onk2d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4426"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 58767@debbugs.gnu.org To: purity.piped@tuta.io Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 25 15:36:22 2022 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 1onK6P-0000sw-Av for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Oct 2022 15:36:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onK2h-0005mX-Em; Tue, 25 Oct 2022 09:32:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onK2F-0004pn-1b for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 09:32:19 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onK2E-0003Aa-IP for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 09:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onK2E-00015k-5z for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2022 09:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2022 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58767-submit@debbugs.gnu.org id=B58767.16667046954161 (code B ref 58767); Tue, 25 Oct 2022 13:32:02 +0000 Original-Received: (at 58767) by debbugs.gnu.org; 25 Oct 2022 13:31:35 +0000 Original-Received: from localhost ([127.0.0.1]:50719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onK1n-000153-8f for submit@debbugs.gnu.org; Tue, 25 Oct 2022 09:31:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onK1l-00014q-PB for 58767@debbugs.gnu.org; Tue, 25 Oct 2022 09:31:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onK1g-00038X-3s; Tue, 25 Oct 2022 09:31:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+p3+sPVsZ/FK74/DrvxPOQ0FhGh6jWROVgYzI+x4+pE=; b=W7gw/lYaJ7ZN Ue/kg+iVPzk+hRvvSMuM7046ckJtyrTA9840HEi78MUl8CFBduh50AsggBNzzWP2wEa1qA2UyeAJh aW55k+/kMdmcLZzHj8sQky+SzNYaVSu63NkyZApElP2CfS20TDt3nUCdRtX3i4ZqwUJedIaEzwEGo 3U+k6mQDQzpChv7iSFN9OHQUzDrJ0I4GeyOJijYvMHFFQxE6rRa0C47Vjyz6axIey4uejAd0J4Q3E 1QXH4Et/Dgp1yzCOUVujSDjZuO9bBfIPGFlUGOU+tuOWpTAVO2pCS3S3qpOB1sjC9X8JW6PEIwA/e aJubfaISYDrfsIi7PLaPNA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onK1f-0007xp-6O; Tue, 25 Oct 2022 09:31:27 -0400 In-Reply-To: <83wn8onk2d.fsf@gnu.org> (message from Eli Zaretskii on Tue, 25 Oct 2022 15:50:50 +0300) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246148 Archived-At: > Cc: luangruo@yahoo.com, 58767@debbugs.gnu.org > Date: Tue, 25 Oct 2022 15:50:50 +0300 > From: Eli Zaretskii > > > Date: Tue, 25 Oct 2022 14:10:12 +0200 (CEST) > > From: purity.piped@tuta.io > > Cc: Po Lu , 58767@debbugs.gnu.org > > > > What I do that makes emacs crash is just launch telega. Either via a keybind or m-x. > > So just "M-x telega RET" is enough to cause the crash? FTR: I tried to reproduce the crash, but couldn't get far enough: running "M-x telega" requires some server, which I don't have, and won't install. So someone who has that installed will need to debug this and tell me how come this code crashes. The abort is in this code in bidi.c: /* Don't move at end of buffer/string. */ else if (bidi_it->charpos < (string_p ? bidi_it->string.schars : ZV)) { /* Advance to the next character, skipping characters covered by display strings (nchars > 1). */ if (bidi_it->nchars <= 0) emacs_abort (); bidi_it->charpos += bidi_it->nchars; if (bidi_it->ch_len == 0) emacs_abort (); bidi_it->bytepos += bidi_it->ch_len; prev_type = bidi_it->orig_type; } The backtrace points to the first call to emacs_abort, but since this is an optimized build, it could be the second one as well. These situations "should not happen", ever. So I must understand what kind of buffer or string text we bumped into that caused this, it should be something highly unusual.