From tlumley at u.washington.edu  Wed Aug 31 01:46:10 2005
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Tue, 30 Aug 2005 16:46:10 -0700 (PDT)
Subject: [Rd] .Call and Segmentation Fault
In-Reply-To: <x2oe7faxqu.fsf@turmalin.kubism.ku.dk>
References: <973080e10508261519699235ea@mail.gmail.com>
	<F81375EB-3C7E-4385-ADC1-8842A449A332@stat.harvard.edu>
	<973080e10508271924266ea3bf@mail.gmail.com>
	<Pine.LNX.4.61.0508280718090.3599@gannet.stats>
	<973080e1050830133260bec316@mail.gmail.com>
	<x2oe7faxqu.fsf@turmalin.kubism.ku.dk>
Message-ID: <Pine.A41.4.61b.0508301642370.37942@homer05.u.washington.edu>

On Tue, 31 Aug 2005, Peter Dalgaard wrote:

> Well, did you try running under a debugger?
>
>  R -d gdb
>
> then "bt" after the segfault. (Make sure that things are compiled with
> -g option)

It would also be worth renaming the the function -- while I don't see 
exactly how it could be causing the problem, I would be nervous about 
having a C function called main() that wasn't the real main().

 	-thomas



[Rd] .Call and Segmentation Fault
Thomas Lumley