[Rd] Possible reasons for segmentation fault

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 21 10:43:25 CEST 2010

On Tue, 20 Jul 2010, Chuen Tan wrote:

> Hi,
> I have a written a C code for R and used R CMD SHLIB to compile it.
> However, it returns segmentation fault on some 64 bits machines.

What is 'it'?  I presume you may mean trying to use the compiled code 
in R, but what you wrote suggests SHLIB segfaulted -- this almost 
always indicates a compiler bug.

> What are some of the potential reasons for this?

User error - the scope is vast.

> Thanks for the help/advice on the matter.

Read the posting guide (as you sent HTML, we know you haven't -- and 
if you had you would know that we need to know what platform you use) 
and then 'Writing R Extensions' chapter 4.

> Best regards,
> stan
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-devel mailing list