From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juhani Rantanen" Newsgroups: gmane.lisp.guile.bugs Subject: Re: Segfault when running fibc benchmark in current trunk Date: Sun, 19 Apr 2009 19:28:37 +0300 (EEST) Message-ID: <32979.87.93.21.245.1240158517.squirrel@webmail.aj-group.net> References: <36841.87.95.9.89.1239928621.squirrel@mail.aj-group.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240158559 19246 80.91.229.12 (19 Apr 2009 16:29:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2009 16:29:19 +0000 (UTC) Cc: bug-guile@gnu.org, Juhani Rantanen To: "Andy Wingo" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Apr 19 18:30:38 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LvZue-0007Gz-LO for guile-bugs@m.gmane.org; Sun, 19 Apr 2009 18:30:36 +0200 Original-Received: from localhost ([127.0.0.1]:37103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvZtF-0000rC-I6 for guile-bugs@m.gmane.org; Sun, 19 Apr 2009 12:29:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvZt6-0000oa-Pj for bug-guile@gnu.org; Sun, 19 Apr 2009 12:29:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvZt2-0000lT-BW for bug-guile@gnu.org; Sun, 19 Apr 2009 12:29:00 -0400 Original-Received: from [199.232.76.173] (port=50371 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvZt2-0000lQ-87 for bug-guile@gnu.org; Sun, 19 Apr 2009 12:28:56 -0400 Original-Received: from server-a110.esp.mediateam.fi ([81.17.202.110]:58585 helo=homer.aj-group.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvZt1-0006ab-L9 for bug-guile@gnu.org; Sun, 19 Apr 2009 12:28:56 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by homer.aj-group.net (Postfix) with ESMTP id 16506379AB; Sun, 19 Apr 2009 19:28:41 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at aj-group.net Original-Received: from homer.aj-group.net ([127.0.0.1]) by localhost (homer.aj-group.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2kW5AYkTacI8; Sun, 19 Apr 2009 19:28:38 +0300 (EEST) Original-Received: by homer.aj-group.net (Postfix, from userid 1018) id 1A7A2379D9; Sun, 19 Apr 2009 19:28:38 +0300 (EEST) Original-Received: from webmail.aj-group.net (localhost [127.0.0.1]) by homer.aj-group.net (Postfix) with ESMTP id C6DF6379AB; Sun, 19 Apr 2009 19:28:37 +0300 (EEST) Original-Received: from 87.93.21.245 (SquirrelMail authenticated user misty) by webmail.aj-group.net with HTTP; Sun, 19 Apr 2009 19:28:37 +0300 (EEST) In-Reply-To: User-Agent: SquirrelMail/1.4.9a X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4207 Archived-At: Hi, I have a bad case of flu right now, sorry for the delay in answering. >> I found a problem that seems to be related to continuations, although >> guile crashes in gc. > > I think I fixed this problem in master. Can you try again? Works: guile -s fibc_bug.scm Works: guile-tools compile fibc_bug.scm guile > (load-compiled "fibc_bug.go") Segfaults: guile-tools compile fibc_bug.scm guile -e "(load-compiled \"fibc_bug.go\")" Last case is how the "bench" shell script used to run the benchmarks firs= t.. >> I have attached a minimal and self-contained >> testcase here. > > Is this your code? I'd like to get it into Guile's test cases, but I > think we'd need copyright assignment or a disclaimer. These benchmarks are from Gambit Scheme distribution package, located in misc/bench.tgz . I ported these benchmarks to run in guile but other than that, they are from several sources (Gabriel, K&R and miscellaneous). It seems to be useful to have them around however.. >> I have also found problems with other tests from the same benchmark > > I look forward to the next bug report :) These benchmarks still expose several different bugs in current mainline (although many were fixed by your changes!) so I put my version of the benchmarks to http://aj-group.net/~misty/bench_misty_hack.tar.bz2 You can run all the tests (-c false leaves temporary files in sys/guile): ./bench -c false guile all or a single test: ./bench -c false guile ctak Ctak allocates 1.6GB of memory while running, I don't know whether it is normal or not. Check functions guile_comp and guile_exec in the bench script to see how it compiles and runs the benchmarks or run it with no parameters to find out more about them. Best Regards, Juhani