[R] Problems with .C - [Ff]ree()?

About this list Date view Thread view Subject view Author view Attachment view

From: Mark White (mjw@celos.net)
Date: Tue 15 Jan 2002 - 09:17:59 EST


Message-id: <20020114221759.B22531@celos.net>

I've just pulled my R installations up to 1.4.0, and am
having trouble with some of my dyn.load'd C code: R
frequently segfaults after .C calls into the (newly rebuilt)
libraries. It hasn't happened with any previous versions of
R I've used.

I do seem to be able to make things behave by removing calls
to free(). Changing everything to Calloc() and Free(),
didn't help, however. Stack traces aren't especially
useful; it often segfaults in operations relating to freeing
vectors, but not always: for example, I recently has a spate
of segfaults in seq(). It does appear to behave if I remove
all the .C calls. It also seems to be more stable if I've
already created some large vectors in R before I start
making external calls.

Any thoughts? This is on NetBSD, btw.

Mark <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Thu 17 Jan 2002 - 11:10:11 EST