mit-ll / GCN

Group Centric Networking – A new approach to multhop wireless networking
GNU General Public License v2.0
1 stars 1 forks source link

SIGSEGV error #2

Open dhmizu95 opened 6 years ago

dhmizu95 commented 6 years ago

Hi! Thanks for exciting idea of Group Centric Networking (GCN). In fact, I found your GCN project interesting and studied the same. After collecting the source codes, I implemented in the environment as follows: Environments: Ubuntu x64 16.04 LTS NS-3.22 DCE-1.5

Error: SIGSEGV error.

Procedure: Command-1: ./waf --run "GCN_network_tests_Wifi --nNodes=100"

Output: Two folders were created named as output and stats on gcn_test directory. stats folder was empty. In output folder two txt files were generated - sim_out_scenario0_run1.txt and GCN_summary.

  1. sim_out_scenario0_run1.txt showed me all the nodes and their neighobours details.
  2. GCN_summary showed no data at all.

Error Message: Command ['/home/mizu/Simulator/dce/source/ns-3-dce/build/bin/GCN_network_tests_Wifi', '--nNodes=100'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s ").

Executing your given script produce the same result as above: ./run_sims.sh 1 0 0

I tried to debug your code but failed. For debugging I use insight debugger, which is a version of GDB that uses Tcl/Tk to implement a graphical user inter-face. I attach some screenshot of my debugging experience.

01 main

02 gcn_start

03 std_ostream

04 fflush_unlocked

05 dce_fflush

06 final_fflush

Have a good day!

pdeutsch-ll commented 6 years ago

Thanks for reporting the issue. Unfortunately, Ubuntu 16.04 is not a tested environment. (See the Release info in https://github.com/mit-ll/GCN/blob/master/ns3/GCN_Code_Release_Notes.docx) In fact, Ubuntu 16.04 is not supported in dce 1.5 itself. Can you try running with an older version of Ubuntu (14.04)?

dhmizu95 commented 6 years ago

After I implemented GCN in Ubuntu 14.04.5 x86 with DCE 1.5 as you suggested, it produced the output as below:

Script: ./run_sims.sh 1 0 0

Output: screenshot from 2018-11-26 21 06 05

Requesting your further comments.

pdeutsch-ll commented 6 years ago

Can you run it under the debugger and provide a backtrace?

dhmizu95 commented 5 years ago

At first I have submitted the output of the debugging tool. Secondly, terminal output has been given.

Debugger Output

01 __gi__io__fflush

02 dce_fflush

03 fflush_unlocked

04 std__ostream__flush

05 gcn__start

06 main

07 ns3_dcemanager

08 ns3_taskmanager

09 ns3_pthreadfibermanager

10 start_thread

11 clone

Terminal Output

12 command

13 error