ZigRazor / CXXGraph

Header-Only C++ Library for Graph Representation and Algorithms
https://zigrazor.github.io/CXXGraph/
Mozilla Public License 2.0
442 stars 107 forks source link

Segmentation fault while running benchmark_exe #352

Open AryanGitHub opened 11 months ago

AryanGitHub commented 11 months ago

Describe the bug I am getting a Segmentation fault while running benchmark_exe.

To Reproduce Steps to reproduce the behavior:

  1. following the given steps at Benchmark Execution
  2. run ./benchmark_exe

Expected behavior the complete benchmark_exe should execute.

Screenshots

[user@fedora benchmark]$ ./benchmark_exe 
2023-09-26T22:54:46+05:30
Running ./benchmark_exe
Run on (8 X 4200 MHz CPU s)
CPU Caches:
  L1 Data 48 KiB (x4)
  L1 Instruction 32 KiB (x4)
  L2 Unified 1280 KiB (x4)
  L3 Unified 8192 KiB (x1)
Load Average: 0.93, 0.59, 0.45
***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.
***WARNING*** Library was built as DEBUG. Timings may be affected.
----------------------------------------------------------------------------------
Benchmark                                        Time             CPU   Iterations
----------------------------------------------------------------------------------
BFS_X/1                                       3698 ns         3693 ns       189718
BFS_X/18                                     29347 ns        29302 ns        24008
BFS_X/324                                   491839 ns       491235 ns         1401
BFS_X/5832                                 9127946 ns      9102094 ns           75
BFS_X/104976                             273177336 ns    272093218 ns            3
BFS_X/262144                             287219843 ns    286424086 ns            3
Segmentation fault (core dumped)

Desktop (please complete the following information):

ZigRazor commented 11 months ago

@AryanGitHub can you execute it in debug mode? or provide us the coredump generated?

Thank you

AryanGitHub commented 11 months ago

Yes, but I dont know how is benchmark is getting built as debug. I did not put the DEBUG flag, at the build.

The coredump is not displaying the source code. It is 1.4GB, I have compressed it to 314 MB https://file.io/BcLoaPTpI0AM

# extract files
tar -xaf archive_name.tar.gz -C path/to/directory
ZigRazor commented 11 months ago

Thank you, but could be more useful the stack of the coredump already opened. With only the coredump we can't open it if the executable is not compiled in the same machine.

Thanks in advance