GNU bug report logs - #4251
23.1.50; Error byte-compiling big conditional

Previous Next

Package: emacs;

Reported by: aemoncannon <at> gmail.com

Date: Tue, 25 Aug 2009 00:40:05 UTC

Severity: normal

Tags: confirmed

Done: Andreas Schwab <schwab <at> linux-m68k.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 4251 in the body.
You can then email your comments to 4251 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4251; Package emacs. (Tue, 25 Aug 2009 00:40:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to aemoncannon <at> gmail.com:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 25 Aug 2009 00:40:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Aemon Cannon <aemoncannon <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; Error byte-compiling big conditional
Date: Mon, 24 Aug 2009 20:35:13 -0400
Received the following error:
bytecomp-bug.el:9:4:Error: Args out of range: 312, 0, 255

When byte-compiling a file with the following elisp:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defmacro many-forms ()
  (let ((body '()))
    (dotimes (i 20000)
      (setq body (cons '(message "more") body)))
    `(progn ,@body)))

(if (eq 1 a)
    (many-forms)
  (message "else"))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Suspect a byte overflow at line 856 in bytecomp.el
The argument of a goto is bigger than 16 bits.



In GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-07-31 on lansones, modified by Debian
 (emacs-snapshot package, version 1:20090730-1~jaunty1)
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure  '--build' 'i486-linux-gnu' '--host'
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1.50/site-lisp:/usr/share/emacs/site-lisp'
'--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN
-DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed'
'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4251; Package emacs. (Tue, 25 Aug 2009 14:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to aemoncannon <at> gmail.com:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 25 Aug 2009 14:30:04 GMT) Full text and rfc822 format available.

Message #10 received at 4251 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Aemon Cannon <aemoncannon <at> gmail.com>
To: 4251 <at> debbugs.gnu.org
Subject: Another failure case..
Date: Tue, 25 Aug 2009 10:24:18 -0400
[Message part 1 (text/plain, inline)]
The following fails with the same error:
;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defmacro many-forms ()
  (let ((body '()))
    (dotimes (i 20000)
      (setq body (cons '(message "more") body)))
    `(progn ,@body)))

(many-forms)

(if (eq 1 a)
    (message "dude")
  (message "else"))

;;;;;;;;;;;;;;;;;;;;;;;
[Message part 2 (text/html, inline)]

Added tag(s) confirmed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Sep 2011 07:28:01 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4251; Package emacs. (Sat, 17 Sep 2011 07:32:04 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: aemoncannon <at> gmail.com
Cc: 4251 <at> debbugs.gnu.org
Subject: Re: Another failure case..
Date: Sat, 17 Sep 2011 09:19:08 +0200
Aemon Cannon <aemoncannon <at> gmail.com> writes:

> The following fails with the same error:
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> (defmacro many-forms ()
>   (let ((body '()))
>     (dotimes (i 20000)
>       (setq body (cons '(message "more") body)))
>     `(progn ,@body)))
>
> (many-forms)
>
> (if (eq 1 a)
>     (message "dude")
>   (message "else"))

I can confirm that this bug is still present in Emacs 24.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Reply sent to Andreas Schwab <schwab <at> linux-m68k.org>:
You have taken responsibility. (Sat, 17 Sep 2011 09:40:02 GMT) Full text and rfc822 format available.

Notification sent to aemoncannon <at> gmail.com:
bug acknowledged by developer. (Sat, 17 Sep 2011 09:40:03 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: aemoncannon <at> gmail.com, 4251-done <at> debbugs.gnu.org
Subject: Re: bug#4251: Another failure case..
Date: Sat, 17 Sep 2011 11:34:51 +0200
Overflow check fixed.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Oct 2011 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 329 days ago.

Previous Next


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