Skip to content
Prev 3427 / 21312 Next

[Bioc-devel] [BioC] Rsubread crashes in 32bit linux

Dear Robert and Martin,

Thanks for your comments and suggestions.

I agree that Calloc/Free are better than calloc/free in the memory management. But because we are maintaining both R version and C version of our subread aligner package, we are inclined to use only one set of memory functions, rather than using both for catering for R and C respectively. 

We will try valgrind to examine if there is any memory leakage with our function.

I had a close look at the functions which we added to Rsubread in the last 8 months (after Rsubread version 1.1.1), and found that some functions declared large global static objects (one of the objects has a size of greater than 2GB). We suspect that this could be causing the problem to compilation, library loading and running of functions of such as buldindex(), especially for 32bit machines because R only has access to ~3GB of memory. We can now reproduce Dan's compilation problem (system frozen and large memory usage). What we are going to do is to replace these static memory usage to dynamic memory request and we will come up with fixes in a couple of days. Hope that will solve these problems.

Cheers,
Wei
On Jun 7, 2012, at 2:02 AM, Martin Morgan wrote:

            
______________________________________________________________________
The information in this email is confidential and intend...{{dropped:6}}