Open tsjsdbd opened 5 years ago
maybe a constructor initializer is better than memset
. for https://stackoverflow.com/questions/5800585/regarding-struct-initialization-in-c
like:
struct ABC
{
int x;
int y;
ABC(): x(1),y(2){}
};
we got the same ERROR on CentOS 7.4, but run successed on Ubuntu 16.04
we found this panic at some OS:
then use gdb found:
which locals are:
that means :
will cause index out of bounds。
for C++, local value need be initialise.
if we add this line to source code, panic will not happen: