Skip to content
Prev 2328 / 10988 Next

[Rcpp-devel] [Segfault Reason] Beginner Question: Same code *sometimes* fails due to segfault sometimes

On 2011-05-20, at 12:59 AM, Sunny Srivastava wrote:

            
It's sheer chance that your code is not segfaulting every time it's running. This error means your program is trying to access memory that does not belong to it. Something that was allocated was freed, or it was never allocated in the first place, but is still being accessed.

As Romain suggested, post the code that causes this. If it's really long, try to narrow it down to a small reproducible example. 

Davor