Labels: Type-Defect Priority-Medium
New issue 225 by flio...@free.fr: 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
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\descriptor_database.cc:320]
Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
libprotobuf FATAL ..\src\google\protobuf\descriptor.cc:860] CHECK failed:
This application has requested the Runtime to terminate it in an unusual
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
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at