-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
munmap_chunk(): invalid pointer
in jlcxx::FunctionWrapper
destructor after moving to new finalizer policy
#407
Comments
Compiler error that necessitated the change: /// `Action` is a complex C++ class in another library that I'm trying to wrap for Julia
auto action = module.add_type(Action)
.constructor([](const std::string& id, void* app_ptr){
return new Action(id, *((Application*) app_ptr));
}, true); // use boolean
The same code as: auto action = module.add_type(Action)
.constructor([](const std::string& id, void* app_ptr){
return new Action(id, *((Application*) app_ptr));
}, jlcxx::finalize_policy::yes); // use policy compiles fine, meaning the change from boolean was a breaking change for my project |
Is this using the master branch of CxxWrap? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to recompile and refactor my project because the argument for
constructor
was changed to require a finalizer policy instead of a boolean. I replaced everytrue
withjlcxx::finalize_policy::yes
, otherwise it would fail to compile, see below for the compiler error.After recompiling the project, it now crashes without an error message on exit:
The stacktrace doesn't point to any line of my own code, as far as I can see, how would I go about finding out how to fix this?
The text was updated successfully, but these errors were encountered: