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

zsh: segmentation fault when running the classification task #17

Open
traopia opened this issue Feb 12, 2023 · 3 comments
Open

zsh: segmentation fault when running the classification task #17

traopia opened this issue Feb 12, 2023 · 3 comments

Comments

@traopia
Copy link

traopia commented Feb 12, 2023

I get this error when running the cn task:
zsh: segmentation fault python experiments/classify_nodes.py with configs/rgcn/nc-AIFB.yaml
I tried with all the datasets and models, and with some debugging I found out that this happens right before the training starts. I am wondering if it's a problem of my machine or not and if so how to fix it.
Thank you for your help!

@thiviyanT
Copy link
Owner

Hey @traopia, Thanks for reporting this issue.

Segmentation fault is a system issue and it occurs when the program has issues accessing memory. Can you confirm that you have enough RAM to run the program? Perhaps, this issue should resolve itself after rebooting your machine.

Is there a traceback from Python? What OS are you using?

@traopia
Copy link
Author

traopia commented Feb 13, 2023 via email

@thiviyanT
Copy link
Owner

It is great to hear that it works on a different machine! This means that the code is still working.

Regarding your machine, a segmentation fault is hard to debug because it could arise from a number of different things: low memory (we have ruled this out), a bug in the code, faulty ram memory, etc. What makes it trickier is that the error message is so uninformative.

I have found that faulthandler, a built-in python package, can be used to debug this problem: https://stackoverflow.com/a/58825725. You can use this to get more information about the issue. Then it is easier to find a solution.

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