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, 21 Mar 2020 22:22:32 +0100 Message-ID: References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <83r1xv73ze.fsf@gnu.org> <83imj5bdct.fsf@gnu.org> <83h7ylg0v6.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="90136"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (darwin) Cc: eggert@cs.ucla.edu, 39962@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 21 22:23: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 1jFlaM-000NKm-Fk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Mar 2020 22:23:14 +0100 Original-Received: from localhost ([::1]:41010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFlaL-0003qU-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Mar 2020 17:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53765) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFlaC-0003pk-CN for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 17:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFlaA-0003aE-8s for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 17:23:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFlaA-0003aA-5R for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 17:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFlaA-0006ua-1X for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 17:23:02 -0400 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, 21 Mar 2020 21:23:01 +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.158482576226520 (code B ref 39962); Sat, 21 Mar 2020 21:23:01 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 21 Mar 2020 21:22:42 +0000 Original-Received: from localhost ([127.0.0.1]:48291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFlZq-0006tg-2m for submit@debbugs.gnu.org; Sat, 21 Mar 2020 17:22:42 -0400 Original-Received: from smarthost-b.hosting2go.nl ([185.135.240.51]:49819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFlZn-0006tP-Qk for 39962@debbugs.gnu.org; Sat, 21 Mar 2020 17:22:40 -0400 X-ASG-Debug-ID: 1584825753-0a9db454e6114080001-PyL51Z Original-Received: from server24.hosting2go.nl (server24.hosting2go.nl [185.135.241.24]) by smarthost-b.hosting2go.nl with ESMTP id OQxLZCKM0nTqamCu (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39962@debbugs.gnu.org>; Sat, 21 Mar 2020 22:22:33 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Apparent-Source-IP: 185.135.241.24 Original-Received: (qmail 29526 invoked from network); 21 Mar 2020 21:22:33 -0000 Original-Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 21 Mar 2020 21:22:33 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Original-Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 0628EAC0453A; Sat, 21 Mar 2020 22:22:32 +0100 (CET) X-ASG-Orig-Subj: Re: bug#39962: 27.0.90; Crash in Emacs 27.0.90 In-Reply-To: (Pip Cet's message of "Thu, 19 Mar 2020 13:57:54 +0000") X-Barracuda-Connect: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Start-Time: 1584825753 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://185.135.240.51:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 12730 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_RULE7568M, BSF_SC0_MISMATCH_TO B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.80756 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 0.50 BSF_RULE7568M Custom Rule 7568M 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:177605 Archived-At: Pip Cet writes: > On Thu, Mar 19, 2020 at 1:23 PM Pieter van Oostrum > wrote: >> (gdb) p ((Lisp_Object) {(Lisp_Word) (0xd4269c0)}) >> $5 = XIL(0xd4269c0) >> (gdb) xsymbol >> $6 = (struct Lisp_Symbol *) 0x10de5f6d0 >> "" > > Okay, so that symbol is valid. > > I think it's not a coincidence this crash happens during > keyboard/mouse input. I'm attaching a patch which increases the window > for the race condition that I think is happening. It slows down Emacs > significantly, but it should still be almost usable. > > If you have the time, could you install the patch, start Emacs the > same way you did to produce your original crash, and do similar things > you did that time? If we're lucky, we'll be getting an assert failure > rather than mere corruption. > With that patch (the latest 0001-more-debugging.patch) Emacs gets extremely slow (about 10 times slower that normal). Also, while it is processing, it becomes completely unresponsive: the cursor becomes an spinning beach ball, it won't even resize the windows, or react to C-g. I got the old Marker corruption back. insdel.c:295: Emacs fatal error: assertion failed: m->bytepos >= m->charpos && m->bytepos - m->charpos <= Z_BYTE - Z Thread 3 hit Breakpoint 1, terminate_due_to_signal (sig=6, --Type for more, q to quit, c to continue without paging-- 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 0x00000001002a4a1b in die ( msg=0x10050ff60 "m->bytepos >= m->charpos && m->bytepos - m->charpos <= Z_BYTE - Z", file=0x10050fde3 "insdel.c", line=295) at alloc.c:7264 #2 0x0000000100233a24 in adjust_markers_for_insert (from=529592, from_byte=529598, to=529594, to_byte=529600, before_markers=false) at insdel.c:294 #3 0x0000000100234400 in insert_from_string_1 (string=XIL(0x11542c474), pos=0, pos_byte=0, nchars=2, nbytes=2, inherit=false, before_markers=false) at insdel.c:1060 #4 0x0000000100233d48 in insert_from_string (string=XIL(0x11542c474), pos=0, pos_byte=0, length=2, length_byte=2, inherit=false) at insdel.c:967 #5 0x00000001002ec552 in general_insert_function ( insert_func=0x100231fe0 , insert_from_string_func=0x100233cb0 , inherit=false, nargs=1, args=0x7ffeefbed388) at editfns.c:1334 #6 0x00000001002ec26b in Finsert (nargs=1, args=0x7ffeefbed388) at editfns.c:1370 #7 0x00000001003a7dd3 in exec_byte_code (bytestr=XIL(0x10d1be5f4), vector=XIL(0x10dba5245), maxdepth=make_fixnum(6), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:1075 #8 0x00000001003174b6 in funcall_lambda (fun=XIL(0x10dcbd9c5), nargs=1, arg_vector=0x7ffeefbee520) at eval.c:3067 #9 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbee518) at eval.c:2796 #10 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10d415114), vector=XIL(0x10dc9b965), maxdepth=make_fixnum(3), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #11 0x00000001003174b6 in funcall_lambda (fun=XIL(0x10dc9b9b5), nargs=0, arg_vector=0x7ffeefbef4f0) at eval.c:3067 #12 0x0000000100314c7e in Ffuncall (nargs=1, args=0x7ffeefbef4e8) at eval.c:2796 #13 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10b8d2fc4), vector=XIL(0x104c8b925), maxdepth=make_fixnum(4), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #14 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104c8b9c5), nargs=1, arg_vector=0x7ffeefbf04f0) at eval.c:3067 #15 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbf04e8) at eval.c:2796 #16 0x0000000100315d34 in call1 (fn=XIL(0x104c8b9c5), arg1=XIL(0x1e229380)) at eval.c:2654 #17 0x000000010037aaed in mapatoms_1 (sym=XIL(0x1e229380), function=XIL(0x104c8b9c5)) at lread.c:4380 #18 0x000000010037a98e in map_obarray (obarray=XIL(0x10e267435), fn=0x10037aad0 , arg=XIL(0x104c8b9c5)) at lread.c:4369 #19 0x000000010037aab1 in Fmapatoms (function=XIL(0x104c8b9c5), obarray=XIL(0x10e267435)) at lread.c:4391 --Type for more, q to quit, c to continue without paging-- #20 0x000000010031664c in funcall_subr (subr=0x10055b588, numargs=2, args=0x7ffeefbf0840) at eval.c:2869 #21 0x0000000100314c2e in Ffuncall (nargs=3, args=0x7ffeefbf0838) at eval.c:2794 #22 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10b8d2f84), vector=XIL(0x104c8b9f5), maxdepth=make_fixnum(6), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #23 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104c8bae5), nargs=0, arg_vector=0x7ffeefbf1860) at eval.c:3067 #24 0x0000000100314c7e in Ffuncall (nargs=1, args=0x7ffeefbf1858) at eval.c:2796 #25 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10b8c51d4), vector=XIL(0x104ca2dd5), maxdepth=make_fixnum(6), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #26 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104ca3075), nargs=1, arg_vector=0x7ffeefbf29e0) at eval.c:3067 #27 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbf29d8) at eval.c:2796 #28 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10b8dbb14), vector=XIL(0x1057428e5), maxdepth=make_fixnum(3), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #29 0x00000001003174b6 in funcall_lambda (fun=XIL(0x105742965), nargs=1, arg_vector=0x7ffeefbf3d40) at eval.c:3067 #30 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbf3d38) at eval.c:2796 #31 0x0000000100311165 in Fapply (nargs=3, args=0x7ffeefbf3d38) at eval.c:2377 #32 0x0000000100316506 in funcall_subr (subr=0x100559368, numargs=3, args=0x7ffeefbf3d38) at eval.c:2847 #33 0x0000000100314c2e in Ffuncall (nargs=4, args=0x7ffeefbf3d30) at eval.c:2794 #34 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10612797c), vector=XIL(0x105742635), maxdepth=make_fixnum(5), args_template=make_fixnum(128), nargs=0, args=0x7ffeefbf4ce0) at bytecode.c:633 #35 0x0000000100316d15 in funcall_lambda (fun=XIL(0x105742665), nargs=0, arg_vector=0x7ffeefbf4ce0) at eval.c:2989 #36 0x0000000100314c7e in Ffuncall (nargs=1, args=0x7ffeefbf4cd8) at eval.c:2796 #37 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10b8d46d4), vector=XIL(0x10570e495), maxdepth=make_fixnum(7), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #38 0x00000001003174b6 in funcall_lambda (fun=XIL(0x10570e665), nargs=0, arg_vector=0x7ffeefbf5dd0) at eval.c:3067 #39 0x0000000100314c7e in Ffuncall (nargs=1, args=0x7ffeefbf5dc8) at eval.c:2796 #40 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10d106884), vector=XIL(0x104c9d3d5), maxdepth=make_fixnum(7), args_template=XIL(0), --Type for more, q to quit, c to continue without paging-- nargs=0, args=0x0) at bytecode.c:633 #41 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104c9d665), nargs=0, arg_vector=0x7ffeefbf6fc0) at eval.c:3067 #42 0x0000000100314c7e in Ffuncall (nargs=1, args=0x7ffeefbf6fb8) at eval.c:2796 #43 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10450fb84), vector=XIL(0x104c9fc35), maxdepth=make_fixnum(2), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #44 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104c9fc95), nargs=1, arg_vector=0x7ffeefbf8310) at eval.c:3067 #45 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbf8308) at eval.c:2796 #46 0x0000000100311165 in Fapply (nargs=3, args=0x7ffeefbf8308) at eval.c:2377 #47 0x0000000100316506 in funcall_subr (subr=0x100559368, numargs=3, args=0x7ffeefbf8308) at eval.c:2847 #48 0x0000000100314c2e in Ffuncall (nargs=4, args=0x7ffeefbf8300) at eval.c:2794 #49 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10612797c), vector=XIL(0x104c9f995), maxdepth=make_fixnum(5), args_template=make_fixnum(128), nargs=0, args=0x7ffeefbf92b0) at bytecode.c:633 #50 0x0000000100316d15 in funcall_lambda (fun=XIL(0x104c9f9c5), nargs=0, arg_vector=0x7ffeefbf92b0) at eval.c:2989 #51 0x0000000100314c7e in Ffuncall (nargs=1, args=0x7ffeefbf92a8) at eval.c:2796 #52 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10d1018c4), vector=XIL(0x1056f6405), maxdepth=make_fixnum(9), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #53 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104ca02a5), nargs=1, arg_vector=0x7ffeefbfa4c0) at eval.c:3067 #54 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbfa4b8) at eval.c:2796 #55 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10d107ee4), vector=XIL(0x104cb0ac5), maxdepth=make_fixnum(2), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #56 0x00000001003174b6 in funcall_lambda (fun=XIL(0x104cb0b25), nargs=2, arg_vector=0x7ffeefbfb810) at eval.c:3067 #57 0x0000000100314c7e in Ffuncall (nargs=3, args=0x7ffeefbfb808) at eval.c:2796 #58 0x00000001003111f8 in Fapply (nargs=3, args=0x7ffeefbfb808) at eval.c:2381 #59 0x0000000100316506 in funcall_subr (subr=0x100559368, numargs=3, args=0x7ffeefbfb808) at eval.c:2847 #60 0x0000000100314c2e in Ffuncall (nargs=4, args=0x7ffeefbfb800) at eval.c:2794 #61 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10612797c), vector=XIL(0x104cb08b5), maxdepth=make_fixnum(5), args_template=make_fixnum(128), nargs=1, args=0x7ffeefbfca50) --Type for more, q to quit, c to continue without paging-- at bytecode.c:633 #62 0x0000000100316d15 in funcall_lambda (fun=XIL(0x104cb08e5), nargs=1, arg_vector=0x7ffeefbfca50) at eval.c:2989 #63 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbfca48) at eval.c:2796 #64 0x00000001002fda4a in Ffuncall_interactively (nargs=2, args=0x7ffeefbfca48) at callint.c:254 #65 0x0000000100316506 in funcall_subr (subr=0x100558d98, numargs=2, args=0x7ffeefbfca48) at eval.c:2847 #66 0x0000000100314c2e in Ffuncall (nargs=3, args=0x7ffeefbfca40) at eval.c:2794 #67 0x00000001003012f4 in Fcall_interactively (function=XIL(0x4c867c0), record_flag=XIL(0), keys=XIL(0x15a8034f5)) at callint.c:783 #68 0x0000000100316682 in funcall_subr (subr=0x100558d68, numargs=3, args=0x7ffeefbfd9c0) at eval.c:2872 #69 0x0000000100314c2e in Ffuncall (nargs=4, args=0x7ffeefbfd9b8) at eval.c:2794 #70 0x00000001003a525f in exec_byte_code (bytestr=XIL(0x10623df8c), vector=XIL(0x10623dadd), maxdepth=make_fixnum(13), args_template=make_fixnum(1025), nargs=1, args=0x7ffeefbfea28) at bytecode.c:633 #71 0x0000000100316d15 in funcall_lambda (fun=XIL(0x10623daad), nargs=1, arg_vector=0x7ffeefbfea20) at eval.c:2989 #72 0x0000000100314c7e in Ffuncall (nargs=2, args=0x7ffeefbfea18) at eval.c:2796 #73 0x0000000100315d34 in call1 (fn=XIL(0x3960), arg1=XIL(0x4c867c0)) at eval.c:2654 #74 0x00000001001c74f0 in command_loop_1 () at keyboard.c:1463 #75 0x000000010030d63f in internal_condition_case ( bfun=0x1001c6790 , handlers=XIL(0x90), hfun=0x1001e9e50 ) at eval.c:1355 #76 0x00000001001e9d31 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1091 #77 0x000000010030c778 in internal_catch (tag=XIL(0xc450), func=0x1001e9d00 , arg=XIL(0)) at eval.c:1116 #78 0x00000001001c5805 in command_loop () at keyboard.c:1070 #79 0x00000001001c55d7 in recursive_edit_1 () at keyboard.c:714 #80 0x00000001001c5a86 in Frecursive_edit () at keyboard.c:786 #81 0x00000001001c25ee in main (argc=1, argv=0x7ffeefbff660) at emacs.c:2054 [New Thread 0x240f of process 5346] Lisp Backtrace: "vm-set-summary-pointer" (0xefbee520) "vm-do-needed-summary-rebuild" (0xefbef4f0) 0x4c8b9c0 PVEC_COMPILED "mapatoms" (0xefbf0840) "vm-update-summary-and-mode-line" (0xefbf1860) 0x4ca3070 PVEC_COMPILED --Type for more, q to quit, c to continue without paging-- "ad-Advice-vm-decode-mime-message" (0xefbf3d40) "apply" (0xefbf3d38) "vm-decode-mime-message" (0xefbf4ce0) "vm-show-current-message" (0xefbf5dd0) 0x4c9d660 PVEC_COMPILED "ad-Advice-vm-present-current-message" (0xefbf8310) "apply" (0xefbf8308) "vm-present-current-message" (0xefbf92b0) 0x4ca02a0 PVEC_COMPILED "ad-Advice-vm-scroll-forward" (0xefbfb810) "apply" (0xefbfb808) "vm-scroll-forward" (0xefbfca50) "funcall-interactively" (0xefbfca48) "call-interactively" (0xefbfd9c0) "command-execute" (0xefbfea20) (gdb) -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]