You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main load warp.so
warp.so load core.so
make some change build new core.so
replace core.so
warp.so reload core.so
my change hasn't loaded
and maybe crash
main is always running
if I remove the *.pb.cc change is reloaded
I have done dlopen, dlsym, dlclose
I comment code and found ::google::protobuf::DescriptorPool::InternalAddGeneratedFile in AddDescriptorsImpl is the key
I think protobuf make core.so can't unload
@xfxyjwf may have more info on this, but I believe we don't support dynamically loading protos, or especially reloading the same proto multiple times. This might be related to #1489.
main load warp.so
warp.so load core.so
make some change build new core.so
replace core.so
warp.so reload core.so
my change hasn't loaded
and maybe crash
main is always running
if I remove the *.pb.cc change is reloaded
I have done dlopen, dlsym, dlclose
I comment code and found ::google::protobuf::DescriptorPool::InternalAddGeneratedFile in AddDescriptorsImpl is the key
I think protobuf make core.so can't unload
protobuf-3.4.1
./configure CXXFLAGS=-fPIC
core.so
add_definitions("-std=c++11")
set(Protobuf_USE_STATIC_LIBS ON)
find_package(Protobuf)
set(inc_list ${Protobuf_INCLUDE_DIRS})
set(lib_list ${Protobuf_LIBRARIES})
include_directories(${inc_list})
add_library(core SHARED src/proto/core.pb.cc ${src_list})
target_link_libraries(core ${lib_list})
gcc 7.2.0
SOS
The text was updated successfully, but these errors were encountered: