Status: New
Labels: Type-Defect Priority-Medium

New issue 517 by Crash on using the lib after ShutdownProtobufLibrary()

What steps will reproduce the problem?
1. Call google::protobuf::ShutdownProtobufLibrary().
2. Call Message::DebugString() or ShortDebugString().
3. Access violation.

What is the expected output? What do you see instead?
No crash.

What version of the product are you using? On what operating system?
2.4.1, 2.5.0

Please provide any additional information below.
This happens because all global variables declared with GOOGLE_PROTOBUF_DECLARE_ONCE macro are not reset on shutdown, therefore associated global objects are not re-created on subsequent access. There are several places where these variables should be reset along with resetting the associated pointers. Protoc also should be fixed because two files ( and are autogenerated.

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