Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 517 by valiko...@gmail.com: Crash on using the lib after ShutdownProtobufLibrary()
http://code.google.com/p/protobuf/issues/detail?id=517

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 (plugin.pb.cc and descriptor.pb.cc) 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:
https://code.google.com/hosting/settings

--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to