From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sebastian Sturm Newsgroups: gmane.emacs.bugs Subject: bug#42088: [feature/native-comp] Lockup on opening TypeScript files Date: Sat, 27 Jun 2020 18:55:28 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="127649"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 To: 42088@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 27 18:56:09 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 1jpE7d-000X6v-99 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jun 2020 18:56:09 +0200 Original-Received: from localhost ([::1]:52034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpE7c-0004dB-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jun 2020 12:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpE7W-0004d2-FX for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2020 12:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpE7W-00058s-6p for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2020 12:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpE7W-0007n6-5G for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2020 12:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Sturm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jun 2020 16:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42088 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.159327693829916 (code B ref -1); Sat, 27 Jun 2020 16:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jun 2020 16:55:38 +0000 Original-Received: from localhost ([127.0.0.1]:44501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpE78-0007mS-3F for submit@debbugs.gnu.org; Sat, 27 Jun 2020 12:55:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpE76-0007mK-NV for submit@debbugs.gnu.org; Sat, 27 Jun 2020 12:55:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpE76-0004X5-Eb for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2020 12:55:36 -0400 Original-Received: from smtp-out003.kontent.com ([81.88.40.217]:40918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpE74-0004p9-CG for bug-gnu-emacs@gnu.org; Sat, 27 Jun 2020 12:55:36 -0400 Original-Received: from [192.168.178.115] (dslb-088-074-238-188.088.074.pools.vodafone-ip.de [88.74.238.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sebastian-sturm_de_1@smtp-out003.kontent.com) by smtp-out003.kontent.com (Postfix) with ESMTPSA id 58A09400E2226 for ; Sat, 27 Jun 2020 18:55:29 +0200 (CEST) Content-Language: en-US Received-SPF: none client-ip=81.88.40.217; envelope-from=mail@sebastian-sturm.de; helo=smtp-out003.kontent.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/27 12:55:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:182438 Archived-At: Apologies in advance for this being a very vague bug report, but I don't know how to properly debug this kind of issue (pointers appreciated!) I find that, using the latest version of gccemacs (commit #801e19d0ba8e048...) and typescript.el (commit #0fc729787007b5111f...) Emacs will lock up with 100% cpu usage whenever a TypeScript file is opened. Interrupting Emacs using SIGUSR2 produces the following backtrace: Debugger entered--entering a function: * #() typescript--ensure-cache(515) typescript--class-decl-matcher(515) font-lock-fontify-keywords-region(1 515 nil) font-lock-default-fontify-region(1 501 nil) font-lock-fontify-region(1 501) #f(compiled-function (fun) #)(font-lock-fontify-region) jit-lock--run-functions(1 501) jit-lock-fontify-now(1 501) jit-lock-function(1) redisplay_internal\ \(C\ function\)() I didn't spot any literal lambda within typescript--ensure-cache so I assume it's being generated by some macro? Adding the melpa package repository to the gccemacs docker image, installing typescript-mode and opening a .ts file also causes the Docker version to lock up with 100% CPU usage so I assume this is not caused by my config (trying to send SIGUSR2 to emacs terminated the entire container). If there's anything I can try out to debug this issue, I'll gladly do so. Thanks for your amazing work on gccemacs! Sebastian The following is extracted from the template produced by report-emacs-bug, though given that the Docker image locks up too, I guess most of it isn't of interest anyway: In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-06-27 built on cartman Repository revision: 801e19d0ba8e048a9faa5d5169ec4183e41b0148 Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Linux Mint 19.1 Recent messages: Doom loaded 235 packages across 53 modules in 0.672s Waiting for git... [2 times] Loading /home/sebastian/.emacs.d/.local/cache/recentf...done +Word-Wrap mode enabled in current buffer current-kill: Kill ring is empty Mark set [9 times] Configured using: 'configure --prefix=/usr/local/stow/gccemacs CC=gcc-10 'CFLAGS=-O3 -mtune=native -march=native -DNDEBUG' --with-nativecomp' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8