[Rd] .Call and Segmentation Fault

Thomas Lumley tlumley at u.washington.edu
Wed Aug 31 01:46:10 CEST 2005


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



More information about the R-devel mailing list