From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: autocompilation support in master Date: Tue, 9 Jun 2009 23:39:23 -0400 Message-ID: <20090610033923.GA2020@fibril.netris.org> References: <87hbyujpof.fsf@arudy.ossau.uklinux.net> <87vdn6gvgf.fsf@arudy.ossau.uklinux.net> <20090609005226.GA3468@fibril.netris.org> <20090609184723.GA3694@fibril.netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244605212 9041 80.91.229.12 (10 Jun 2009 03:40:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2009 03:40:12 +0000 (UTC) Cc: Neil Jerram , guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 10 05:40:10 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MEEfX-0002sK-Sh for guile-devel@m.gmane.org; Wed, 10 Jun 2009 05:40:08 +0200 Original-Received: from localhost ([127.0.0.1]:36475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEEfX-0002AN-7A for guile-devel@m.gmane.org; Tue, 09 Jun 2009 23:40:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEEf1-0001uH-MJ for guile-devel@gnu.org; Tue, 09 Jun 2009 23:39:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEEex-0001sS-6X for guile-devel@gnu.org; Tue, 09 Jun 2009 23:39:35 -0400 Original-Received: from [199.232.76.173] (port=55499 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEEew-0001sO-P9 for guile-devel@gnu.org; Tue, 09 Jun 2009 23:39:30 -0400 Original-Received: from world.peace.net ([204.107.200.8]:58362) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MEEew-0003jr-C9 for guile-devel@gnu.org; Tue, 09 Jun 2009 23:39:30 -0400 Original-Received: from localhost ([127.0.0.1] helo=fibril.netris.org ident=hope5) by world.peace.net with esmtp (Exim 4.69) (envelope-from ) id 1MEEes-0005dG-6v; Tue, 09 Jun 2009 23:39:26 -0400 Content-Disposition: inline In-Reply-To: <20090609184723.GA3694@fibril.netris.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8660 Archived-At: Earlier, I wrote: > Strangely, the stack overflow doesn't happen when I run the compile > command (as echoed by make) directly from the command line. I only > see it happen when compiling via make. I just noticed something. Look at the result of (debug-options) in the first backtrace I sent: > (show-file-name #t stack 40000 debug backtrace depth 100 maxdepth 1000 frames 3 indent 10 width 79 procnames cheap) Notice the "stack 40000", which means that the stack limit (as far as guile is concerned) is only 40000 words, i.e. 160 kilobytes. Other times, I see much larger numbers there, which are close to the actual stack resource limit (as set by setrlimit), and in those cases the stack doesn't overflow. I'm not able to reliably reproduce these problems, but it seems that the problem is not in the compiler, but in the code that initializes guile's internal notion of its stack limit. Indeed, I'm able to compile the ecmascript code with a 512 kilobyte stack, as long as guile doesn't get confused about its stack limit. Mark