Skip to content
Prev 7580 / 63424 Next

can't find array overruns (was: help debugging segfaults)

Dear R-devel,

Last week I got several responses to my question about debugging segfaults
in my code (original post below).  After I changed the S_alloc() calls to
Calloc()/Free(), the symptom was gone, but I was told to keep looking.  So I
did:

o  Switched to Calloc/Free.  Electric Fence did not find any problem.

o  Put assert(index < bound); assert(index >=0); everywhere in the C routine
where arrays are accessed.  Everything ran fine.  (I did not (don't really
know easy way to) do the same thing for the Fortran subroutines (mostly
Breiman's original code) called by the C function.

o Changed to malloc()/free().  Still didn't find anything with Electric
Fence.

Can some one suggest how to proceed?  Is it still not save to assume the bug
is gone?

Regards,
Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message.  If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it.

==============================================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._