Re: [R] problems with for: warnings and segfault

From: Prof Brian Ripley <>
Date: Sat 12 Nov 2005 - 07:23:15 EST

On Fri, 11 Nov 2005, Peter Dalgaard wrote:

> Mike Miller <> writes:
>> On Fri, 11 Nov 2005, Ronaldo Reis-Jr. wrote:
>>> Segmentation fault
>>> This is a R bug or an error in my for function?
>> All seg faults are bugs.
> Within reason... If users go out of their way to cause havoc, e.g.
> calling C/Fortran entry points with incorrect parameters, they deserve
> what they get. "Normal" abuse of the language shouldn't crash R.

Also, they are not necessarily bugs *in R*. They could well be bugs in the compiler or the libc (or equivalent) or even the OS running out of resources ungracefully. We've seen quite a few which were compiler bugs, and cases where a malloc failure was a segfault in the OS and not a NULL return.

This one was a bug in R, only happening with incorrect usage. It has now been fixed.

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
PLEASE do read the posting guide!
Received on Sat Nov 12 07:38:29 2005

This archive was generated by hypermail 2.1.8 : Sat 12 Nov 2005 - 09:17:39 EST