GNU bug report logs - #19699
25.0.50; lexical-let + mapcar cause infloop

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Tue, 27 Jan 2015 08:08:02 UTC

Severity: normal

Found in version 25.0.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19699 in the body.
You can then email your comments to 19699 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19699; Package emacs. (Tue, 27 Jan 2015 08:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 Jan 2015 08:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; lexical-let + mapcar cause infloop
Date: Tue, 27 Jan 2015 17:06:44 +0900
A Lisp form that uses `lexical-let' and `mapcar' (or `mapc'),
like this, cannot be evaluated nor byte-compiled because it
looks like causing an infinite loop[1].

(defun testing ()
  (lexical-let (var)
    (mapcar #'identity '("Hello" "World"))))

[1] There is no means to stop infloop on Cygwin Emacs, so I'm
  hard to debug it.

In GNU Emacs 25.0.50.1 (i686-pc-cygwin, GTK+ Version 3.10.9)
 of 2015-01-27 on localhost
Windowing system distributor `The Cygwin/X Project', version 11.0.11501000
Configured using:
 `configure --verbose --with-x-toolkit=gtk3'




Reply sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
You have taken responsibility. (Tue, 27 Jan 2015 23:56:02 GMT) Full text and rfc822 format available.

Notification sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
bug acknowledged by developer. (Tue, 27 Jan 2015 23:56:02 GMT) Full text and rfc822 format available.

Message #10 received at 19699-done <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: 19699-done <at> debbugs.gnu.org
Subject: Re: bug#19699: 25.0.50; lexical-let + mapcar cause infloop
Date: Wed, 28 Jan 2015 08:55:39 +0900
On Tue, 27 Jan 2015 17:06:44 +0900, Katsumi Yamaoka wrote:
> A Lisp form that uses `lexical-let' and `mapcar' (or `mapc'),
> like this, cannot be evaluated nor byte-compiled because it
> looks like causing an infinite loop[1].

Oops, this is my fault that was made as the revno
<1fe087a1ab4182b2e6c1d05444461acc4e78e2d8> in cl.el.

> (defun testing ()
>   (lexical-let (var)
>     (mapcar #'identity '("Hello" "World"))))

The cause of the infinite loop is that the macro expander tries
to expand #'foo again and again.  Fixed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 Feb 2015 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.