Closed timotheecour closed 7 years ago
EDIT: also failed with:
#include <google/protobuf/message.h>
int main(int argc, char** argv) {
GOOGLE_PROTOBUF_VERIFY_VERSION;
return 0;
}
and adding proper -I
flag during compilation
EDIT: fixed by upgrading from valgrind-3.11.0 to valgrind-3.12.0 (eg via linuxbrew)
valgrind ./my_program
to reproduce:
main.cpp:
Makefile:
NOTE: everything works fine with libprotobuf.so.9.0.1 (eg: proto_D=/usr/lib/x86_64-linux-gnu/) but the valgrind failure happens with libprotoc.so.12.0.0 (eg from linuxbrew) also fails with https://github.com/google/protobuf GIT_TAG 15b60bccf8992f7ff0897705e43aa8ab8889cd02
NOTE: CMakeLists.txt used for installing protobufs; but shouldn't matter since i can also reproduce bug from linuxbrew