*** caught segfault ***
address 0x6, cause 'memory not mapped'
Traceback:
1: `[.data.table`(dt2, dt3, `:=`(close, price), on = .(id))
2: dt2[dt3, `:=`(close, price), on = .(id)]
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
This crash seems to only happen on Linux but not macOS as I tried on both platforms. Not sure if crashes on Windows.
> dt2
id close
<int> <list>
1: 1 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
2: 2 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
3: 3 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
4: 4 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
5: 5 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
6: 6 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
7: 7 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
8: 8 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
9: 9 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
10: 10 1.9046580,-2.7921368, 0.6122573,-1.4355704,-0.9884517, 1.0093862,...
Consider the following minimal example:
User would expect a numeric
closecolumn indtbut unfortunately there's none butdt2will captureclosefunction silently and make that column a list of the sameclosefunctions.Then replacing the
closecolumns with a numeric column in another data.table will cause crash:This crash seems to only happen on Linux but not macOS as I tried on both platforms. Not sure if crashes on Windows.
If it does not crash, the outcome might be unexpected for many users: