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 #32

Open
Thorifish opened this issue Mar 24, 2022 · 1 comment
Open

Segmentation fault #32

Thorifish opened this issue Mar 24, 2022 · 1 comment

Comments

@Thorifish
Copy link

Thorifish commented Mar 24, 2022

Hi! I'm learning to use Gemini and having problems.
I downloaded data from #22 and when I run mpirun -n 1 ./sssp scale16_s.bin 65536 39, it returns

===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 13556 RUNNING AT siyuan-Alienware-m15-R6
= EXIT CODE: 139
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions

Then I tried gdb:
(gdb) run scale16_s.bin 65536 39
Starting program: /home/user/Documents/GeminiGraph-master/toolkits/sssp scale16_s.bin 65536 39
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7fabf0f in numa_bitmask_equal () from /lib/x86_64-linux-gnu/libnuma.so.1
(gdb) where
#0 0x00007ffff7fabf0f in numa_bitmask_equal () from /lib/x86_64-linux-gnu/libnuma.so.1
#1 0x00007ffff7facab3 in numa_set_interleave_mask () from /lib/x86_64-linux-gnu/libnuma.so.1
#2 0x0000555555557b9f in Graph::init (this=0x5555555b35a0) at /home/user/Documents/GeminiGraph-master/core/graph.hpp:169
#3 Graph::Graph (this=0x5555555b35a0) at /home/user/Documents/GeminiGraph-master/core/graph.hpp:148
#4 main (argc=, argv=) at /home/user/Documents/GeminiGraph-master/core/graph.hpp:143

Is there anyone can help me? Thanks a lot!

@Sanzo00
Copy link

Sanzo00 commented Mar 30, 2022

In my experience, there are two lines code may cause the segmentation fault:

  1. nodestring does not end with '\0', it will cause the numa_parse_nodestring parse error.

    struct bitmask * nodemask = numa_parse_nodestring(nodestring);

  2. dealloc_vertex_array func not return anything, so it should be void.

    T * dealloc_vertex_array(T * array) {

You can modify the code like this way. Sanzo00@f2be0a9 Hope it will help you.

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