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#41321: 27.0.91; Emacs aborts due to invalid pseudovector objects Date: Sat, 16 May 2020 13:33:13 +0300 Message-ID: <83zha8cgpi.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13492"; mail-complaints-to="usenet@ciao.gmane.io" To: 41321@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 16 12:34:15 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 1jZu8z-0003M4-El for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 May 2020 12:34:13 +0200 Original-Received: from localhost ([::1]:42718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZu8y-0003z5-An for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 May 2020 06:34:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZu8p-0003yt-2H for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 06:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZu8o-0000Es-Oz for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 06:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZu8o-0006Wr-NJ for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 06:34: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: Sat, 16 May 2020 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41321 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158962521125058 (code B ref -1); Sat, 16 May 2020 10:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2020 10:33:31 +0000 Original-Received: from localhost ([127.0.0.1]:39842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZu8J-0006W5-4Q for submit@debbugs.gnu.org; Sat, 16 May 2020 06:33:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZu8E-0006Vv-Kf for submit@debbugs.gnu.org; Sat, 16 May 2020 06:33:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZu8E-0003wQ-EP for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 06:33:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39925) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZu8E-0000Aw-5q for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 06:33:26 -0400 Original-Received: from [176.228.60.248] (port=3758 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZu8D-0000z3-IW for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 06:33:25 -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:180381 Archived-At: I don't have a reproducible recipe, unfortunately. What happens is that Emacs aborts a short time after reverting a buffer (reverted because the file it is visiting was changed on disk). So far, I've seen this in a C Mode buffer reverted because "git pull" brought a modified version, and in an Info mode buffer reverted because the manual was rebuilt after the Texinfo sources were modified. In the latter case I captured a backtrace, see below. The problem seem to involve invalid markers, perhaps markers that were unchained and put on the free list (witness the PVEC_FREE object that caused the abort in the backtrace below, where Emacs seems to be trying to display an error message about an invalid marker). I don't think I saw such problems in Emacs 27.0.90, so I walked through all the changes since then till 27.0.91 release, but didn't see anything that could explain the problem. Needless to say, this is a serious problem, so I'd like to ask everyone to please run the latest pretest under a debugger and report any similar problems with all the details they can provide. Here's the backtrace and some additional information from the session where it happened last: Thread 1 hit Breakpoint 3, 0x77c36bb3 in msvcrt!abort () from C:\WINDOWS\system32\msvcrt.dll (gdb) bt #0 0x77c36bb3 in msvcrt!abort () from C:\WINDOWS\system32\msvcrt.dll #1 0x011cfdd8 in emacs_abort () at w32fns.c:10893 #2 0x01175f3a in print_vectorlike (obj=, printcharfun=XIL(0x30), escapeflag=escapeflag@entry=true, buf=buf@entry=0x82f07a "") at print.c:1830 #3 0x01172055 in print_object (obj=, printcharfun=XIL(0x30), escapeflag=true) at print.c:2148 #4 0x01172f04 in print (obj=, printcharfun=, escapeflag=, escapeflag@entry=true) at print.c:1147 #5 0x01173355 in Fprin1 (object=XIL(0xa00000001c9866d8), printcharfun=) at print.c:653 #6 0x0117483b in print_error_message (data=, stream=, context=, caller=) at print.c:979 #7 0x010c13c5 in Fcommand_error_default_function ( data=XIL(0xc000000000ff92e0), context=XIL(0x80000000058e9118), sys_signal=XIL(0x5d72548)) at keyboard.c:1029 #8 0x0114fb99 in funcall_subr (subr=, numargs=, numargs@entry=3, args=, args@entry=0x82f498) at eval.c:2872 #9 0x0114d9fd in Ffuncall (nargs=4, args=0x82f490) at eval.c:2794 #10 0x0114dca3 in Fapply (nargs=, args=) at eval.c:2424 #11 0x0114d9fd in Ffuncall (nargs=3, args=args@entry=0x82f590) at eval.c:2794 #12 0x0118eaf7 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=, nargs@entry=3, args=, args@entry=0x82f888) at bytecode.c:633 #13 0x0115125f in funcall_lambda (fun=, nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x82f888) at eval.c:2989 #14 0x0114d953 in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x82f880) at eval.c:2808 #15 0x01151d29 in call3 (fn=XIL(0xa000000005e00b20), arg1=XIL(0xc000000000ff92e0), arg2=XIL(0x80000000058e9118), arg3=XIL(0x5d72548)) at eval.c:2668 #16 0x010c5020 in cmd_error_internal (data=XIL(0xc000000000ff92e0), context=context@entry=0x82f92e "") at keyboard.c:984 #17 0x010c51e6 in cmd_error (data=XIL(0xc000000000ff92e0)) at keyboard.c:953 #18 0x0114c952 in internal_condition_case ( bfun=bfun@entry=0x10d0a0e , handlers=XIL(0x90), hfun=hfun@entry=0x10c5049 ) at eval.c:1351 #19 0x010bdbda in command_loop_2 (ignore=XIL(0)) at keyboard.c:1091 #20 0x0114c8a6 in internal_catch (tag=XIL(0xdfb0), func=func@entry=0x10bdbb3 , arg=XIL(0)) at eval.c:1116 #21 0x010bdb5d in command_loop () at keyboard.c:1070 #22 0x010c4bf3 in recursive_edit_1 () at keyboard.c:714 #23 0x010c4f0c in Frecursive_edit () at keyboard.c:786 #24 0x0124a4a4 in main (argc=, argv=) at emacs.c:2054 Lisp Backtrace: "command-error-default-function" (0x82f498) "apply" (0x82f598) 0x5e00b20 PVEC_COMPILED (gdb) fr 2 #2 0x01175f3a in print_vectorlike (obj=, printcharfun=XIL(0x30), escapeflag=escapeflag@entry=true, buf=buf@entry=0x82f07a "") at print.c:1830 1830 emacs_abort (); (gdb) fr 7 #7 0x010c13c5 in Fcommand_error_default_function ( data=XIL(0xc000000000ff92e0), context=XIL(0x80000000058e9118), sys_signal=XIL(0x5d72548)) at keyboard.c:1029 1029 print_error_message (data, Qt, SSDATA (context), signal); (gdb) p data $1 = XIL(0xc000000000ff92e0) (gdb) xtype Lisp_Cons (gdb) xcar $2 = 0xfd80 (gdb) xtype Lisp_Symbol (gdb) xsym xsymbol xsymname (gdb) xsymbol $3 = (struct Lisp_Symbol *) 0x15d9f60 "wrong-type-argument" (gdb) p data $4 = XIL(0xc000000000ff92e0) (gdb) xcdr $5 = 0xc000000000ff9300 (gdb) xtype Lisp_Cons (gdb) xcar $6 = 0x9810 (gdb) xtype Lisp_Symbol (gdb) xsymbol $7 = (struct Lisp_Symbol *) 0x15d39f0 "markerp" (gdb) p data $8 = XIL(0xc000000000ff92e0) (gdb) xcdr $9 = 0xc000000000ff9300 (gdb) xcdr $10 = 0xc000000000ff9310 (gdb) xtype Lisp_Cons (gdb) xcar $11 = 0xa00000001c9866d8 (gdb) xtype Lisp_Vectorlike PVEC_FREE (gdb) fr 17 #17 0x010c51e6 in cmd_error (data=XIL(0xc000000000ff92e0)) at keyboard.c:953 953 cmd_error_internal (data, macroerror); In GNU Emacs 27.0.91 (build 1, i686-pc-mingw32) of 2020-04-18 built on HOME-C4E4A596F7 Windowing system distributor 'Microsoft Corp.', version 5.1.2600 System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --prefix=/d/usr --with-wide-int --with-modules 'CFLAGS=-O2 -gdwarf-4 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 50536 10936) (symbols 48 7172 1) (strings 16 18837 2268) (string-bytes 1 532938) (vectors 16 9527) (vector-slots 8 127687 7318) (floats 8 21 170) (intervals 40 254 84) (buffers 888 11))