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

segmentation fault #4

Open
sjf18 opened this issue Mar 11, 2020 · 6 comments
Open

segmentation fault #4

sjf18 opened this issue Mar 11, 2020 · 6 comments

Comments

@sjf18
Copy link

sjf18 commented Mar 11, 2020

hello, when i am running test.py ,i got an error: segmentation fault, could you help me? thank you!

@sjf18
Copy link
Author

sjf18 commented Mar 11, 2020

when the program runs to 'class _DCNv2(Function):', this error appears

@Mukosame
Copy link
Owner

Hi this is due to the errors when compiling DCNv2. Can you put more error info after running 'make.sh'?

Also, feel free to check here: CharlesShang/DCNv2#17

@sjf18
Copy link
Author

sjf18 commented Mar 12, 2020

thanks for your reply, accord to this issue, i have updated my gcc version, and compiled dcn sucessfully again, but new error comes,
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found ,
ImportError: Failed to import DCNv2 module
Snipaste_2020-03-12_19-56-52

@Mukosame
Copy link
Owner

Hi, I find similar errors here: ContinuumIO/anaconda-issues#483. Sorry I'm not an expert in GCC, but people in that repo mentioned that it is because that the lib is only forward compatible.

So my suggestion is, first read their comments and try their solutions. Besides, would you like to provide more detailed information about your environment so that other people might have an idea about how to solve it?

@sjf18
Copy link
Author

sjf18 commented Mar 16, 2020

my system is centos7.3, python version is 3.6.6, pytorch version is 1.1.0, cuda version is 9.2,
i have tried to cpmpile dcnv2 sucessfully with gcc version 4.8.5, 4.9.4, 5.5.0, 6.5.0, 7.5.0, but when i use 4.8.5 and 4.9.4, i got segmentation fault error; when i use 5.5.0, 6.5.0, 7.5.0, i got ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found ,
i have seen many issues but i still have no idea how to make dcn work

@Mukosame
Copy link
Owner

I also failed to install dcn on centos7. Have you tried something like this? Or this?

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