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
valgrind report:"Invalid read of size 4" #506
Comments
Could you provide more information here? Protobuf version, operating system, how to reproduce the problem, etc. |
Protobuf version: 2.5.0 |
when DynamicMessage object destructor, the valgrind will report this information |
It is very likely that you are violating one of the requirements in this paragraph: https://github.com/google/protobuf/blob/master/src/google/protobuf/dynamic_message.h#L113 When you create a I think you are probably destroying the |
Thanks!! |
…-fields protoc-gen-go: indicate deprecated fields in documentation
^C==6929== Thread 1:
==6929== Invalid read of size 4
==6929== at 0x5615E4: google::protobuf::DynamicMessage::~DynamicMessage() (dynamic_message.cc:334)
==6929== by 0x561808: google::protobuf::DynamicMessage::~DynamicMessage() (dynamic_message.cc:392)
==6929== by 0x562160: google::protobuf::DynamicMessageFactory::~DynamicMessageFactory() (dynamic_message.cc:192)
==6929== by 0x42B42C: StoreSvrDBMgrModule::~StoreSvrDBMgrModule() (storesvr_dbmgr_module.cpp:21)
==6929== by 0x42B4C1: StoreSvrDBMgrModule::~StoreSvrDBMgrModule() (storesvr_dbmgr_module.cpp:22)
==6929== by 0x435C67: StoreSvrMgr::app_stop() (storesvr_mgr.cpp:106)
==6929== by 0x4350B8: fini_frame (storesvr_frame.cpp:421)
==6929== by 0x43523B: main (storesvr_main.cpp:26)
==6929== Address 0x93e236c is 44 bytes inside a block of size 240 free'd
==6929== at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6929== by 0x532563: google::protobuf::DescriptorPool::Tables::~Tables() (descriptor.cc:556)
==6929== by 0x5329D9: google::protobuf::DescriptorPool::~DescriptorPool() (common.h:461)
==6929== by 0x42CF9B: StoreSvrDBMgrModule::module_fini() (storesvr_dbmgr_module.cpp:166)
==6929== by 0x435C49: StoreSvrMgr::app_stop() (storesvr_mgr.cpp:105)
==6929== by 0x4350B8: fini_frame (storesvr_frame.cpp:421)
==6929== by 0x43523B: main (storesvr_main.cpp:26)
The text was updated successfully, but these errors were encountered: