First of all, the code for contiki (edge) runs with minimal-net target without any problem. Minimal-net target is compiled as a native source and you run it on normal pc such as linux.
However, when I run the client-server application in Cooja simulator compiled as a cooja target, I get segmentation fault. If I compile the target as a WisMote and run inside the cooja simulator, the code does not raise segmentation fault, however, nodes do not respond. In the stack watcher of cooja simulator, I see illegal read warnings. In both cooja and wismote, still the initial handshake messages CH are exchanged without any issue. But I should note that if I print more debug messages, then segmentation error occurs earlier.
I've attached the logs for both cooja and wismote, the stack watcher output of the Wismote, and lastly the segmentation fault report. Unfortunately, I could not find the reported address of the segmentation fault in the objdump.
I would like to update the status for wismote. It turned out that Wismote under cooja is extremely slow. ECC implementation does not play well with Wismote. It took 9 minutes of simulation time, probably around 20 minutes in real time.
How can I improve the ECC performance in the simulation? Any idea?
And still compiling with cooja target raises segmentation fault.