Subject: Re: bug#48383: [native-compile] Debugging external package powerline.el

From: Arash Esbati <[email-masked]>
Date: Mon, 17 May 2021 14:20:59 +0200

Andrea Corallo <[email-masked]> 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