From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs crashes when writting JavaScript Date: Wed, 18 Sep 2019 15:18:45 +0300 Message-ID: <83k1a5vlui.fsf@gnu.org> References: <87v9tqcd57.fsf.ref@yahoo.com.mx> <87v9tqcd57.fsf@yahoo.com.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="166461"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Jorge Javier Araya Navarro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 18 14:19:49 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAYw0-000h5g-Tr for ged-emacs-devel@m.gmane.org; Wed, 18 Sep 2019 14:19:49 +0200 Original-Received: from localhost ([::1]:58224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAYvu-0004ml-JP for ged-emacs-devel@m.gmane.org; Wed, 18 Sep 2019 08:19:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52280) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAYv0-0004mY-GG for emacs-devel@gnu.org; Wed, 18 Sep 2019 08:18:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iAYv0-0002zQ-AA; Wed, 18 Sep 2019 08:18:46 -0400 Original-Received: from [176.228.60.248] (port=4492 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iAYuz-0001wT-Pv; Wed, 18 Sep 2019 08:18:46 -0400 In-reply-to: <87v9tqcd57.fsf@yahoo.com.mx> (message from Jorge Javier Araya Navarro on Wed, 18 Sep 2019 00:49:24 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240133 Archived-At: > From: Jorge Javier Araya Navarro > Date: Wed, 18 Sep 2019 00:49:24 -0600 > > I'm using Emacs 27.x compiled from the master branch. I have noticed that after several hours of > work Emacs tends to crash or complete freeze the entire OS when I work on JavaScript code. I have > prettier-js which prettifies the source after saving the file to disk, but not sure if this could be > related. I also have suspicions on the parser of JS code, but because I have no idea how or where it > keeps the AST, I can't be sure if that is related to the crashes too, I come to notice that under > some circumstances –when the JSX code is fairly large and complex– Emacs slows down and feels heavy > sort-of-speak. > > I would like to know if there is a way to monitor Emacs on a normal run and after it crashes get > back something that can help debugging whatever the issue happens to be. This behavior has become > recurrent during this month, IIRC. Run Emacs under GDB, and when it crashes, produce a C-level backtrace and report it with all the details to the bug tracker (M-x report-emacs-bug). Thanks.