I checked things under Linux and Windows (using GCC and VC++ DLL&#39;s) and the<br>same problem occurs at the same place, which is a good sign when it comes to<br>memory issues. Basically, the Rcpp::Reference(std::string) constructor that is<br>
part of S4_field, or S4_CppOverloadedMethods constructors fails, depending on<br>which comes first (whether there are fields or not). This only happens when<br>gctorture() is turned on, so R must be clobbering an unprotected SEXP<br>
somewhere...<br><br><div class="gmail_quote">On Fri, Jan 7, 2011 at 9:47 AM, Romain Francois <span dir="ltr">&lt;<a href="mailto:romain@r-enthusiasts.com">romain@r-enthusiasts.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hmm. I commited 2845 and 2846 today.<br>
<br>
Anyway, if you see it also with 0.9.0 this means more detective work.<br>
<br>
Le 07/01/11 15:05, Douglas Bates a écrit :<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Fri, Jan 7, 2011 at 5:34 AM, Romain Francois<br>
&lt;<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Le 05/01/11 18:52, Douglas Bates a écrit :<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I don&#39;t know whether this is through error on my part or because of an<br>
&quot;infelicity&quot; in the Rcpp module code but the lme4a package, which now<br>
uses Rcpp modules extensively, ends up with some difficult-to-trace<br>
memory corruption issues.  Yesterday i finally bit the bullet and ran<br>
a test with gctorture(TRUE) and valgrind enabled.  It takes a very<br>
long time and results in a segfault when trying to load the package.<br>
I enclose the transcript.  I should say that this is using Rcpp_0.9.0<br>
from CRAN, not the SVN version of Rcpp.<br>
<br>
I just got these results this morning (it was running overnight) and<br>
haven&#39;t looked at the code in Module.cpp and cache.cpp yet.  If it<br>
seems likely that the code is beyond me I can try to work out a<br>
simpler example that triggers the problem.<br>
</blockquote>
<br>
Hi Doug,<br>
<br>
Sorry for the delay, I&#39;m not fully operational yet.<br>
<br>
All this might be related to some code I put in during holidays and did not<br>
have a chance to fully test.<br>
<br>
Can you try with rev 2845 and let me know if you still see the problem.<br>
<br>
Romain<br>
</blockquote>
<br>
Regrettably the problem persists with rev 2845 (which was from<br>
2011-01-04, is that the one you meant?) but it is also present when<br>
using Rcpp_0.9.0<br>
</blockquote>
<br>
<br></div></div><div><div></div><div class="h5">
-- <br>
Romain Francois<br>
Professional R Enthusiast<br>
+33(0) 6 28 91 30 30<br>
<a href="http://romainfrancois.blog.free.fr" target="_blank">http://romainfrancois.blog.free.fr</a><br>
|- <a href="http://bit.ly/fT2rZM" target="_blank">http://bit.ly/fT2rZM</a> : highlight 0.2-5<br>
|- <a href="http://bit.ly/gpCSpH" target="_blank">http://bit.ly/gpCSpH</a> : Evolution of Rcpp code size<br>
`- <a href="http://bit.ly/hovakS" target="_blank">http://bit.ly/hovakS</a> : RcppGSL initial release<br>
<br>
<br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</div></div></blockquote></div><br>