2 May 2012 17:53
nmsgtool --readpres, which message types?
Dave Plonka <plonka <at> cs.wisc.edu>
2012-05-02 15:53:15 GMT
2012-05-02 15:53:15 GMT
Hi folks,
Are there any message types that nmsgtool --readpres works with?
For instance, for the types I've tried it, nmsgtool exits with an
error but doesn't report the "function not implemented" message that
is mentioned in nmsgtool(1) man page.
I want to be able to synthesize individual messages from text for test
cases while debugging a problem that I get a SIGSEGV when writing a
message with the perl API Net::Nmsg[::Output].
Does anyone know for sure if "string" type fields in ".proto"
files works for nmsgtool and/or Net::Nmsg::Output? (If I
make it a "bytes" field it works, if I make it string, I
get SIGSEGV in nmsg_output_write, _nmsg_message_serialize,
protobuf_c_message_pack_to_buffer, on this assertion in protobuf-c.c:
size_t
protobuf_c_message_pack_to_buffer (const ProtobufCMessage *message,
ProtobufCBuffer *buffer)
{
unsigned i;
size_t rv = 0;
ASSERT_IS_MESSAGE (message);
...
So it seems there is some memory corruption when handling the string
field type.
(Continue reading)
RSS Feed