Comment #10 on issue 370 by static initialization problem with dlopen

I attach a quick fix to test for identical duplicate message definitons. Build with this & link to it with your .so and binaries. How it works : The protoc generated file calls InternalAddGeneratedFile with the message description first. If the message name is already present, and the description matches, it skips the assert error. Since this call is first, asserts in subsequent functions (eg. InternalRegisterGeneratedFile) are safe to ignore as we know the message description is identical. Whilst this relies on the current implementation, it is backwards compatible without an API change. I've successfully applied this to 2.3.0.

        quick_patch.diff  1.9 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