From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#13088: stack overflow while compiling Date: Thu, 07 Mar 2013 14:26:51 +0100 Message-ID: <87ehfribms.fsf@pobox.com> References: <20121205163130.GA25037@securactive.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362683437 6236 80.91.229.3 (7 Mar 2013 19:10:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Mar 2013 19:10:37 +0000 (UTC) Cc: Chapi Chapo , 13088@debbugs.gnu.org To: Stefan Israelsson Tampe Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Mar 07 20:10:59 2013 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 1UDgDS-0003oe-1l for guile-bugs@m.gmane.org; Thu, 07 Mar 2013 20:10:58 +0100 Original-Received: from localhost ([::1]:51711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDgD6-0001Ac-3Y for guile-bugs@m.gmane.org; Thu, 07 Mar 2013 14:10:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDgD1-0001AS-G3 for bug-guile@gnu.org; Thu, 07 Mar 2013 14:10:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDgCz-00084R-Pe for bug-guile@gnu.org; Thu, 07 Mar 2013 14:10:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDgCz-00084M-MR for bug-guile@gnu.org; Thu, 07 Mar 2013 14:10:29 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UDgDW-00008T-JF for bug-guile@gnu.org; Thu, 07 Mar 2013 14:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 07 Mar 2013 19:11: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.1362683438472 (code B ref 13088); Thu, 07 Mar 2013 19:11:02 +0000 Original-Received: (at 13088) by debbugs.gnu.org; 7 Mar 2013 19:10:38 +0000 Original-Received: from localhost ([127.0.0.1]:36966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDgD6-00007V-HL for submit@debbugs.gnu.org; Thu, 07 Mar 2013 14:10:37 -0500 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:63071 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDgD4-00007N-98 for 13088@debbugs.gnu.org; Thu, 07 Mar 2013 14:10:34 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1B168C7A9; Thu, 7 Mar 2013 14:10:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=Z4uHACQKrI+eCj3J7Q6ICV4nAfw=; b=tnB8Fh a5SpNOn4lmHj8I/uXpatRbJScaHpocdqb+t2/aVIVdV5rJPaReAOtvqQdXiPuXwK 8oL5OcUPv6a0p8+tHqQV/ea6sMuTZ3boNGSYXuRm3VJUWo+XmxyYCF01L0EO2avP ke6ILM0qkQDZhd8W9iiH9h+QazJdkVzOeZLtk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=cBaOjML4EjZLxDzp0sck3k08Yiughdbs 4FlEctfs40PE2UcNp5PjkB1NY6p3uGV4P0nLnCqnZ8QpLWLXWHdQv1cjVJaV8vBV dgk9ND70yI3ynZdKGJTthbJ/fzeVA2v80ycGkhs7yZVu6LmnhedD7aHYheOOZKCI kL7vvf5TmTs= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 109A0C7A8; Thu, 7 Mar 2013 14:10:01 -0500 (EST) Original-Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 41750C7A7; Thu, 7 Mar 2013 14:10:00 -0500 (EST) In-Reply-To: (Stefan Israelsson Tampe's message of "Sat, 8 Dec 2012 22:44:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Pobox-Relay-ID: 9BBA0AFC-875A-11E2-A8BE-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com 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:6866 Archived-At: On Sat 08 Dec 2012 22:44, Stefan Israelsson Tampe writes: > tail-call 2000+ argument function which is not supported in guile :-) This should be supported. Just fixed this in stable-2.0. > I suggest that we close this bug or perhaps add a feature request for > growing stacks. > > An alternate feature request is to have some way to tell guile the size > of the stack at start up. In this case I agree, there is no bug in the expander or in the compiler. We should be able to grow stacks, but that is tricky with stable-2.0. Ideally we would be able to link different stack segments together with overflow/underflow handlers, as in the Dybvig paper, but that would require some experimentation that would best be done on master. I pushed a patch based on yours to add a GUILE_STACK_SIZE environment variable. I hate environment variables but hopefully we can remove it in 2.2. Thanks for looking into this! Andy -- http://wingolog.org/