From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: szgyg Newsgroups: gmane.lisp.guile.devel Subject: Re: Guile HEAD on Cygwin-1.7 Date: Tue, 07 Jul 2009 17:53:39 +0200 Message-ID: <4A536F83.80908@ludens.elte.hu> References: <4A39EDCD.1070609@ludens.elte.hu> <4A462061.30101@ludens.elte.hu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246982130 24087 80.91.229.12 (7 Jul 2009 15:55:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2009 15:55:30 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jul 07 17:55:23 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 1MOD0s-0006i6-AL for guile-devel@m.gmane.org; Tue, 07 Jul 2009 17:55:22 +0200 Original-Received: from localhost ([127.0.0.1]:59485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOD0r-0006t1-SA for guile-devel@m.gmane.org; Tue, 07 Jul 2009 11:55:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOCzN-0006CE-MI for guile-devel@gnu.org; Tue, 07 Jul 2009 11:53:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOCzI-0006AR-T4 for guile-devel@gnu.org; Tue, 07 Jul 2009 11:53:49 -0400 Original-Received: from [199.232.76.173] (port=60173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOCzI-0006AM-Im for guile-devel@gnu.org; Tue, 07 Jul 2009 11:53:44 -0400 Original-Received: from mx3.mail.elte.hu ([157.181.1.138]:32988) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOCzH-0001lu-NS for guile-devel@gnu.org; Tue, 07 Jul 2009 11:53:43 -0400 Original-Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1MOCz7-0008Ed-6p from for ; Tue, 07 Jul 2009 17:53:39 +0200 Original-Received: (Authenticated sender: szgyg) by mailbox1.caesar.elte.hu with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MOCz6-00070J-Ls for guile-devel@gnu.org; Tue, 07 Jul 2009 17:53:32 +0200 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: X-ELTE-SpamScore: -8.3 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-8.3 required=5.9 tests=ALL_TRUSTED, BAYES_00, L_AUTH autolearn=ham SpamAssassin version=3.2.5 -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -5.0 L_AUTH Caesar auth -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 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:8849 Archived-At: Andy Wingo wrote: > On Sat 27 Jun 2009 15:36, szgyg writes: >> --- T.scm --- >> (define *old-stack-level* (and=> (memq 'stack (debug-options)) cadr)) >> (debug-set! stack (* 2 *old-stack-level*)) >> (display #t) >> ------------- >> >> $ guile -q --debug -s T.scm >> >> Backtrace: >> In ../../module/ice-9/boot-9.scm: >> 874: 0* [#] >> In unknown file: >> ?: 1* [primitive-load "T.scm"] >> In ../../module/ice-9/psyntax-pp.scm: >> 8216: 2* [# #] >> >> ERROR: Stack overflow > > Interesting. Is this the full backtrace? Yes. > What were your CFLAGS when > compiling Guile? My CFLAGS is empty, configure sets to -g -O2. >> The stack can grow a little, but not so much. Works with the factor 1.3, >> but not with 1.4 (*old-stack-level* is 416784). > > I don't understand -- do you mean to say that T.scm works if "(* 2" is > replaced with "(* 1.3"? Yes, with "(inexact->exact (floor (* 1.3". ----- >> Program received signal SIGSEGV, Segmentation fault. >> [Switching to thread 3544.0xc1c] >> 0x6aac70d9 in scm_read_delimited_x (delims=0x100e6400, str=0x102f90a0, >> gobble=0x104, port=0x102bd398, start=0x204, end=0x204) >> at ../../libguile/inline.h:307 >> 307 if (scm_fill_input (port) == EOF) > > What exactly is segfaulting here? All of the vars look fine, and in your > printouts. > This seems just to be a problem running Guile, perhaps not > specific to the tests. Can you run meta/guile and it works? If not, > meta/gdb-uninstalled-guile might be useful. Thanks, `./check-guile -i meta/gdb-uninstalled-guile foo.test' is pretty cool. That segfault was an fd_set overflow. We should #define FD_SETSIZE 1024 before including sys/types.h on cygwin. Also, guile should check that (filedescriptor < FD_SETSIZE) before FD_SET and select. s