milvus-sdk-cpp
milvus-sdk-cpp copied to clipboard
core dumped in sdk which compiled by g++ 9.3.1
- g++ version gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
- master branch
- cd milvus-sdk-cpp
- make
- ./cmake_build/examples/simple/sdk_simple
- gdb ./cmake_build/examples/simple/sdk_simple core.105994 show bt
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.
- I run the commad "scl enable devtoolset-9 bash " to change the version of g++;
- CentOS Linux release 7.9.2009 (Core)
core_info.zip 4. I have some tests, It may be associated with _GLIBCXX_USE_CXX11_ABI
- I run the commad "scl enable devtoolset-9 bash " to change the version of g++;
- CentOS Linux release 7.9.2009 (Core)
core_info.zip 4. I have some tests, It may be associated with _GLIBCXX_USE_CXX11_ABI
@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?
@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?
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
?
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
?