Re: [protobuf] Protobuf segmentation malloc error

2017-02-14 Thread 'Adam Cozzette' via Protocol Buffers
The code you posted looks fine as far as I can tell, so I would guess that there is some bug occurring earlier on that just happens to produce a crash at this point. I would try running the code under Valgrind (or a similar tool like ASan

[protobuf] Protobuf segmentation malloc error

2017-02-11 Thread hce h
Hi, I have a following protocol and coded running on Debian Jessie in C++, I got google protobuf library malloc error at the statement of Device_Interface *interface = device->add_interface();, I could not find any errors in following implementation. Appreciate helps to fix the malloc error.