From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anand Dixit Newsgroups: gmane.lisp.guile.user Subject: Re: seg fault with repeated function calls from C? Date: Tue, 16 Dec 2008 18:46:35 -0800 Message-ID: <1229481995.11638.53.camel@home-desktop> References: <1229408522.10718.11.camel@home-desktop> <1229447835.11638.3.camel@home-desktop> <1229474764.11638.28.camel@home-desktop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1229481691 3119 80.91.229.12 (17 Dec 2008 02:41:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 02:41:31 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 17 03:42:35 2008 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.50) id 1LCmMl-0001jy-Hg for guile-user@m.gmane.org; Wed, 17 Dec 2008 03:42:28 +0100 Original-Received: from localhost ([127.0.0.1]:56115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCmLZ-00076n-GM for guile-user@m.gmane.org; Tue, 16 Dec 2008 21:41:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCmL1-0006j7-3N for guile-user@gnu.org; Tue, 16 Dec 2008 21:40:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCmKy-0006h9-VZ for guile-user@gnu.org; Tue, 16 Dec 2008 21:40:38 -0500 Original-Received: from [199.232.76.173] (port=57144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCmKy-0006gs-Pp for guile-user@gnu.org; Tue, 16 Dec 2008 21:40:36 -0500 Original-Received: from brmea-mail-4.sun.com ([192.18.98.36]:57173) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCmKy-0003yS-BG for guile-user@gnu.org; Tue, 16 Dec 2008 21:40:36 -0500 Original-Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBH2eY23014657 for ; Wed, 17 Dec 2008 02:40:34 GMT Original-Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KC000G0121WFT00@mail-amer.sun.com> (original mail from Anand.Dixit@Sun.COM) for guile-user@gnu.org; Tue, 16 Dec 2008 19:40:34 -0700 (MST) Original-Received: from [192.168.2.4] ([64.9.237.132]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KC000IEV23KJFE0@mail-amer.sun.com> for guile-user@gnu.org; Tue, 16 Dec 2008 19:40:34 -0700 (MST) In-reply-to: <1229474764.11638.28.camel@home-desktop> X-Mailer: Evolution 2.22.3.1 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:7008 Archived-At: Hi all, I was using a few deprecated commands from the 'gh_' interface (specifically gh_enter and gh_scm2newstr). On a hunch, I converted those to scm calls, removed the include for guile/gh.h and now I don't have any trouble even with 5million calls to scm_call_4. The question now is if the problem was related to the gh_ functions interacting in some way or have I just postponed when I see the problem again. After all, the segment that was giving segmentation fault was not making any explicit gh_ calls. Thanks, - Anand