Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core dumped in sdk which compiled by g++ 9.3.1 #177

Open
Renekton opened this issue Apr 21, 2022 · 4 comments
Open

core dumped in sdk which compiled by g++ 9.3.1 #177

Renekton opened this issue Apr 21, 2022 · 4 comments

Comments

@Renekton
Copy link

  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

@matrixji
Copy link
Collaborator

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.

@Renekton
Copy link
Author

  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
Copy link
Author

Renekton commented Apr 23, 2022

@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

@matrixji
Copy link
Collaborator

matrixji commented Apr 25, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants