From ripley at stats.ox.ac.uk  Wed Jul 21 10:43:25 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 21 Jul 2010 09:43:25 +0100 (BST)
Subject: [Rd] Possible reasons for segmentation fault
In-Reply-To: <461019.45910.qm@web52508.mail.re2.yahoo.com>
References: <461019.45910.qm@web52508.mail.re2.yahoo.com>
Message-ID: <alpine.LFD.2.00.1007210936470.32647@gannet.stats.ox.ac.uk>

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



[Rd] Possible reasons for segmentation fault
Prof Brian Ripley