Unfortunately, so far I have not been able to create a minimal reprex. I might be with some help and I'm happy to try harder. I was trying to add a warning to a custom deleter for a cpp11::external_pointer, roughly like so:
The above is not a reprex, as this works fine. In my case, however, I get something like:
Error: segfault from C stack overflow
Warning message:
oh no!
libc++abi: terminating with uncaught exception of type cpp11::unwind_exception: std::exception
If I swap out cpp11::warning() with Rf_warning(), all is fine again. Before going into more detail I would like to ask a question (and if this is the wrong place for asking such a question, I apologize and will take it to SO).
Is what I am trying to do something that should be supported by cpp11 or is it somehow clear that this, in general, does not work well?
After further trying (and failing) to reproduce my issue in a more contained setup, I'm closing this, as I think it might be triggered by something not directly to cpp11::external_pointer.
Unfortunately, so far I have not been able to create a minimal reprex. I might be with some help and I'm happy to try harder. I was trying to add a warning to a custom deleter for a
cpp11::external_pointer
, roughly like so:The above is not a reprex, as this works fine. In my case, however, I get something like:
If I swap out
cpp11::warning()
withRf_warning()
, all is fine again. Before going into more detail I would like to ask a question (and if this is the wrong place for asking such a question, I apologize and will take it to SO).Is what I am trying to do something that should be supported by cpp11 or is it somehow clear that this, in general, does not work well?