mlr-org / mlr3misc

Miscellaneous helper functions for mlr3
https://mlr3misc.mlr-org.com
GNU Lesser General Public License v3.0
11 stars 2 forks source link

pmap segfaults with bad parameters? #56

Closed mb706 closed 3 years ago

mb706 commented 3 years ago

I think we should sanitize our inputs, even if .mapply doesn't.

> mlr3misc::pmap(1:4, function(x) x)

 *** caught segfault ***
address 0x200000001, cause 'memory not mapped'

Traceback:
 1: .mapply(.f, .x, list(...))
 2: mlr3misc::pmap(1:4, function(x) x)