<div dir="ltr"><div>Dirk,  Thanks much for taking the time to investigate this issue.  I've created a package (sparseList_1.0.tar.gz) with a minimal example of what writing from a list of dgCMatrix matrices at the R layer to a field<sp_mat>.  I had intended to install boot2docker and use load your R-devel set-up to a container so that I could replicate the ASAN-generated error.  Its taking me longer than I'd hoped, however, so - for now - I include the package tarball with the minimal example and also an R script (sparse_list_to_field.R) so that you may see what the function does.  </div>
<div></div><div>Terrance​<br><div style="padding:5px;border:1px solid rgb(221,221,221);width:396px;height:18px;color:rgb(34,34,34);line-height:1;font-family:arial;font-size:13px;font-style:normal;font-weight:bold;max-height:18px;background-color:rgb(245,245,245)" class="gmail_chip gmail_drive_chip">
<a style="padding:1px 0px;border:currentColor;width:100%;overflow:hidden;text-decoration:none;display:inline-block;white-space:nowrap;text-overflow:ellipsis" href="https://docs.google.com/file/d/0B0DIDcaf6yMwSUdWOVVSSFh4WHQ4YlZsR2tfQTVuVjMxTWZB/edit?usp=drive_web" target="_blank"><img style="border: currentColor; vertical-align: bottom;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom" dir="ltr">sparse_list_to_field.R</span></a></div>
​​<br><div style="padding:5px;border:1px solid rgb(221,221,221);width:396px;height:18px;color:rgb(34,34,34);line-height:1;font-family:arial;font-size:13px;font-style:normal;font-weight:bold;max-height:18px;background-color:rgb(245,245,245)" class="gmail_chip gmail_drive_chip">
<a style="padding:1px 0px;border:currentColor;width:100%;overflow:hidden;text-decoration:none;display:inline-block;white-space:nowrap;text-overflow:ellipsis" href="https://docs.google.com/file/d/0B0DIDcaf6yMwM1hzd2Y4TG9KSThnX2pYaVF2eGhiR2RVUVNV/edit?usp=drive_web" target="_blank"><img style="border: currentColor; vertical-align: bottom;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom" dir="ltr">sparseList_1.0.tar.gz</span></a></div>
​​</div><div></div><div>​ </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 11:50 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Terrance,<br>
<br>
So I took a look with one of the prebuilt versions of R using the Docker<br>
container I prepare (see the blog / sanitizers write-up I linked to) as I<br>
realized that we had a Rcpp Gallery post similar to what that as<> conversion<br>
does.<br>
<br>
And no issue with that code.<br>
<br>
>From a brief look at your package it seems like you are pushing the envelope<br>
a lot harder with fields and list of sparse matrices ( in dpmix.cpp, where<br>
another ASAN log pointed to ) so you may have to debug around there.<br>
<br>
A small reproducible example would surely help us. So far I don't have one<br>
for as<sp_mat>.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
<a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you, Terrance Savitsky
</div>