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: Wed, 11 Mar 2020 21:03:14 +0100 Message-ID: References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <329e58b1-6255-311e-bdd8-b6f5b3d5208f@cs.ucla.edu> <22225b66-44f6-d132-3036-92181d53c28d@cs.ucla.edu> <89A83582-358F-43DC-B96E-04EE9D655D5F@vanoostrum.org> <63b88e2d-9888-f3ce-a4b0-fcf344e803e5@cs.ucla.edu> <83d09lbgk5.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="112782"; 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, Paul Eggert To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 11 21:04:33 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 1jC7ai-000TAo-G0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Mar 2020 21:04:32 +0100 Original-Received: from localhost ([::1]:57704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC7ah-0003Mn-HK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Mar 2020 16:04:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38891) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC7aF-00033A-Bp for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 16:04:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC7aE-0005Tk-46 for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 16:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC7aE-0005Tg-12 for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 16:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC7aD-0000OM-TR for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 16:04:01 -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: Wed, 11 Mar 2020 20:04: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.15839570051456 (code B ref 39962); Wed, 11 Mar 2020 20:04:01 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 11 Mar 2020 20:03:25 +0000 Original-Received: from localhost ([127.0.0.1]:55585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC7Zd-0000NQ-53 for submit@debbugs.gnu.org; Wed, 11 Mar 2020 16:03:25 -0400 Original-Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:39371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC7Zb-0000N6-30 for 39962@debbugs.gnu.org; Wed, 11 Mar 2020 16:03:23 -0400 X-ASG-Debug-ID: 1583956996-0a9db43b8833827d0001-PyL51Z Original-Received: from server24.hosting2go.nl (server24.hosting2go.nl [185.135.241.24]) by smarthost-b.hosting2go.nl with ESMTP id tq5XtQG3B2J69mLC (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39962@debbugs.gnu.org>; Wed, 11 Mar 2020 21:03:16 +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 20323 invoked from network); 11 Mar 2020 20:03:16 -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; 11 Mar 2020 20:03:16 -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 0E105AADF63D; Wed, 11 Mar 2020 21:03:15 +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 "Wed, 11 Mar 2020 15:43:18 +0000") X-Barracuda-Connect: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Start-Time: 1583956996 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 2955 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.80607 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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:177199 Archived-At: Pip Cet writes: > On Wed, Mar 11, 2020 at 3:16 PM Pieter van Oostrum > wrote: >> > (prog1 >> > (let ((temp-buffer (generate-new-buffer " *temp*"))) >> > (prog1 >> > temp-buffer >> > (kill-buffer temp-buffer) >> > (setq temp-buffer nil))) >> > (garbage-collect)) >> >> That crash shouldn't happen, so it has to be found what causes it. > > The attached patch should fix things. With this patch I still get a crash. This time a sementation violation again in the garbage collector. So that doesn't solve the problem I am encountering. GDB bailed out for some reason (I get the impression that GDB on MacOS isn't very stable). But here is what I got: Thread 3 received signal SIGSEGV, Segmentation fault. 0x00000001002b5000 in vector_marked_p (v=0x160249fd0) at alloc.c:3715 3715 if (pdumper_object_p (v)) (gdb) bt 10 #0 0x00000001002b5000 in vector_marked_p (v=0x160249fd0) at alloc.c:3715 #1 0x00000001002b369f in mark_object (arg=XIL(0x160249fd5)) at alloc.c:6480 #2 0x00000001002b5813 in mark_vectorlike (header=0x160249f50) at alloc.c:6157 #3 0x00000001002b391a in mark_object (arg=XIL(0x160249f55)) at alloc.c:6566 #4 0x00000001002b5813 in mark_vectorlike (header=0x160249e60) at alloc.c:6157 #5 0x00000001002b391a in mark_object (arg=XIL(0x160249e65)) at alloc.c:6566 #6 0x00000001002b3d33 in mark_object (arg=XIL(0x167929583)) at alloc.c:6628 #7 0x00000001002b3b04 in mark_object (arg=XIL(0x515dcd0)) at alloc.c:6585 #8 0x00000001002b5813 in mark_vectorlike (header=0x11ddd20f0) at alloc.c:6157 #9 0x00000001002b391a in mark_object (arg=XIL(0x11ddd20f5)) at alloc.c:6566 (More stack frames follow...) Warning: Cannot insert breakpoint 0. Cannot access memory at address 0x7ffeef270f7f Command aborted. An error occurred while in a function called from GDB. Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. [1]+ Stopped gdb ~/Projects/Emacs/nextstep/Emacs.app/Contents/MacOS/Emacs src $ bt -bash: bt: command not found src $ fg gdb ~/Projects/Emacs/nextstep/Emacs.app/Contents/MacOS/Emacs (gdb) bt #0 backtrace_top () at eval.c:176 Backtrace stopped: Cannot access memory at address 0x7ffeef270f68 Warning: Cannot insert breakpoint 0. Cannot access memory at address 0x7ffeef270edf Cannot insert breakpoint 0. Cannot access memory at address 0x7ffeef270f7f Command aborted. An error occurred while in a function called from GDB. Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. [1]+ Stopped gdb ~/Projects/Emacs/nextstep/Emacs.app/Contents/MacOS/Emacs -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]