From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ashish Shukla Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1666: 23.0.60; Emacs goes in a malloc loop Date: Mon, 22 Dec 2008 03:51:01 +0530 (IST) Message-ID: <20081221222101.460A2F5220@chateau.d.lf> Reply-To: Ashish Shukla , 1666@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1229924190 25966 80.91.229.12 (22 Dec 2008 05:36:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 05:36:30 +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 Dec 22 06:37:35 2008 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 1LEdTy-00026Q-PP for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Dec 2008 06:37:35 +0100 Original-Received: from localhost ([127.0.0.1]:53168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEdSl-0006oP-CL for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Dec 2008 00:36:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LEX19-0004iN-U3 for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2008 17:43:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LEX18-0004ht-Lu for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2008 17:43:22 -0500 Original-Received: from [199.232.76.173] (port=43768 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEX18-0004hk-9A for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2008 17:43:22 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49609) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LEX17-0007dU-Le for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2008 17:43:22 -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 mBLMhJQ2011015; Sun, 21 Dec 2008 14:43:19 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBLMU32v007527; Sun, 21 Dec 2008 14:30:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ashish Shukla Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 21 Dec 2008 22:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1666 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12298980776137 (code B ref -1); Sun, 21 Dec 2008 22:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Dec 2008 22:21:17 +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 mBLMLAYl006124 for ; Sun, 21 Dec 2008 14:21:11 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:59068) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LEWep-0007N8-5p for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 17:20:19 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LEWfb-0006QR-1U for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 17:21:09 -0500 Original-Received: from ti-out-0910.google.com ([209.85.142.186]:37149) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LEWfa-0006QN-Bf for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 17:21:06 -0500 Original-Received: by ti-out-0910.google.com with SMTP id u5so1225289tia.10 for ; Sun, 21 Dec 2008 14:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject :message-id:date; bh=xF1Rm1aLc5Y3qQHPipSbvdFMl0vNogtnap6MxRBSUbY=; b=R4B+/3+lyfhS5suWJ9hvFfClTuITA5sHmW5TZGKr5dcI65UBPPcpv0NxMh4bF6GmvF keH4gL/eIKliQQn/jKEQEQf9XNCePdsXsOp15Jg/Ino5bB4cxF3zWp4DjozdYGS9Tzpo Kbn+AwKCiismy84POWpYAjIz0GSWQr2BbKvkg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:message-id:date; b=TOAM36bZJ8vDE9nzeNbFA6p61dfoaYcM1LJOoNDtdJfU8nJ5Ay7ncuRklTM/Lk/FoJ SSxOcxD/PP9Z4mBZ/aW0KT7a2JzPtvBcrRXguj5U+7Lo2j++h2lU+CboIYJt3mAtIZFc qYpoaNMGmFLMen2IZb3gfmUqvJD8NlK0wzxTk= Original-Received: by 10.110.69.5 with SMTP id r5mr8526233tia.36.1229898064238; Sun, 21 Dec 2008 14:21:04 -0800 (PST) Original-Received: from chateau.d.lf ([122.161.0.226]) by mx.google.com with ESMTPS id 25sm11500461tif.26.2008.12.21.14.21.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Dec 2008 14:21:03 -0800 (PST) Original-Received: by chateau.d.lf (Postfix, from userid 1000) id 460A2F5220; Mon, 22 Dec 2008 03:51:01 +0530 (IST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 21 Dec 2008 17:43:22 -0500 X-Mailman-Approved-At: Mon, 22 Dec 2008 00:36:14 -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:23427 gmane.emacs.pretest.bugs:23540 Archived-At: Following is the piece of Emacs Lisp code, which I tried to execute in Emacs's *scratch* buffer to close all buffers except the buffer named "buffer-name". ,---- | (dolist (buffer (buffer-list)) | (unless (string-match "buffer-name" (buffer buffer)) | (kill-buffer buffer))) `---- Executing above Emacs Lisp code increases CPU usage and Emacs keeps on allocating memory. This bug is reproducible always. (gdb) bt #0 0x0000003b2866d295 in _int_malloc (av=, bytes=) at ma lloc.c:4488 #1 0x0000003b2866e4f5 in *__GI___libc_malloc (bytes=) at malloc.c:3549 #2 0x0000000000520ee3 in xrealloc (block=, size=4240) at alloc.c:784 #3 0x0000000000410fae in adjust_glyph_matrix (w=0xe97af0, matrix=0x2bc68c0, x=0, y=0, dim={width = 4, height = 0}) at dispnew.c:751 #4 0x00000000004174fe in allocate_matrices_for_window_redisplay (w=0xe97af0) at dispnew.c:2068 #5 0x0000000000417b79 in adjust_frame_glyphs (f=0xd2a1a0) at dispnew.c:2408 #6 0x0000000000417d2f in adjust_glyphs (f=0x3b28935ff0) at dispnew.c:2091 #7 0x0000000000454927 in enlarge_window (window=15590164, delta=0, horiz_flag=0) at window.c:4293 #8 0x000000000044096f in resize_mini_window (w=0xede310, exact_p=1) at xdisp.c:8756 #9 0x0000000000432e1c in with_echo_area_buffer (w=0xede310, which=, fn=0x4409 b8 , a1=15590160, a2=10873329, a3=0, a4=0) at xdisp.c:8369 #10 0x00000000004498a9 in resize_echo_area_exactly () at xdisp.c:8615 #11 0x00000000004dc9c3 in command_loop_1 () at keyboard.c:1904 #12 0x0000000000534275 in internal_condition_case (bfun=0x4dc5aa , handlers=1096052 9, hfun=0x4d6e8a ) at eval.c:1511 #13 0x00000000004d632c in command_loop_2 () at keyboard.c:1338 #14 0x000000000053436a in internal_catch (tag=, func=0x4d6312 , arg=10873233) at eval.c:1247 #15 0x00000000004d6cfd in command_loop () at keyboard.c:1317 #16 0x00000000004d7034 in recursive_edit_1 () at keyboard.c:942 #17 0x00000000004d7156 in Frecursive_edit () at keyboard.c:1004 #18 0x00000000004cb2a9 in main (argc=, argv=0x7fff67dc1e78) at emacs.c:1781 In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-12-12 on chateau Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=athena' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-O2 -pipe -mtune=nocona -march=nocona -ggdb' 'LDFLAGS=-Wl,--hash-style,both'' Important settings: value of $LC_ALL: en_US.UTF-8 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: Lisp Interaction Minor modes in effect: erc-ring-mode: t erc-track-mode: t erc-services-mode: t erc-notify-mode: t erc-networks-mode: t erc-match-mode: t erc-netsplit-mode: t erc-pcomplete-mode: t erc-button-mode: t erc-stamp-mode: t erc-smiley-mode: t server-mode: t display-time-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 Recent input: r e p o r t - e m a c s - b u g Recent messages: Loading ~/.emacs.d/.erc-auth...done Loading /home/abbe/.emacs.d/elisp/cedet/common/cedet.el (source)... Setting up CEDET packages...done Loading /home/abbe/.emacs.d/elisp/cedet/common/cedet.el (source)...done Loading g... Loading /home/abbe/.emacs.d/elisp/g-client/g-loaddefs.el (source)...done Loading /home/abbe/.emacs.d/elisp/g-client/g-cus-load.el (source)...done Loading g...done Loading /home/abbe/.emacs.d/elisp/dvc/dvc-load.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Thanks in advance -- Ashish Shukla