From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pieter van Oostrum Newsgroups: gmane.emacs.bugs Subject: bug#39962: 27.0.90; Crash in Emacs 27.0.90 Date: Sat, 07 Mar 2020 12:06:50 +0100 Message-ID: References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <835zfgbo6f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44640"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (darwin) Cc: 39962@debbugs.gnu.org, Pieter van Oostrum To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 07 12:07:14 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 1jAXIX-000BWF-9A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 12:07:13 +0100 Original-Received: from localhost ([::1]:47284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAXIW-0006SL-A6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 06:07:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42717) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAXIO-0006Qq-AX for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 06:07:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAXIM-0003ig-W1 for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 06:07:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40329) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAXIM-0003iY-SS for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 06:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAXIM-0005ka-OL for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 06:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2020 11:07: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.158357921922088 (code B ref 39962); Sat, 07 Mar 2020 11:07:02 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 7 Mar 2020 11:06:59 +0000 Original-Received: from localhost ([127.0.0.1]:46301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAXIJ-0005kC-DY for submit@debbugs.gnu.org; Sat, 07 Mar 2020 06:06:59 -0500 Original-Received: from [145.132.212.31] (port=49793 helo=cochabamba.vanoostrum.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAXIH-0005jy-CL for 39962@debbugs.gnu.org; Sat, 07 Mar 2020 06:06:58 -0500 Original-Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 57C41AA7D607; Sat, 7 Mar 2020 12:06:51 +0100 (CET) In-Reply-To: <835zfgbo6f.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Mar 2020 09:48:40 +0200") 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:177001 Archived-At: Eli Zaretskii writes: >> Date: Sat, 7 Mar 2020 00:55:39 +0100 >> From: Pieter van Oostrum >> >> I got a segmentation fault in Emacs. I read my email with VM >> (Viewmail), and I had a few fairly large mailboxes open when Emacs >> crashed. I had a few other cases where it crashed under similar >> circumstances, but other cases where it ran without problems. >> >> I have the crashed instance under gdb, and I will keep it some time >> there to be able to extract more info. For the time being it looks >> like it is in the garbage collector. >> >> The backtrace is very large, so it could be a stack overflow. > > Please show the first few backtrace frames (with "bt 10", for > example), they are important for trying to figure out whether this was > a stack overflow or something else. I managed to reproduce another crash, but now it gives an assertion failure rather than a segmentation violation, which is much better IMHO. insdel.c:295: Emacs fatal error: assertion failed: m->bytepos >= m->charpos && m->bytepos - m->charpos <= Z_BYTE - Z --Type for more, q to quit, c to continue without paging-- insdel.c:295: Emacs fatal error: assertion failed: m->bytepos >= m->charpos && m->bytepos - m->charpos <= Z_BYTE - Z --Type for more, q to quit, c to continue without paging-- 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 10 #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:371 #1 0x00000001002a4abb in die ( msg=0x10050ff57 "m->bytepos >= m->charpos && m->bytepos - m->charpos <= Z_BYTE - Z", file=0x10050fdda "insdel.c", line=295) at alloc.c:7246 #2 0x0000000100233af4 in adjust_markers_for_insert (from=36399, from_byte=36399, to=36401, to_byte=36401, before_markers=false) at insdel.c:294 #3 0x00000001002344d0 in insert_from_string_1 (string=XIL(0x15b29a904), pos=0, pos_byte=0, nchars=2, nbytes=2, inherit=false, before_markers=false) at insdel.c:1060 #4 0x0000000100233e18 in insert_from_string (string=XIL(0x15b29a904), pos=0, pos_byte=0, length=2, length_byte=2, inherit=false) at insdel.c:967 #5 0x00000001002ec4c2 in general_insert_function ( insert_func=0x1002320b0 , insert_from_string_func=0x100233d80 , inherit=false, nargs=1, args=0x7ffeefbf5ce8) at editfns.c:1334 #6 0x00000001002ec1db in Finsert (nargs=1, args=0x7ffeefbf5ce8) at editfns.c:1370 #7 0x00000001003a7d53 in exec_byte_code (bytestr=XIL(0x10d25eb84), vector=XIL(0x10e0fc055), maxdepth=make_fixnum(6), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:1075 #8 0x0000000100317436 in funcall_lambda (fun=XIL(0x10e0fde35), nargs=1, arg_vector=0x7ffeefbf6e80) at eval.c:3067 #9 0x0000000100314bfe in Ffuncall (nargs=2, args=0x7ffeefbf6e78) at eval.c:2796 (More stack frames follow...) [New Thread 0x1c8f of process 52920] [New Thread 0x521b of process 52920] Lisp Backtrace: Cannot access memory at address 0xcfeb5c0 (gdb) -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]