Status: New
Labels: Type-Defect Priority-Medium

New issue 672 by FileDescriptorTables double free problem when use protobuf both in shared library and in main.cpp

What steps will reproduce the problem?
1. compile *.pb.cpp file with main.cpp to generate executable
2. compile *.pb.cpp file witeh other.cpp to generate a shared library
3. dlopen in main.cpp and call the function in shared library
4. when process end, there will be a double free corruption catched.

What is the expected output? What do you see instead?
hello in so
*** glibc detected *** ./main: double free or corruption (!prev): 0x000000000097e850 ***
======= Backtrace: =========
======= Memory map: ========

What version of the product are you using? On what operating system?
protobuf 2.5 on Linux ubuntu 3.11.0-15-generic

Please provide any additional information below.
it seems something wrong with the deconstruction with FileDescriptorTables

        main.cpp  1.2 KB
        Makefile  900 bytes  2.9 MB
        poker_config.pb.cpp  13.6 KB
        poker_config.pb.h  7.6 KB

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to