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: seg fault with repeated function calls from C? Date: Mon, 15 Dec 2008 22:22:02 -0800 Message-ID: <1229408522.10718.11.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 1229494551 30392 80.91.229.12 (17 Dec 2008 06:15:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 06:15:51 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 17 07:16:56 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 1LCpiG-0005PV-C9 for guile-user@m.gmane.org; Wed, 17 Dec 2008 07:16:52 +0100 Original-Received: from localhost ([127.0.0.1]:59921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCph4-0007Nf-82 for guile-user@m.gmane.org; Wed, 17 Dec 2008 01:15:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCTEN-0007Hn-2M for guile-user@gnu.org; Tue, 16 Dec 2008 01:16:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCTEK-0007HT-PQ for guile-user@gnu.org; Tue, 16 Dec 2008 01:16:30 -0500 Original-Received: from [199.232.76.173] (port=52474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCTEK-0007HQ-IE for guile-user@gnu.org; Tue, 16 Dec 2008 01:16:28 -0500 Original-Received: from brmea-mail-2.sun.com ([192.18.98.43]:44891) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCTEK-0004U3-63 for guile-user@gnu.org; Tue, 16 Dec 2008 01:16:28 -0500 Original-Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBG6GQBD011366 for ; Tue, 16 Dec 2008 06:16:26 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 <0KBY00E01H9PS000@mail-amer.sun.com> (original mail from Anand.Dixit@Sun.COM) for guile-user@gnu.org; Mon, 15 Dec 2008 23:16:26 -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 <0KBY00CJ5HEK5V50@mail-amer.sun.com> for guile-user@gnu.org; Mon, 15 Dec 2008 23:16:22 -0700 (MST) X-Mailer: Evolution 2.22.3.1 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-Mailman-Approved-At: Wed, 17 Dec 2008 01:15:20 -0500 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:7009 Archived-At: Hi all, I am calling a guile function from my C code. Its a fairly straight forward implementation. However, as I keep calling this function a number of times, it breaks at some point with a segmentation fault. Here is the relevant portion : int tmp,count=10000; for (tmp=1;tmp