From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=89douard?= Debry Newsgroups: gmane.emacs.bugs Subject: bug#45751: [feature/native-comp] emacs keeps running 100% of CPU Date: Mon, 11 Jan 2021 00:05:43 +0100 Message-ID: <87im84jsu0.fsf@gmail.com> References: <87k0slu13n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18262"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.0; emacs 28.0.50 Cc: 45751@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 00:07:08 2021 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 1kyjng-0004fr-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 00:07:08 +0100 Original-Received: from localhost ([::1]:40162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyjnf-0001wc-55 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jan 2021 18:07:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyjmc-0001PZ-W0 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 18:06:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyjmc-00060D-O8 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 18:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyjmc-0003Vh-Hc for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 18:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=89douard?= Debry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 23:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45751 X-GNU-PR-Package: emacs Original-Received: via spool by 45751-submit@debbugs.gnu.org id=B45751.161031996013485 (code B ref 45751); Sun, 10 Jan 2021 23:06:02 +0000 Original-Received: (at 45751) by debbugs.gnu.org; 10 Jan 2021 23:06:00 +0000 Original-Received: from localhost ([127.0.0.1]:55112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyjmZ-0003VP-RN for submit@debbugs.gnu.org; Sun, 10 Jan 2021 18:06:00 -0500 Original-Received: from mail-pj1-f41.google.com ([209.85.216.41]:55607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyjmX-0003Uu-7k for 45751@debbugs.gnu.org; Sun, 10 Jan 2021 18:05:58 -0500 Original-Received: by mail-pj1-f41.google.com with SMTP id p12so6660991pju.5 for <45751@debbugs.gnu.org>; Sun, 10 Jan 2021 15:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=KYRqH798VumwEzzF4EYVCn6muari7hluJEkAbGqZl9A=; b=NF+iDc8bTAcTfAVU16cutxbpapVwfB2LWMw3LxizuwS2zkLjivtMZZvykJtqXWpbYC +NzVR7orqY6Tyf3bIK+I05zN9JFxotx6iRWi0DIS+N1lEY7hKqPdcX1YzwdRVt2mAOq7 BDVuwxvyqGAtqXVH5dYUkW3sc7UI5Ym5ewf03nj4txDMo91JixGLBAEP7VtNRf/7T6mg CWfUUj5hr7fwAgiDVrXKNA9rXjLMJL/9ysTaszaz7fynWcXKxCuyPCuii3/SCPKF7Kf8 iRxarwKroyChrUI0sFt484/y5MHNjBiG74nxKZ5i+F2jm8dThJmoASZU81DiRu0yUepW 6DYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=KYRqH798VumwEzzF4EYVCn6muari7hluJEkAbGqZl9A=; b=WKSfgNSPTZ5JoYlvT5Z62c3hF4xUNbU3JYfDAxixftkY4kJRDiIcH8nUD2q8LmYMc3 B0I5nrejnoQj84yXX40qFGrhTdiAc2BB4zbP3z2TWeyVs/m59whC6HWv/1YwjSjyG08P VGK1dJ2LDGs8UVm2EPzy930W+oZycJQObAN4ee1Px9UgEfea1HhT7q0uWd3d96Q21VdO CaIr2/CFvuy9SFCd8nciuorbJio7XZvefwnkAPfPXw75W3EhuWrqILkIorSRgzlys71t xsaBo74ST42W4qONPHV0OpOemg/bghMNwK9huTwDMKNGlFEQrLeY+DPWGQdlGovfdkem 4Mkw== X-Gm-Message-State: AOAM531jG319wffJ25mtdIE6IrC+b+rULBnUgjWiK7nABex3Un0IlH99 LngceC4HgzwNZ3ZeQ6FFM3v4Tdb6cE0= X-Google-Smtp-Source: ABdhPJzk9BHyqRn5QKDn9+UMMytynn+gnhF8X5yzpVvcYukviSE40OBzrcy+9ZlFEdX1vsMnGoc6gQ== X-Received: by 2002:a17:90a:8985:: with SMTP id v5mr14458192pjn.27.1610319951339; Sun, 10 Jan 2021 15:05:51 -0800 (PST) Original-Received: from paquerette (176-142-29-14.abo.bbox.fr. [176.142.29.14]) by smtp.gmail.com with ESMTPSA id k125sm17853736pga.57.2021.01.10.15.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Jan 2021 15:05:50 -0800 (PST) In-reply-to: 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:197667 Archived-At: On dim., janv. 10 2021, Andrea Corallo wrote: > =C3=89douard Debry writes: > >> I noticed that when launching emacs on linux (debian buster), >> it keeps on running 100% of the CPU and seems to gradually eat=20 >> all >> memory, approximately 1-2% every minute. >> >> It seems related to native compiling. In the >> *Async-native-compile-log* I read : >> >> <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D> >> Compiling >> /home/edouard/.emacs.d/elpa/color-theme-sanityinc-solarized-20200805.603= /color-theme-sanityinc-solarized.el... > > I see a similar issue with sanityinc-tomorrow.el, the=20 > compilation is way > slower than any other one but it completes eventually. I guess=20 > is the > same issue you see and with sufficient RAM also=20 > sanityinc-solarized > should complete. > > In case of of sanityinc-tomorrow I think is because of > `color-theme-sanityinc-tomorrow'. This is a single function=20 > that after > macro expansion becomes enormous. > > We need to make the compiler robust against these corner cases,=20 > I'll > have a look this week into adding some logic for that. > > Thanks > > Andrea I have waited for approximately one hour and until linux became=20 totally unresponsive, I had to reboot. I am not 100% sure it is because of emacs compiling the color=20 theme package and eating all memory, but I never had such a crash on linux since I own this laptop and=20 I had exactly the same crash on windows 10 with emacs native-comp eating all memory. So most probably, my previous bug is related to that. I could try=20 another theme and see if this still happens. Regards