[R] Segmentation fault

Göran Broström gb at stat.umu.se
Sun Nov 4 14:01:26 CET 2001

Dear R-afficionados,

I have made a package that uses compiled C code, and I use the
Calloc/Free mechanism in that code. When I run a function calling 
the C code, everything is fine, but when I run it once more I get
('R -d gdb', RH 7.2, R-1.3.1):

> te()

Program received signal SIGSEGV, Segmentation fault.
RunGenCollect (size_needed=41992) at memory.c:1007
1007			SEXP next = NEXT_NODE(s);

My guess is that I haven't Free'd enough in the C code. Before I start
searching, I would like to have an expert opinion. Could the reason be 
something else?

Thanks a lot!

 Göran Broström                      tel: +46 90 786 5223
 professor                           fax: +46 90 786 6614
 Department of Statistics            http://www.stat.umu.se/egna/gb/
 Umeå University
 SE-90187 Umeå, Sweden             e-mail: gb at stat.umu.se

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 at stat.math.ethz.ch

More information about the R-help mailing list