Re: [Rd] C code validation

From: Adrian Duşa <>
Date: Sat, 28 Jul 2012 13:02:54 +0200

Dear Prof. Ripley,

On Sat, Jul 28, 2012 at 7:54 AM, Prof Brian Ripley <> wrote:
> [...]
> See the advice in 'Writing R Extensions'. In particular, the most common
> cause is the use of initialized values, so run under valgrind.
> Also check that your C code does not change any of its arguments: if it does
> you may end up with self-modifying R code. (That's probably rare, but I
> spent a couple of hours on such an example last night.)

Thanks very much for this, valgrind proved to be a real asset. Thanks to Martin Morgan as well for pointing the same thing, the issue is now solved (the code tried to read outside the bounds of the allocated memory).

Best wishes,

Adrian Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd.
050025 Bucharest sector 5
Tel.:+40 21 3126618 \
       +40 21 3120210 / int.101
Fax: +40 21 3158391

______________________________________________ mailing list
Received on Sat 28 Jul 2012 - 11:05:45 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Sun 29 Jul 2012 - 07:10:33 GMT.

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

list of date sections of archive