-
Notifications
You must be signed in to change notification settings - Fork 131
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 when running graph algorithms #15
Comments
Hi. Can you give more detailed information (e.g. where the error took place)? |
According to gdb, the segfaulting line is core/graph.hpp:819 on __sync_fetch_and_add(&out_degree[src],1) but the address that its segfaulting on doesn't seem to map to any variable. |
This may happen when the max vertex id >= |V| (3774768 in your case). You can solve this by either giving the max vertex id + 1 as |V| or remapping the input graph so that vertex ids fit into [0, |V|). |
I tried using the max vertex id + 1 and I don't get a segfault anymore. |
That is strange. Can you locate where the program stucks? |
Yes, it is getting stuck in the while loop at Sometimes it stops after 1 iteration, sometimes after 2 iterations. |
This seems to be coming from using the openmpi library instead of the mpich library. Everything works with the mpich library as far as I can tell |
Well, I cannot tell why it got stuck here... What are the versions of OpenMPI and compiler you used? |
Hi I am trying to run the graph algorithms in the toolkits on cit-Patents but I keep getting the following error :
[hennessy:05177] *** Process received signal ***
[hennessy:05177] Signal: Segmentation fault (11)
[hennessy:05177] Signal code: Invalid permissions (2)
[hennessy:05177] Failing at address: 0x7f1ad8050d04
[hennessy:05177] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f1af0ee9390]
[hennessy:05177] [ 1] ./cc[0x415077]
[hennessy:05177] [ 2] ./cc[0x40a332]
[hennessy:05177] [ 3] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f1af0b2e830]
[hennessy:05177] [ 4] ./cc[0x4099b9]
[hennessy:05177] *** End of error message ***
Segmentation fault (core dumped)
The command I am running is
./pagerank /path/to/cit-patents.binedgelist 3774768
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: