From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rixed@happyleptic.org Newsgroups: gmane.lisp.guile.bugs Subject: bug#13088: stack overflow while compiling Date: Wed, 12 Dec 2012 09:33:35 +0100 Message-ID: <20121212083335.GA2565@securactive.lan> References: <20121205163130.GA25037@securactive.lan> <20121210121609.GA15887@securactive.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1355301271 28996 80.91.229.3 (12 Dec 2012 08:34:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 08:34:31 +0000 (UTC) Cc: 13088@debbugs.gnu.org To: Stefan Israelsson Tampe Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Dec 12 09:34:44 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tihm6-00063q-Rk for guile-bugs@m.gmane.org; Wed, 12 Dec 2012 09:34:42 +0100 Original-Received: from localhost ([::1]:44814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tihlu-0008Fh-5O for guile-bugs@m.gmane.org; Wed, 12 Dec 2012 03:34:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tihlm-0008FC-KM for bug-guile@gnu.org; Wed, 12 Dec 2012 03:34:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tihli-0006jA-1A for bug-guile@gnu.org; Wed, 12 Dec 2012 03:34:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tihlh-0006iU-TY for bug-guile@gnu.org; Wed, 12 Dec 2012 03:34:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TihmQ-00024W-5N for bug-guile@gnu.org; Wed, 12 Dec 2012 03:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: rixed@happyleptic.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 12 Dec 2012 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13088 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 13088-submit@debbugs.gnu.org id=B13088.13553012697926 (code B ref 13088); Wed, 12 Dec 2012 08:35:02 +0000 Original-Received: (at 13088) by debbugs.gnu.org; 12 Dec 2012 08:34:29 +0000 Original-Received: from localhost ([127.0.0.1]:38119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tihlt-00023n-7E for submit@debbugs.gnu.org; Wed, 12 Dec 2012 03:34:29 -0500 Original-Received: from eneide.happyleptic.org ([213.251.171.101]:37463) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tihlr-00023f-81 for 13088@debbugs.gnu.org; Wed, 12 Dec 2012 03:34:27 -0500 Original-Received: from extranet.securactive.net ([82.240.34.113] helo=ccellier.rd.securactive.lan) by eneide.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1TihlE-0003NG-0i; Wed, 12 Dec 2012 09:33:48 +0100 Original-Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.80) (envelope-from ) id 1Tihl1-0002Eb-OB; Wed, 12 Dec 2012 09:33:35 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6673 Archived-At: -[ Tue, Dec 11, 2012 at 11:29:31PM +0100, Stefan Israelsson Tampe ]---- > Anyway in vm.c I changed the > #define VM_DEFAULT_STACK_SIZE (64 * 1024) > > to > #define VM_DEFAULT_STACK_SIZE (64 * 1024 * 64) > > and recompiled! Oh, I hadn't realized you were speaking about the VM's stack. It all makes sense now. Any inconvenient to set this stack even bigger ? How many such stacks do we have in a running environment ? One per thread ? > Then I can compile to tree-il. Compiling all the way does not work well, > But if you enter > scheme@(guile-user)> (compile program #:to 'value #:opts '(#:partial-eval? > #f #:cse? #f)) ;;NO OPTIMIZATION PASSES > > It will compile to. > > $7 = # signature-id)> Yes, I did this and as a result the compiled function was... 20% faster !? (note that my bench exclude the compilation time, and uses get-internal-run-time as a clock source). Thank you very much for all these advices. As usual, support from free software community is much better than it is from any business I've seen :-)