eos icon indicating copy to clipboard operation
eos copied to clipboard

Valgrind shows invalid read on message structure

Open pavybez opened this issue 9 years ago • 3 comments

I tried a quick test with Valgrind and it shows many invalid reads mostly on message structure:

==34131== Invalid read of size 8 ==34131== at 0x1AB651F: std::vector<char, std::allocator >::~vector() (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1AB4199: eos::types::Message::~Message() (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1AD8997: void std::_Destroyeos::types::Message(eos::types::Message*) (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1ACF469: void std::_Destroy_aux::__destroyeos::types::Message*(eos::types::Message*, eos::types::Message*) (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1AC5160: void std::_Destroyeos::types::Message*(eos::types::Message*, eos::types::Message*) (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1ABCCE1: void std::_Destroy<eos::types::Message*, eos::types::Message>(eos::types::Message*, eos::types::Message*, std::allocatoreos::types::Message&) (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1AB67A0: std::vector<eos::types::Message, std::allocatoreos::types::Message >::~vector() (in /home/ubuntu/eos/build/programs/eosd/eosd) ==34131== by 0x1AB311D: eos::types::Transaction::~Transaction() (in /home/ubuntu/eos/build/programs/eosd/eosd)

pavybez avatar Sep 08 '17 06:09 pavybez

Can you be more specific? I tried a few eosc commands against eosd under valgrind and got a clean bill of health. No leaks, no invalid reads. Presumably I didn't try specifically what you did.

jgiszczak avatar Sep 08 '17 20:09 jgiszczak

I tried today again and realized that these messages are only displayed when you bring down eosd.

pavybez avatar Sep 11 '17 06:09 pavybez

Old valgrind messages.

heifner avatar Jun 06 '18 03:06 heifner