From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs,gmane.emacs.cedet,gmane.emacs.devel Subject: Re: Emacs CVS on OSX: malloc error when installing cedet Date: Wed, 07 Jul 2004 00:03:43 +0900 Organization: Faculty of Science, Chiba University Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <9B70BB7C-CF37-11D8-9EA8-000D9329B314@idsoftware.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1089126274 32131 80.91.224.253 (6 Jul 2004 15:04:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2004 15:04:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, cedet-devel@lists.sourceforge.net, emacs-devel@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 06 17:04:10 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhrUP-0004KW-00 for ; Tue, 06 Jul 2004 17:04:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BhrWR-0003E9-29 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jul 2004 11:06:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BhrWO-0003CF-Vg for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2004 11:06:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BhrWN-0003Af-6S for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2004 11:06:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BhrWN-0003AF-0A; Tue, 06 Jul 2004 11:06:11 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BhrU3-0006yL-K0; Tue, 06 Jul 2004 11:03:48 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id AC4541A6387; Wed, 7 Jul 2004 00:03:43 +0900 (JST) Original-To: Timothee BESSET In-Reply-To: <9B70BB7C-CF37-11D8-9EA8-000D9329B314@idsoftware.com> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8360 gmane.emacs.cedet:1591 gmane.emacs.devel:25492 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8360 >>>>> On Tue, 6 Jul 2004 12:31:14 +0200, Timothee BESSET said: > I can compile and install the CVS version of Emacs and cedet on a > Linux box with no problem. This crash is happening with both the > latest release of cedet and the CVS version. So I believe it's > really an emacs problem, specific to the OSX port. It seems that the contents of `print_buffer', which is declared just after `being_printed' in print.c, is corrupted by the following part when print_depth == PRINT_CIRCLE. /* Avoid infinite recursion for circular nested structure in the case where Vprint_circle is nil. */ if (NILP (Vprint_circle)) { for (i = 0; i < print_depth; i++) if (EQ (obj, being_printed[i])) return; being_printed[print_depth] = obj; } I tried to move the following part to just before the above one, and I could compile CEDET 1.0beta2b. /* Give up if we go so deep that print_object will get an error. */ /* See similar code in print_object. */ if (print_depth >= PRINT_CIRCLE) return; YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp