milvus-sdk-cpp icon indicating copy to clipboard operation
milvus-sdk-cpp copied to clipboard

core dumped in sdk which compiled by g++ 9.3.1

Open Renekton opened this issue 2 years ago • 4 comments

  1. g++ version gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
  2. master branch
  3. cd milvus-sdk-cpp
  4. make
  5. ./cmake_build/examples/simple/sdk_simple

image

  1. gdb ./cmake_build/examples/simple/sdk_simple core.105994 show bt

image

Renekton avatar Apr 21 '22 09:04 Renekton

Not reproduce it under centos:7 with devtoolset-9. I run the sdk_simple success.

@Renekton Could you share more information, e.g. how do you using devtoolset-9, I usually use source /opt/rh/devtoolset-9/enable to enable it globally. Or, you may upload your core file and sdk_simple and libmilvus_sdk.so, that will help me do more investigation on it.

matrixji avatar Apr 21 '22 14:04 matrixji

  1. I run the commad "scl enable devtoolset-9 bash " to change the version of g++;
  2. CentOS Linux release 7.9.2009 (Core)

core_info.zip 4. I have some tests, It may be associated with _GLIBCXX_USE_CXX11_ABI

Renekton avatar Apr 21 '22 14:04 Renekton

  1. I run the commad "scl enable devtoolset-9 bash " to change the version of g++;
  2. CentOS Linux release 7.9.2009 (Core)

core_info.zip 4. I have some tests, It may be associated with _GLIBCXX_USE_CXX11_ABI

Renekton avatar Apr 21 '22 14:04 Renekton

@matrixji maybe, it is associated with the version of libstdc++.so.6 and libc.so.6 . Could you show your version of libstdc++.so and libc.so.6? image

image

Renekton avatar Apr 23 '22 14:04 Renekton

@matrixji maybe, it is associated with the version of libstdc++.so.6 and libc.so.6 . Could you show your version of libstdc++.so and libc.so.6? image

image

Renekton avatar Apr 23 '22 14:04 Renekton

I guess we have the same libstdc++.so

[root@b555b131cbbb ~]# ls -al /lib64/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Nov 13  2020 /lib64/libstdc++.so.6 -> libstdc++.so.6.0.19
[root@b555b131cbbb ~]# md5sum /lib64/libstdc++.so.6.0.19
fb32fedce5089591fbf9ca7d66d0fbb1  /lib64/libstdc++.so.6.0.19
[root@b555b131cbbb ~]#

Have you tried compiling with -D_GLIBCXX_USE_CXX11_ABI=1?

matrixji avatar Apr 25 '22 07:04 matrixji

I guess we have the same libstdc++.so

[root@b555b131cbbb ~]# ls -al /lib64/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Nov 13  2020 /lib64/libstdc++.so.6 -> libstdc++.so.6.0.19
[root@b555b131cbbb ~]# md5sum /lib64/libstdc++.so.6.0.19
fb32fedce5089591fbf9ca7d66d0fbb1  /lib64/libstdc++.so.6.0.19
[root@b555b131cbbb ~]#

Have you tried compiling with -D_GLIBCXX_USE_CXX11_ABI=1?

matrixji avatar Apr 25 '22 07:04 matrixji