From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: [Stephen.Berman@gmx.net: Emacs hangs while edebugging recentf.el] Date: Sun, 27 Nov 2005 23:47:00 -0500 Message-ID: References: <20123679.1132565664852.JavaMail.www@wwinf1507> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1133153475 2407 80.91.229.2 (28 Nov 2005 04:51:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 04:51:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 05:51:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgayC-0004IO-Dg for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 05:50:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgayB-0002Pi-Nz for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2005 23:50:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egaut-0000c6-1p for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egaur-0000bH-Sc for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egaur-0000bA-Mz for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:01 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Egaur-0003Pp-TH for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:02 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Egauq-0006SU-Qf; Sun, 27 Nov 2005 23:47:00 -0500 Original-To: david.ponce@wanadoo.fr In-reply-to: <20123679.1132565664852.JavaMail.www@wwinf1507> (message from David PONCE on Mon, 21 Nov 2005 10:34:24 +0100 (CET)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46688 Archived-At: I reproduced the error and also found that Emacs hangs in the built-in function `prin1-to-string' when it tries to print the value the function `widget-create' returns, which contains a lot of circular references in a deeply nested list. If I don't interrupt the hang, after some time, the function fails with a "Memory exhausted" message. Notice that the widgets are correctly created in the "*Open Recent*" buffer. This is only the edebug prin1 function that hangs. When I set the value of `edebug-print-level' to 10 instead of the default value of 50, Emacs no more hangs. Maybe there is a bug in the prin1-to-string function? Unfortunately I don't know how to fix it. It could be a bug in prin1-to-string. What is the value of print-circle at that time?