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#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Thu, 18 Mar 2021 18:02:16 +0200 Message-ID: <83tup8fo1j.fsf@gnu.org> References: <87im5ofp3z.fsf@md5i.com> <87czvwfoys.fsf@md5i.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47244@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 17:27:17 2021 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 1lMvUT-0001VO-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 17:27:17 +0100 Original-Received: from localhost ([::1]:39202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMvUS-0008PH-9s for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 12:27:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMv70-0000zA-3N for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 12:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMv6z-0001re-RC for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 12:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMv6z-0001vK-Mf for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 12:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Mar 2021 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47244 X-GNU-PR-Package: emacs Original-Received: via spool by 47244-submit@debbugs.gnu.org id=B47244.16160833457316 (code B ref 47244); Thu, 18 Mar 2021 16:03:01 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 18 Mar 2021 16:02:25 +0000 Original-Received: from localhost ([127.0.0.1]:47837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMv6O-0001tw-Mq for submit@debbugs.gnu.org; Thu, 18 Mar 2021 12:02:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMv6N-0001tf-4X for 47244@debbugs.gnu.org; Thu, 18 Mar 2021 12:02:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58206) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMv6H-0001P0-OQ; Thu, 18 Mar 2021 12:02:17 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4979 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lMv6G-0000su-Qo; Thu, 18 Mar 2021 12:02:17 -0400 In-Reply-To: <87czvwfoys.fsf@md5i.com> (message from Michael Welsh Duggan on Thu, 18 Mar 2021 11:42:19 -0400) 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:202622 Archived-At: > From: Michael Welsh Duggan > Date: Thu, 18 Mar 2021 11:42:19 -0400 > > I have managed to catch a SEGFAULT in a long-running Emacs in the > debugger. I've been unable to recreate this SEGFAULT on demand, but it > seems to be happening when I am attempting to "reset" gnus after > switching my work VPN on/off. I will keep the gdb session up an running > in case there is some more that can be done with this. > > > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) > of 2021-03-07 built on miko > Repository revision: c63d2ef59c511c1c48c69a202907b7edfcbb19b3 > Repository branch: md5i This is a build from several days ago, and on some branch that is probably a local branch. Do the line numbers still correspond to what's on the current master? > #0 0x00005555555e1a61 in redisplay_internal () > at ../../master/src/xdisp.c:15789 The line number here corresponds to this in the current sources: if (CHARPOS (tlbufpos) > BEGV && FETCH_BYTE (BYTEPOS (tlbufpos) - 1) != '\n' <<<<<<<<<<<<<<<<< && (CHARPOS (tlbufpos) == ZV || FETCH_BYTE (BYTEPOS (tlbufpos)) == '\n')) Is that so in your sources as well? If so, I'm not sure I understand how this could segfault, given that tlbufpos is 127. What is the value of ZV? And what does the following produce: (gdb) p current_buffer->text->beg