From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1787: 23.0.60; `concat' with longer strings aborts Emacs ungracefully Date: Mon, 5 Jan 2009 02:23:20 +0100 (CET) Message-ID: <20090105012320.15DD9C24862@mt-computer.local> Reply-To: Markus Triska , 1787@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1231119822 30597 80.91.229.12 (5 Jan 2009 01:43:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 01:43:42 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 02:44:52 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LJeWR-0000qO-Vr for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 02:44:52 +0100 Original-Received: from localhost ([127.0.0.1]:58027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJeVC-0000x0-HH for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jan 2009 20:43:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJeV8-0000wt-JS for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2009 20:43:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJeV4-0000wa-Lk for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2009 20:43:29 -0500 Original-Received: from [199.232.76.173] (port=59294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJeV4-0000wX-Gm for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2009 20:43:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54649) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJeV3-0007P6-VU for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2009 20:43:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n051hN1A031398; Sun, 4 Jan 2009 17:43:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n051U3Sl027874; Sun, 4 Jan 2009 17:30:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 05 Jan 2009 01:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1787 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123111861826580 (code B ref -1); Mon, 05 Jan 2009 01:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jan 2009 01:23:38 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n051NUuJ026567 for ; Sun, 4 Jan 2009 17:23:31 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:54582 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LJeAf-0003V8-4W for emacs-pretest-bug@gnu.org; Sun, 04 Jan 2009 20:22:21 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LJeBi-0006U4-LM for emacs-pretest-bug@gnu.org; Sun, 04 Jan 2009 20:23:29 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:46094) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LJeBi-0006Tw-3t for emacs-pretest-bug@gnu.org; Sun, 04 Jan 2009 20:23:26 -0500 Original-Received: (qmail invoked by alias); 05 Jan 2009 01:23:23 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp071) with SMTP; 05 Jan 2009 02:23:23 +0100 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+AjpA4ptiA7l96C/KGbgh29UfJZ+e5tLzHAXo3Ho FRZBV0iFKW/9Ns Original-Received: by mt-computer.local (Postfix, from userid 502) id 15DD9C24862; Mon, 5 Jan 2009 02:23:20 +0100 (CET) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 04 Jan 2009 20:43:29 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23773 gmane.emacs.pretest.bugs:23611 Archived-At: On OSX and Ubuntu jaunty machines with 1 GB RAM, doing: $ emacs -Q --eval "(let ((v \"x\")) (while t (setq v (concat v v))))" aborts Emacs with the following backtrace: (gdb) bt #0 0x9010d3db in abort () #1 0x0013a561 in make_uninit_multibyte_string (nchars=-536870912, nbytes=-536870912) at alloc.c:2503 #2 0x0013a590 in make_uninit_string (length=-536870912) at alloc.c:2486 #3 0x00159210 in concat (nargs=2, args=0xbfffec90, target_type=Lisp_String, last_special=0) at fns.c:619 #4 0x00152c10 in Feval (form=41853805) at eval.c:2348 #5 0x00152cbc in Fsetq (args=41853797) at eval.c:551 #6 0x00152b58 in Feval (form=41853789) at eval.c:2322 #7 0x00152e34 in Fprogn (args=41853837) at eval.c:449 #8 0x00155199 in Fwhile (args=41853781) at eval.c:1111 #9 0x00152b58 in Feval (form=41853773) at eval.c:2322 #10 0x00152e34 in Fprogn (args=41853845) at eval.c:449 #11 0x001552a5 in Flet (args=41853765) at eval.c:1089 #12 0x00152b58 in Feval (form=41853733) at eval.c:2322 #13 0x00153621 in Ffuncall (nargs=2, args=0xbffff0b0) at eval.c:3050 #14 0x0018cb8b in Fbyte_code (bytestr=2175051, vector=2175068, maxdepth=10) at bytecode.c:678 #15 0x00152f2b in funcall_lambda (fun=2175020, nargs=1, arg_vector=0xbffff254) at eval.c:3231 #16 0x0015340e in Ffuncall (nargs=2, args=0xbffff250) at eval.c:3101 #17 0x0018cb8b in Fbyte_code (bytestr=2161403, vector=2161420, maxdepth=7) at bytecode.c:678 #18 0x00152f2b in funcall_lambda (fun=2161380, nargs=0, arg_vector=0xbffff3e4) at eval.c:3231 #19 0x0015340e in Ffuncall (nargs=1, args=0xbffff3e0) at eval.c:3101 #20 0x0018cb8b in Fbyte_code (bytestr=2158059, vector=2158076, maxdepth=6) at bytecode.c:678 #21 0x00152f2b in funcall_lambda (fun=2158036, nargs=0, arg_vector=0xbffff500) at eval.c:3231 #22 0x00153196 in apply_lambda (fun=2158036, args=58721289, eval_flag=1) at eval.c:3155 #23 0x001528e0 in Feval (form=35544669) at eval.c:2435 #24 0x000e3a9c in top_level_2 () at keyboard.c:1358 #25 0x00151798 in internal_condition_case (bfun=0xe3a80 , handlers=58760953, hfun=0xea6ef ) at eval.c:1511 #26 0x000e3ae4 in top_level_1 () at keyboard.c:1366 #27 0x001513ea in internal_catch (tag=58757025, func=0xe3aa2 , arg=58721289) at eval.c:1247 #28 0x000e37ff in command_loop () at keyboard.c:1321 #29 0x000e38cf in recursive_edit_1 () at keyboard.c:942 #30 0x000e3a17 in Frecursive_edit () at keyboard.c:1004 #31 0x000e282f in main (argc=4, argv=0xbffff97c) at emacs.c:1786 Lisp Backtrace: "concat" (0xbfffec90) "setq" (0xbfffede8) "while" (0xbfffeed8) "let" (0xbffff008) "eval" (0xbffff0b4) "command-line-1" (0xbffff254) "command-line" (0xbffff3e4) "normal-top-level" (0xbffff500) To me, throwing an error seems to be much preferable in this case. In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-12-25 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 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_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t