Re: [Rd] list_files() memory corruption?

From: Alistair Gee <alistair.gee_at_gmail.com>
Date: Wed, 17 Mar 2010 07:16:21 -0700

On Mon, Mar 15, 2010 at 9:13 PM, Seth Falcon <seth_at_userprimary.net> wrote:

> I'm curious to know if this is a problem you have encountered while using R.
>
> My initial thought is that there isn't much benefit of making this part
> of the code smarter.  If your patch simplifies things, I'd be more
> interested.
>
> + seth
>

Yes. I had noticed that R occasionally segfaults (especially when I run many concurrent R processes), so I used valgrind to log every use of R. In the valgrind logs, I tracked the problem to list_files().

I attached a patch to platform.c (for trunk). Unfortunately, I am having trouble building R from the subversion trunk--it is taking a very long time decompressing/installing the recommended packages--so I haven't been able to verify the fix yet. But my version of platform.c does compile, and it does simplify the code b/c count_files() is no longer needed.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 17 Mar 2010 - 14:20:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 17 Mar 2010 - 17:51:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive