Hello All,

I am writing a parser that will except a protobuf binary and print what is 
sent on wire.

I am getting the following malloc error for some reason I dont know. Have 
any body else encountered this before?

Regards

#0  0x0000003e44ef023e in __lll_lock_wait_private () from /lib64/libc.so.6
#1  0x0000003e44e7bc08 in _L_lock_9166 () from /lib64/libc.so.6
#2  0x0000003e44e795a2 in malloc () from /lib64/libc.so.6
#3  0x0000003e44e6f85b in __libc_message () from /lib64/libc.so.6
#4  0x0000003e44e751e6 in malloc_printerr () from /lib64/libc.so.6
#5  0x0000003e44e78928 in _int_malloc () from /lib64/libc.so.6
#6  0x0000003e44e795ad in malloc () from /lib64/libc.so.6
#7  0x00000039dfcbd06d in operator new(unsigned long) () from 
/usr/lib64/libstdc++.so.6
#8  0x000000000043abde in ConnectionData::mutable_ip_address 
(this=0x719550) at VRG_XPC_COMM_CPP.pb.h:1415
#9  0x0000000000440950 in ConnectionData::MergePartialFromCodedStream 
(this=0x719550, input=0x7fffffffc970) at VRG_XPC_COMM_CPP.pb.cc:1490
#10 0x000000000044d957 in 
google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual<DeviceConnectionData>
 
(input=0x7fffffffc970, value=0x719550)
    at Parser/INSTALL/include/google/protobuf/wire_format_lite_inl.h:488
#11 0x0000000000444f0a in Device::MergePartialFromCodedStream 
(this=0x71bfd0, input=0x7fffffffc970) at VRG_XPC_COMM_CPP.pb.cc:2583
#12 0x000000000044de6f in 
google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual<Device> 
(input=0x7fffffffc970, value=0x71bfd0)
    at Parser/INSTALL/include/google/protobuf/wire_format_lite_inl.h:488
#13 0x000000000044aa1c in MessageDeviceReport::MergePartialFromCodedStream 
(this=0x71a010, input=0x7fffffffc970) at VRG_XPC_COMM_CPP.pb.cc:4087
#14 0x0000000000455d09 in ReadMessage (this=0x71a378, number=<value 
optimized out>, was_packed_on_wire=<value optimized out>, extension=<value 
optimized out>, input=0x7fffffffc970, 
    field_skipper=<value optimized out>) at 
./google/protobuf/wire_format_lite_inl.h:447
#15 google::protobuf::internal::ExtensionSet::ParseFieldWithExtensionInfo 
(this=0x71a378, number=<value optimized out>, was_packed_on_wire=<value 
optimized out>, extension=<value optimized out>, 
    input=0x7fffffffc970, field_skipper=<value optimized out>) at 
google/protobuf/extension_set.cc:1163
#16 0x000000000045656c in 
google::protobuf::internal::ExtensionSet::ParseField (this=0x71a378, 
tag=90, input=0x7fffffffc970, extension_finder=<value optimized out>, 
field_skipper=0x7fffffffc8b0)
    at google/protobuf/extension_set.cc:1011
#17 0x00000000004a2410 in 
google::protobuf::internal::ExtensionSet::ParseField (this=0x71a378, 
tag=90, input=0x7fffffffc970, containing_type=<value optimized out>, 
unknown_fields=<value optimized out>)
    at google/protobuf/extension_set_heavy.cc:275
#18 0x000000000043d94b in MessageEnvelope::MergePartialFromCodedStream 
(this=0x71a370, input=0x7fffffffc970) at VRG_XPC_COMM_CPP.pb.cc:640
#19 0x0000000000459406 in InlineMergeFromCodedStream (this=0x71a370, 
data=<value optimized out>, size=<value optimized out>) at 
google/protobuf/message_lite.cc:121
#20 InlineParseFromCodedStream (this=0x71a370, data=<value optimized out>, 
size=<value optimized out>) at google/protobuf/message_lite.cc:132
#21 InlineParseFromArray (this=0x71a370, data=<value optimized out>, 
size=<value optimized out>) at google/protobuf/message_lite.cc:144
#22 google::protobuf::MessageLite::ParseFromArray (this=0x71a370, 
data=<value optimized out>, size=<value optimized out>) at 
google/protobuf/message_lite.cc:207
#23 0x000000000043a1cd in xCPPPCExtractProtoBufMessage (msg=0x7fffe0000d1e, 
len=223) at xpc_cpp_handler.cc:179
#24 0x0000000000406eac in msg_consume (rkmessage=0x7fffe0000910, 
opaque=0x0) at xpc_protobuf_parser.c:169
#25 0x0000000000408106 in main (argc=11, argv=0x7fffffffdfa8) at 
xpc_protobuf_parser.c:680


message ConnectionData
{
    required string ip_address = 1;

    optional uint32 id = 2;

    required string name = 3;

    required Lease lease = 4;

    optional Interface interface = 5;

    optional bytes sid = 6;

    repeated Range range = 7;
}

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to