Intermittent crashes with "Missing field: FileDescriptorProto.name"

38 views
Skip to first unread message

Gustav Hansson

unread,
Apr 24, 2020, 10:34:00 AM4/24/20
to Protocol Buffers
Hi

I've been getting intermittent crashes with the following error in a couple of c++ applications for a while:

[libprotobuf ERROR descriptor.cc:3369] Invalid proto descriptor for file "":
[libprotobuf ERROR descriptor.cc:3372]   : Missing field: FileDescriptorProto.name.
[libprotobuf FATAL bbldi.pb.cc:67] CHECK failed: file != NULL:

I've seen this issue both with protobuf 3.1.0 linked statically and protobuf 3.6.1 linked dynamically on linux with gcc 8.2.0

Most of the time everything works perfectly, which sadly makes it very hard to reproduce.

Example backtrace:
#7  0x00007fa250cd08a1 in std::terminate () at ../../../../../../../../../work-shared/gcc-8.2.0-r0/gcc-8.2.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
#8  0x00007fa250cd0ad3 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x16c6d48 <typeinfo for google::protobuf::FatalException>, dest=0xeddc1a <google::protobuf::FatalException::~FatalException()>) at ../../../../../../../../../work-shared/gcc-8.2.0-r0/gcc-8.2.0/libstdc++-v3/libsupc++/eh_throw.cc:95
#9  0x0000000000ede2cb in google::protobuf::internal::LogMessage::Finish() ()
#10 0x0000000000c72444 in protobuf_AssignDesc_myProto_2eproto () at myProto.pb.cc:67   // Yes I am lying a bit a bout the names here...
#11 0x0000000000ede8c7 in google::protobuf::internal::FunctionClosure0::Run() ()
#12 0x0000000000eddbb5 in google::protobuf::GoogleOnceInitImpl(long*, google::protobuf::Closure*) ()

Any ideas on what might be going on?

Best regards
Gustav
Reply all
Reply to author
Forward
0 new messages