<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">There’s no way to reproduce this. And there’s no version info (sessionInfo()). There’s little we can do with it.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I suggest you’ve a look at <a href="https://github.com/Rdatatable/data.table/wiki/Support">https://github.com/Rdatatable/data.table/wiki/Support</a> and provide us with the necessary data/code for us to reproduce.</div> <br> <div id="bloop_sign_1441922242080569088" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Arun</div></div> <br><p class="airmail_on" style="color:#000;">On 3 Sep 2015 at 19:58:41, George Gui (<a href="mailto:guizhida@gmail.com">guizhida@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>
<title></title>
<div dir="ltr">
<div>Hi, </div>
<div><br class="">
I had a memory bug when I tried to run the following script that
wants to select a subset rows of data.table, the bug is somehow
fixed by making a copy of the input data.table however:<br></div>
<div><br></div>
<div>
<div>library(data.table)</div>
<div><br></div>
<div>load('test_bug.RData')</div>
<div><br></div>
<div>Test.Bug <- function(tmp_move, ID){ </div>
<div> print(ID)</div>
<div> #tmp_move <- copy(tmp_move)</div>
<div> coverage <- tmp_move[, .(c.count= sum(dummy== 0)),
by= group]</div>
<div> groups_selected <- unique(coverage[c.count>120,
group])</div>
<div> tmp_move2 <- tmp_move[group %in%
groups_selected]</div>
<div> return(tmp_move2)</div>
<div>}</div>
<div><br></div>
<div>move[, Test.Bug(.SD, ID), by= ID]</div>
</div>
<div><br></div>
<div><br></div>
<div> *** caught segfault ***</div>
<div>address 0x7fc3910d2824, cause 'memory not mapped'</div>
<div><br></div>
<div>Traceback:</div>
<div> 1: bmerge(i, x, leftcols, rightcols, io <- FALSE, xo,
roll = 0, rollends = c(FALSE, FALSE), nomatch = 0L,
verbose = verbose)</div>
<div> 2: `[.data.table`(tmp_move, group %in%
groups_selected)</div>
<div> 3: tmp_move[group %in% groups_selected]</div>
<div> 4: Test.Bug(.SD, ID)</div>
<div> 5: `[.data.table`(move, , Test.Bug(.SD, ID), by =
ID)</div>
<div> 6: move[, Test.Bug(.SD, ID), by = ID]</div>
<div><br></div>
<div><br></div>
--<br>
<div class="gmail_signature">
<div>
<div dir="ltr">Zhida(George) Gui
<div>Mathematics and Economics Major</div>
<div><a href="mailto:Email%3Aguizhida@gmail.com" target="_blank">Email:guizhida@gmail.com</a><br>
Cell:773-614-2597</div>
</div>
</div>
</div>
</div>
<hr>_______________________________________________
<br>datatable-help mailing list
<br>datatable-help@lists.r-forge.r-project.org
<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</div></div></span></blockquote></body></html>