Crash Debug version, Release - ok

19 views
Skip to first unread message

Konstantin Morozov

unread,
Sep 30, 2020, 1:33:46 AM9/30/20
to Protocol Buffers
Ubuntu 18.04, C++, gcc-10, protoc 3.13

my project is going to be released normally. but it is dyed in the debug.
I found the moment of the error - this is the next function:
gdb output:

I am a bit confused because everything works fine in the release version. At the same time, if I don't create byteSize variable and use response_ptr->ByteSizeLong() method everywhere, the error occurs earlier - at execution of 
header_ptr->set_length(byteSize);

There is no multithreading.
Reply all
Reply to author
Forward
0 new messages