From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39962: 27.0.90; Crash in Emacs 27.0.90 Date: Tue, 17 Mar 2020 17:33:22 +0200 Message-ID: <83zhcff131.fsf@gnu.org> References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <83y2s48yn7.fsf@gnu.org> <83zhck6obg.fsf@gnu.org> <83r1xv73ze.fsf@gnu.org> <83imj5bdct.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="80593"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39962@debbugs.gnu.org, eggert@cs.ucla.edu, pipcet@gmail.com To: Pieter van Oostrum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 17 16:41:01 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 1jEEKy-000Klf-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Mar 2020 16:41:00 +0100 Original-Received: from localhost ([::1]:34990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEEKx-0003w6-HZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Mar 2020 11:40:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48817) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEEFF-0003mU-5J for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2020 11:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEEFD-0003xA-8u for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2020 11:35:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEEFC-0003vl-Ht for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2020 11:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEEFC-0003pf-BX for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2020 11:35: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, 17 Mar 2020 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39962 X-GNU-PR-Package: emacs Original-Received: via spool by 39962-submit@debbugs.gnu.org id=B39962.158445924714658 (code B ref 39962); Tue, 17 Mar 2020 15:35:02 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 17 Mar 2020 15:34:07 +0000 Original-Received: from localhost ([127.0.0.1]:39431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEEEJ-0003oL-8G for submit@debbugs.gnu.org; Tue, 17 Mar 2020 11:34:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEEEH-0003ns-Kl for 39962@debbugs.gnu.org; Tue, 17 Mar 2020 11:34:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEEEB-0007XY-CC; Tue, 17 Mar 2020 11:33:59 -0400 Original-Received: from [176.228.60.248] (port=4153 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jEEE6-0004pC-7G; Tue, 17 Mar 2020 11:33:58 -0400 In-Reply-To: (message from Pieter van Oostrum on Tue, 17 Mar 2020 04:29:09 +0100) 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177454 Archived-At: > From: Pieter van Oostrum > Cc: Eli Zaretskii , 39962@debbugs.gnu.org, eggert@cs.ucla.edu > Date: Tue, 17 Mar 2020 04:29:09 +0100 > > ./lisp.h:2623: Emacs fatal error: assertion failed: MARKERP (a) > > Thread 3 hit Breakpoint 1, terminate_due_to_signal (sig=6, > backtrace_limit=2147483647) at emacs.c:371 > 371 signal (sig, SIG_DFL); > (gdb) bt > #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:371 > #1 0x00000001002a4b2b in die (msg=0x1004f65cc "MARKERP (a)", > file=0x1004f0449 "./lisp.h", line=2623) at alloc.c:7249 > #2 0x000000010023c21f in XMARKER (a=XIL(0x12590f575)) at ./lisp.h:2623 > #3 0x000000010023cdc5 in marker_position (marker=XIL(0x12590f575)) > at marker.c:691 > #4 0x0000000100221335 in OVERLAY_POSITION (p=XIL(0x12590f575)) > at ./buffer.h:1394 > #5 0x00000001002268d7 in report_overlay_modification ( > start=make_fixnum(40255), end=make_fixnum(40255), after=false, > arg1=make_fixnum(40255), arg2=make_fixnum(40255), arg3=XIL(0)) > at buffer.c:4496 This is here: /* We are being called before a change. Scan the overlays to find the functions to call. */ last_overlay_modification_hooks_used = 0; for (struct Lisp_Overlay *tail = current_buffer->overlays_before; tail; tail = tail->next) { ptrdiff_t startpos, endpos; Lisp_Object ostart, oend; Lisp_Object overlay = make_lisp_ptr (tail, Lisp_Vectorlike); ostart = OVERLAY_START (overlay); oend = OVERLAY_END (overlay); endpos = OVERLAY_POSITION (oend); <<<<<<<<<<<<<<<< if (XFIXNAT (start) > endpos) break; startpos = OVERLAY_POSITION (ostart); Are this overlay's other fields valid? E.g., what about ostart -- is it a valid marker, and if so, what buffer does it point to? is that buffer identical to current_buffer? Also, can you go through this linked list of the overlays (it starts at current_buffer->overlays_before), and see if there are other overlays there that are similarly invalid? Likewise with overlays that start at current_buffer->overlays_after. And what is current_buffer, anyway? Any idea what are those overlays in that buffer? Btw, note that we again have mapatoms in the backtrace -- it definitely has something to do with this. Thanks.