From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#48383: [native-compile] Debugging external package powerline.el Date: Mon, 17 May 2021 14:20:59 +0200 Message-ID: <86fsylr1p0.fsf@gnu.org> References: <867dk3hinn.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="23547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 Cc: 48383@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 17 14:22:50 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 1licGo-0005v8-2L for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 14:22:50 +0200 Original-Received: from localhost ([::1]:45318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1licGn-0001Cl-2B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 08:22:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1licG3-00012O-CY for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 08:22:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1licG1-0000ld-QZ for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 08:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1licG1-0008Jn-L0 for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 08:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 May 2021 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48383 X-GNU-PR-Package: emacs Original-Received: via spool by 48383-submit@debbugs.gnu.org id=B48383.162125409231937 (code B ref 48383); Mon, 17 May 2021 12:22:01 +0000 Original-Received: (at 48383) by debbugs.gnu.org; 17 May 2021 12:21:32 +0000 Original-Received: from localhost ([127.0.0.1]:52042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1licFU-0008J0-4j for submit@debbugs.gnu.org; Mon, 17 May 2021 08:21:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1licFP-0008Im-1o for 48383@debbugs.gnu.org; Mon, 17 May 2021 08:21:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38696) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1licFJ-0000JU-Gp; Mon, 17 May 2021 08:21:17 -0400 Original-Received: from p4fe3ec95.dip0.t-ipconnect.de ([79.227.236.149]:64150 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1licFF-0002u1-Gi; Mon, 17 May 2021 08:21:16 -0400 In-Reply-To: (Andrea Corallo's message of "Wed, 12 May 2021 19:49:20 +0000") 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:206701 Archived-At: Andrea Corallo writes: > if the compiler crashes I guess the next step is to debug it. Thanks for your response. In this case, the compiler doesn't crash. > But before doing that would be nice to isolate what's the function > that is causing the issue and create a reproducer. >From the discussion here[1], the problem seems to be the last line in this function provided by powerline.el[2]: (defun pl/pattern (lst) "Turn LST into an infinite pattern." (when lst (let ((pattern (cl-copy-list lst))) (setcdr (last pattern) pattern)))) ;; <== Problematic form Not being an Emacs issue, my question was if the native compiler could be more verbose about the error. > PS you can work around the issue of the startup adding powerline.el to > `native-comp-deferred-compilation-deny-list'. Thanks, this is what I did for now. Best, Arash Footnotes: [1] https://github.com/milkypostman/powerline/issues/187 [2] https://github.com/milkypostman/powerline/issues/187#issuecomment-836582479