From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cedric Cellier Newsgroups: gmane.lisp.guile.user Subject: Re: Latest guile 1.9 segfault in GC Date: Mon, 23 Aug 2010 14:47:09 +0200 Message-ID: <20100823124708.GA23990@securactive.net> References: <20100817090911.GA27087@securactive.net> <20100817140858.GA13359@securactive.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282567685 21179 80.91.229.12 (23 Aug 2010 12:48:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Aug 2010 12:48:05 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Aug 23 14:48:04 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OnWRX-0008K3-Ew for guile-user@m.gmane.org; Mon, 23 Aug 2010 14:48:03 +0200 Original-Received: from localhost ([127.0.0.1]:59731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnWRW-0008PJ-T0 for guile-user@m.gmane.org; Mon, 23 Aug 2010 08:48:02 -0400 Original-Received: from [140.186.70.92] (port=53527 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnWRA-0008P2-Rs for guile-user@gnu.org; Mon, 23 Aug 2010 08:47:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnWR9-00026c-HR for guile-user@gnu.org; Mon, 23 Aug 2010 08:47:40 -0400 Original-Received: from smtp5-g21.free.fr ([212.27.42.5]:57322) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnWR8-00022I-UJ for guile-user@gnu.org; Mon, 23 Aug 2010 08:47:39 -0400 Original-Received: from apc.happyleptic.org (unknown [82.67.194.89]) by smtp5-g21.free.fr (Postfix) with ESMTP id BD777D480F0 for ; Mon, 23 Aug 2010 14:47:10 +0200 (CEST) Original-Received: from ccellier.rd.securactive.lan (extranet.securactive.org [82.234.213.170]) by apc.happyleptic.org (Postfix) with ESMTP id 534363355B for ; Mon, 23 Aug 2010 14:54:15 +0200 (CEST) Original-Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.71) (envelope-from ) id 1OnWQf-0007lU-8M for guile-user@gnu.org; Mon, 23 Aug 2010 14:47:09 +0200 Mail-Followup-To: Cedric Cellier , guile-user@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8093 Archived-At: -[ Wed, Aug 18, 2010 at 09:16:15AM -0700, Andy Wingo ]---- > You're probably not hitting the compiler for some reason. I think that > scm_primitive_load doesn't support autocompilation, where it probably > should. Is that the function you're using to load your Scheme code? Ok, the file I load with scm_primitive_load is not compiled but the files loaded by it were actually compiled. So I moved the critical functions from the first one to the others, and now I think all the usefull functions are compiled. 1.9.11 version still seams a bit slower than 1.8.7, most of the time being spent in vm_debug_engine, malloc and free. > To work around it for now, call `load' from scheme. I know it's ugly but > at least you get the speed that way. Use scm_primitive_eval (scm_list_2 > (scm_from_locale_string ("load"), path)). I tried but then apparently the load paths were affected in some way, since the files loaded from the first evaluated file cannot be found.