bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46256: [feature/native-comp] AOT eln files ignored if run from build


From: Andrea Corallo
Subject: bug#46256: [feature/native-comp] AOT eln files ignored if run from build tree
Date: Sat, 06 Mar 2021 18:31:05 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sat, 06 Mar 2021 17:35:15 +0200
>> From: Eli Zaretskii <eliz@gnu.org>
>> Cc: 46256@debbugs.gnu.org, andrewjmoreton@gmail.com
>> 
>> > The reproducer file is attached.  It is large, so I compressed it.
>> > Let me know if you see there anything that could explain the problem.
>> 
>> More info: if I set comp-speed to 0 or 1, the compilation of subr-x.el
>> doesn't crash.
>
> Here's the smallest part of subr-x which causes the crash:
>
> ;;; subr-x.el --- extra Lisp functions  -*- lexical-binding:t -*-
>
> (defun internal--build-bindings (bindings)
>   "Check and build conditional value forms for BINDINGS."
>   (let ((prev-var t))
>     (mapcar (lambda (binding)
>               (let ((binding (internal--build-binding binding prev-var)))
>                 (setq prev-var (car binding))
>                 binding))
>             bindings)))
>
> Interestingly, if I remove the first line, there's no crash.  So
> lexical-binding has something to do with this.
>
> I cannot see what could trigger the crash.  The fact that 'binding' is
> used both as an argument and as the variable which is bound to the
> return value, perhaps?
>
> Let me know if you want the C reproducer for this minimal file.

Yes please.

Thanks

  Andrea





reply via email to

[Prev in Thread] Current Thread [Next in Thread]