Re: [Rd] Possible reasons for segmentation fault

From: Prof Brian Ripley <>
Date: Wed, 21 Jul 2010 09:43:25 +0100 (BST)

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]]
> ______________________________________________
> mailing list

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Wed 21 Jul 2010 - 08:45:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 21 Jul 2010 - 12:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive