boostorg / dll

Library for comfortable work with DLL and DSO
https://boost.org/libs/dll
52 stars 43 forks source link

Crash on Android when invoking the copy assignment operator of 'shared_library' #52

Open RazvanAM opened 3 years ago

RazvanAM commented 3 years ago

When invoking the copy assignment operator (or the copy constructor) of the 'shared_library' class, eventually there is a call to 'boost::dll::detail::path_from_handle'. On android this call ends up dereferencing the handle returned by 'dlopen', which is not allowed since this patch: https://android.googlesource.com/platform/bionic/+/ae74e87%5E!/.

As a side-note, I believe the 'BOOST_OS_ANDROID' macro is not longer used.