Hi,
I am trying to embed the simulation kernel to run from a c++ application. I followed the samples embedding and embedding2, but when I run my program I get the following error from the debugger :
Program received signal SIGSEGV, Segmentation fault.
swapcontext () at ../sysdeps/unix/sysv/linux/x86_64/swapcontext.S:40
40 ../sysdeps/unix/sysv/linux/x86_64/swapcontext.S: No such file or directory.
(gdb) bt
#0 swapcontext () at ../sysdeps/unix/sysv/linux/x86_64/swapcontext.S:40
#1 0x00007ffff7a3bcbb in cCoroutine::switchTo(cCoroutine*) () from /home/isaac/omnetpp-4.6/lib/liboppsimd.so
#2 0x00007ffff7a8ecfd in cSimulation::transferTo(cSimpleModule*) () at csimulation.cc:529
#3 0x00007ffff7a8f2f3 in cSimulation::doOneEvent(cSimpleModule*) () at csimulation.cc:612
#4 0x0000000000409cb8 in simulateDLB(SimTime, std::string, SectionBasedConfiguration*) () at main.cc:189
#5 0x0000000000409206 in main () at main.cc:277
Error is pointing to the swapcontext. So I am guessing this is due the use of activity() module in my program.
Has anyone tried using activity() with embedding? Is it a limitation of the embedding / is there anything wrong with my configuration? If I try any other samples that use handleMessage() there is no error. I tried using the hypercube sample ( which uses activity() ) and it also fails.
Could anyone please help me in this regard.
Thanks,
Isaac