Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 371 by GeneratedMessageTest.MergeFromSelf CHECK failed: (&from) != (this)

What steps will reproduce the problem?

Windows 7 64-bit, VS2010
Protobuf is from
gtest is replaced with gtest-1.6.0, because native isn't compiled.

1. In project properties for all projects set General/CharacterSet to Use Multi-Byte Character Set. 1. In project properties for all projects set C/C++/Code Generation/Runtime library to Multi-threaded Debug DLL (/MDd).
2. Build in Debug mode
3. Run tests.exe from protobuf-2.4.1\vsprojects\Debug

What is the expected output? What do you see instead?

tests.exe in Debug mode reports 11 failures (in release mode in reports 4 failures):
[  FAILED  ] 11 tests, listed below:
[  FAILED  ] GeneratedMessageTest.MergeFromSelf
[  FAILED  ] ExtensionSetTest.InvalidEnumDeath
[  FAILED  ] GeneratedMessageReflectionTest.UsageErrors
[  FAILED  ] MessageTest.SerializeFailsIfNotInitialized
[  FAILED  ] MessageTest.CheckInitialized
[  FAILED  ] Printer.Death
[  FAILED  ] ReflectionOpsTest.MergeFromSelf
[  FAILED  ] RepeatedField.Truncate
[  FAILED  ] TokenizerTest.ParseInteger
[  FAILED  ] TokenizerTest.ParseFloat
[  FAILED  ] TokenizerTest.ParseString

Please use labels and text to provide additional information.

First of them:

libprotobuf FATAL d:\protobuf\protobuf-2.4.1\vsprojects\google\protobuf\] CHECK failed: (&from) != (this): d:\protobuf\protobuf-2.4.1\src\google\protobuf\compiler\cpp\ Caught std::exception-derived exception escaping the death test statement. Exception message: CHECK failed: (&from) != (this):

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

Reply via email to