Dear all,
my package ( svn co https://hedgehog.fhcrc.org/bioconductor/trunk/
madman/Rpacks/bgx ) segfaults sometimes. I say sometimes because, for
instance, on lamb1 it doesn't, and on wellington it does, on my own
machine it doesn't - except if I run it through valgrind...). When I
run the code as a standalone binary, there are no segfaults. Anyway,
the problem according to valgrind's stack trace appears to be in
libR.so - not directly in my own C code. I think it occurs when calling:
# bgx/R/mcmc.R:36
# free allocated memory on user interrupt/end of simulation
on.exit(.C("freeBGXMemory", as.integer(out.ind), as.integer
(numberGenesToWatch), PACKAGE = "bgx"))
Specifically, when calling as.integer(numberGenesToWatch).
The relevant part of valgrind's stack trace is below. The full trace
is below that. Does anyone have any ideas? I've been debugging for
quite a while and I really don't know what more to do..
Many thanks!