From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Doug Davis Newsgroups: gmane.emacs.devel Subject: Re: [emacs-master] Frequent freezes on macOS Date: Tue, 19 Jan 2021 12:19:54 -0500 Message-ID: References: <010001771963787a-0fcd3ba3-764a-4f66-b59c-c1828b2503e8-000000@email.amazonses.com> <83zh156imm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14842"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: herbert@gojira.at, Pankaj Jangid , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 19 18:42:44 2021 Return-path: Envelope-to: ged-emacs-devel@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 1l1v1f-0003cl-LD for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 18:42:43 +0100 Original-Received: from localhost ([::1]:56068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1v1e-0001GM-Ch for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 12:42:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1ufj-0000JY-MJ for emacs-devel@gnu.org; Tue, 19 Jan 2021 12:20:03 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1ufg-0006nl-Li; Tue, 19 Jan 2021 12:20:03 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6E0465C023F; Tue, 19 Jan 2021 12:19:57 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 19 Jan 2021 12:19:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=5Oi6yPEIGdZ4vocP7O/L+hsxwC 49rbCRy9jG/55In1w=; b=hvA3nt8RHXm6WGScRQQSDh9yHuqsSkiH8nBJnPMids UKZq6u9v/Lt67ELxnmrUES9eMss1G2AYh/QeMp/IZKPWyjDWThPLavER1DxFVSpZ OLyPSsGq1/pFMj0eKTD3Iw0jghsMaYV0NB1GJj7h9QFpZJePyJtWBo7gvJl8iTlH IOIu5O4OOaVc6ibQcoW+ijlPlKJ5IzdANcfgJECP5f/CXG+Ru/wY/DtmpexKFAr8 rQ9gHTz41UdtBfmmwzOBiUL7RTP5PWPGkEVETm0aouZCL+ApXRDqAp8RhRUcuPzp bBrcRNTPIUtu62scAOoMWBWlZmoPNavnmUzxyH3ycm/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=5Oi6yP EIGdZ4vocP7O/L+hsxwC49rbCRy9jG/55In1w=; b=BsiyXxRCTQH6Et2u828ETQ QSFCsG/UBu0i8uZ9NerrHlzx5HCvZ7iqI8+L4Byj4bYjPJ6zM/vFBHYnKAXe+fX9 hO2+GKLv/d3TJfHM7yOXqFXK6R9qU/CxAIE4r1pas3m9KZ5/ogPc+cN1u3iyRkoP L+z+EpvSUXIZfaaiCGwYlehdAZNXvGYo7f58DYbsnO9Ie65tEEh5d8nzH/W3/9dz +worLZzO2B7ch+b83+hpa78XmRb337XwBdAWOMaPeRlvxNOVjpJULnvqzhhUMqiB aCTzUXliuJo79cGp/m5mNbXjiUCZJwhnqYoQ62I7LV9jsWwnXYzhm5MWsZWjNhhA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpeffohhughcu ffgrvhhishcuoeguuggrvhhishesuggurghvihhsrdhioheqnecuggftrfgrthhtvghrnh epgedtveffudeitdelveevkeeitedtleehgedugeeludfhheejffekjeffgeffleejnecu kfhppedvgedrleekrdejiedrkedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepuggurghvihhsseguuggrvhhishdrihho X-ME-Proxy: Original-Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id A8154240062; Tue, 19 Jan 2021 12:19:56 -0500 (EST) In-Reply-To: <83zh156imm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 19 Jan 2021 17:39:29 +0200") Received-SPF: pass client-ip=66.111.4.25; envelope-from=ddavis@ddavis.io; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263175 Archived-At: I've been able to reproduce the crash. Eli Zaretskii writes: > Can you attach a debugger to Emacs when it freezes, and show the > C-level backtrace? Here's my novice debugger attempt (apologies if it's not helpful); first after compiling with -O3 -g3: ddavis@charm ~/software/repos/emacs (HEAD detached at 8f0ce42d3e) $ lldb src/emacs (lldb) target create "src/emacs" Current executable set to '/Users/ddavis/software/repos/emacs/src/emacs' (arm64). (lldb) run Process 28189 launched: '/Users/ddavis/software/repos/emacs/src/emacs' (arm64) 2021-01-19 11:30:20.006114-0500 emacs[28189:1400131] fopen failed for data file: errno = 2 (No such file or directory) 2021-01-19 11:30:20.006128-0500 emacs[28189:1400131] Errors found! Invalidating cache... Process 28189 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 libsystem_kernel.dylib`read: -> 0x18cc708d0 <+8>: b.lo 0x18cc708f0 ; <+40> 0x18cc708d4 <+12>: pacibsp 0x18cc708d8 <+16>: stp x29, x30, [sp, #-0x10]! 0x18cc708dc <+20>: mov x29, sp Target 0: (emacs) stopped. (lldb) bt Process 28189 exited with status = 0 (0x00000000) Terminated due to signal 9 warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available. * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM * frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 frame #1: 0x00000001000de1c8 emacs`emacs_read [inlined] emacs_intr_read(fd=17, buf=0x000000016fdfbb3f, nbyte=, interruptible=) at sysdep.c:2486:16 [opt] frame #2: 0x00000001000de1b8 emacs`emacs_read(fd=, buf=, nbyte=) at sysdep.c:2500 [opt] and after compiling with -O0 -g3: ddavis@charm ~/software/repos/emacs (HEAD detached at 8f0ce42d3e) $ lldb src/emacs (lldb) target create "src/emacs" Current executable set to '/Users/ddavis/software/repos/emacs/src/emacs' (arm64). (lldb) run Process 60350 launched: '/Users/ddavis/software/repos/emacs/src/emacs' (arm64) Process 60350 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 libsystem_kernel.dylib`read: -> 0x18cc708d0 <+8>: b.lo 0x18cc708f0 ; <+40> 0x18cc708d4 <+12>: pacibsp 0x18cc708d8 <+16>: stp x29, x30, [sp, #-0x10]! 0x18cc708dc <+20>: mov x29, sp Target 0: (emacs) stopped. (lldb) thread list Process 60350 stopped * thread #1: tid = 0x1764c3, 0x000000018cc708d0 libsystem_kernel.dylib`read + 8, queue = 'com.apple.main-thread', stop reason = signal SIGTERM thread #4: tid = 0x1764f7, 0x000000018cc77e04 libsystem_kernel.dylib`poll + 8, name = 'gmain' thread #5: tid = 0x176508, 0x000000018cc7a0e8 libsystem_kernel.dylib`__select + 8 thread #6: tid = 0x176520, 0x000000018cc6fce8 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSEventThread' thread #36: tid = 0x178ca1, 0x000000018cc719c4 libsystem_kernel.dylib`__workq_kernreturn + 8 thread #38: tid = 0x1790f4, 0x000000018cc719c4 libsystem_kernel.dylib`__workq_kernreturn + 8 (lldb) thread backtrace all Process 60350 exited with status = 0 (0x00000000) Terminated due to signal 9 warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available. * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM * frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 frame #1: 0x0000000100170254 emacs`emacs_intr_read(fd=17, buf=, nbyte=, interruptible=) at sysdep.c:2486:16 thread #4, name = 'gmain' frame #0: 0xffffffffffffffff thread #5 frame #0: 0xffffffffffffffff thread #6, name = 'com.apple.NSEventThread' frame #0: 0xffffffffffffffff thread #36 frame #0: 0xffffffffffffffff thread #38 frame #0: 0xffffffffffffffff