Status: New
Labels: Type-Defect Priority-Medium

New issue 225 by Invalid file descriptor error only with VC++ 2005-2008 (not 2010)

What steps will reproduce the problem?

1. Compile "Messages.proto" with protoc (2.3.0).
2. Compile the resulting files along with "main.cpp" under VC++ 2005 or 2008.
3. Link statically against protobuf 2.3.0.

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

The program should quietly quit but instead the following error is raised:

libprotobuf ERROR ..\src\google\protobuf\] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add(). libprotobuf FATAL ..\src\google\protobuf\] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

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

Protobuf 2.3.0 on Windows XP Pro SP2.

Please provide any additional information below.

Quotation marks inside default string value are necessary (but not enought) to produce an invalid descriptor (see "Messages.proto").

Note that the error doesn't occur under VC++ 2010.

        Messages.proto  143 bytes
        main.cpp  214 bytes

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