From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Stoeber Newsgroups: gmane.emacs.bugs Subject: segfault after changing max-lisp-eval-depth and max-specpdl-size Date: Mon, 27 May 2002 17:53:52 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <20020527155352.GA454374@bruegel.RZ.TU-Ilmenau.DE> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022514859 20522 127.0.0.1 (27 May 2002 15:54:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 May 2002 15:54:19 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17CMp9-0005Kt-00 for ; Mon, 27 May 2002 17:54:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17CMpo-0005VS-00; Mon, 27 May 2002 11:55:00 -0400 Original-Received: from bruegel.rz.tu-ilmenau.de ([141.24.190.37]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17CMoI-0005Rt-00 for ; Mon, 27 May 2002 11:53:26 -0400 Original-Received: (from past-in@localhost) by bruegel.rz.tu-ilmenau.de (SGI-8.9.3/8.9.3) id RAA59706 for bug-gnu-emacs@gnu.org; Mon, 27 May 2002 17:53:53 +0200 (MDT) Original-To: bug-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.28i Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1624 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1624 In GNU Emacs 21.2.1 (powerpc-unknown-linux-gnu) of 2002-05-26 on xyz configured using `configure --prefix=/e --without-x' 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: C locale-coding-system: nil default-enable-multibyte-characters: t Built without modification from MD5:f4b58e5c2d923fc92495e0c2f167c5db URL:ftp://ftp.cs.tu-berlin.de/pub/gnu/emacs/emacs-21.2.tar.gz I have this expression in my `*scratch*' buffer: (progn (setq max-lisp-eval-depth 30000) (setq max-specpdl-size 30000) (defun seq (a b) "Return sequence of integers A, A+1, ..., B as a list." (if (> a b) () (cons a (seq (1+ a) b)))) (length (seq 1 10000))) I go to its last line and type C-e C-x C-e, and then it looks like this: (length (seq 1 10000)))Segmentation fault q@xyz~$ The descriptions of `max-lisp-eval-depth' and `max-specpdl-size' both say "You can customize this variable." I have not found this problem in etc/PROBLEMS or info/efaq* . I think it should be possible to put your functional programmer's hat on by saying (setq max-lisp-eval-depth (setq max-specpdl-size 134217727)) or better still (setq have-lisp-limits nil) ; don't bother me --- Avoid arbitrary limits on the length or number of _any_ data structure [...] -- GNU Coding Standards