Segmentation fault, SIGSEGV prob on OMNET++ V4.6 with inetmanet-2.0 and Oversim (Denacast CDN-P2P)

404 views
Skip to first unread message

Arnon Saengarunwong

unread,
Oct 18, 2017, 6:23:48 AM10/18/17
to omn...@googlegroups.com
I installed Oversim-20121206 with inetmanet-2.0 on OMNET++ V4.6 to do a CDN-P2P project.

When I ran CDN-P2P on InetUnderlayNetwork with default settings (Denacastapp, mpeg4camera/player, SimpleMesh overlay) Initially the simulation looked okay to me, started generating CDN tracker and servers but then the simulation came to abruptly stop and was aborted with 'Segmentation fault' on my console.

After that I ran the simulation again under a debugger (windows-gdb, ubuntu-valgrind) and both received similar stacks



The ubuntu was created on VM in the same computer with the windows version but I have also tried with another computer and faced the same problem too.


Looks like the program can't read addr because when I tried print addr in gdb it said 'error reading variable: Cannot access memory at address 0x14'


Could you guys please provide me some help or tips on this problem? Right now I'm not sure if the problem is about the codes or my PC system but from my trials I have a sense that the simulation crashed when the servers are trying to form a simplemesh overlay.


Thanks in advance.

Arnon Saengarunwong

unread,
Oct 19, 2017, 12:50:02 PM10/19/17
to omn...@googlegroups.com
This time I tried on ubuntu 16.04 LTS still got the same error in gdb

0x00000000004f3c06 in IPvXAddress::set (this=0x534c440, addr=...) at ../../inetmanet-2.0/src/networklayer/contract/IPvXAddress.h:137
137            isv6 = addr.isv6;

Additional : inetmanet-2.0 I downloaded from this link - https://github.com/aarizaq/inetmanet-3.x/tree/inetmanet-2.2

and Oversim with this - https://github.com/aarizaq/Oversim-20121206

Alfonso Ariza Quintana

unread,
Oct 19, 2017, 1:56:05 PM10/19/17
to omn...@googlegroups.com

With this information is difficult to reproduce the problem.

 

Versions, configuration, something like this is necessary

 

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Arnon Saengarunwong
Enviado el: jueves, 19 de octubre de 2017 18:50
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Re: Segmentation fault, SIGSEGV prob on OMNET++ V4.6 with inetmanet-2.0 and Oversim (Denacast CDN-P2P)

 

This time I tried on ubuntu 16.04 LTS still got the same error in gdb

0x00000000004f3c06 in IPvXAddress::set (this=0x534c440, addr=...) at ../../inetmanet-2.0/src/networklayer/contract/IPvXAddress.h:137
137            isv6 = addr.isv6;

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted
Message has been deleted

Arnon Saengarunwong

unread,
Oct 19, 2017, 3:13:07 PM10/19/17
to OMNeT++ Users
Can you elaborate me about version more so I can try to provide you more information. And the configuration I simply use the default settings in .ini file. I shall provide you my .ini files. Apart from this I didn't make any change at all. The trace files I downloaded from your Trace folder in Denacast branch.

If it's the omnet, inetmanet and oversim version I may quote my first post again sir. I installed Oversim-20121206 with inetmanet-2.0 on OMNET++ V4.6 everything on Windows 8.1 , ubuntu 16.04 both are 64 bit OS types.


inetmanet-2.0 I downloaded from this link - https://github.com/aarizaq/inetmanet-3.x/tree/inetmanet-2.2


I ran CDN-P2P on InetUnderlayNetwork2 settings provided in my attached files.

Thank you for your reply sir.
default.ini
denacast.ini
omnetpp.ini

Alfonso Ariza Quintana

unread,
Oct 19, 2017, 5:54:30 PM10/19/17
to omn...@googlegroups.com
What particular scenario?

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Arnon Saengarunwong <st11...@ait.asia>
Enviado: jueves, 19 de octubre de 2017 21:13
Para: OMNeT++ Users
Asunto: Re: [Omnetpp-l] Re: Segmentation fault, SIGSEGV prob on OMNET++ V4.6 with inetmanet-2.0 and Oversim (Denacast CDN-P2P)
 
Message has been deleted
Message has been deleted

Arnon Saengarunwong

unread,
Oct 20, 2017, 12:26:40 AM10/20/17
to OMNeT++ Users
I tried to run CDN-P2P -- DenaCast (CDN-P2Ptracker, DenaCastApp, MPEG4Camera, MPEG4Player)

the overlay I select on my .ini file is SimpleMeshModule (set by default)

but for the config ini files I used the same as ini files from denacast branch provided in my attached files before

Alfonso Ariza Quintana

unread,
Oct 20, 2017, 5:53:46 AM10/20/17
to omn...@googlegroups.com

[Config CDN-P2P]

description = DenaCast (CDN-P2Ptracker, DenaCastApp, MPEG4Camera, MPEG4Player)

 

network = oversim.underlay.inetunderlay.InetUnderlayNetwork2

 

 

I can run this example without problems

 

I have stopped the simulation at the second 5000 and I cannot reproduce the problem

Alfonso Ariza Quintana

unread,
Oct 20, 2017, 5:56:01 AM10/20/17
to omn...@googlegroups.com

There is a difference in the configuration that I am using

 

InetUnderlayNetwork2.connectivity = 0.8

InetUnderlayNetwork2.connectivity = 1

 

In other case the network has isolated nodes.

Arnon Saengarunwong

unread,
Oct 20, 2017, 6:04:08 AM10/20/17
to OMNeT++ Users

Thank you for your attempt to reproduce my problem sir.

Did you run with CDN-P2P Tracker, CDN server and Overlay[2] sir? Initially the omnetpp.ini file didn't include denacast.ini when I ran without denacast.ini (No CDN-P2P Tracker, CDN server) I received no error but when I included denacast.ini and add these lines in omnetpp.ini

[General]

include ./denacast.ini

*.underlayConfigurator.gracefulLeaveDelay = 15s
*.underlayConfigurator.gracefulLeaveProbability = 1.0

sim-time-limit = 200s
**.numTiers = 2
**.accessNet.channelTypes = "oversim.common.denacast_channel"
**.queueType = "inet.linklayer.queue.DropTailQueue"
**.tier1.queue.frameCapacity = 100000
**.ppp[*].queue.frameCapacity = 100000

The crash happens when the components are trying to join overlay. My network looks like this


In the debugger it said that it can't read addr in IPVxAddress.h sir.

By any chance can I have your omnetpp.ini, denacast.ini and default.ini files to see if I have mis-configured somewhere?

And which version of inetmanet, Oversim and Omnet++ you use to simulate?

Thank you sir.

Arnon Saengarunwong

unread,
Oct 20, 2017, 6:14:56 AM10/20/17
to OMNeT++ Users
I did try changing the connectivity to 1 still the segmentaton fault still occurred.

Is there by any chance that I've installed the wrong version of omnet++ or inetmanet? Currently I used Omnet++ 4.6, inetmanet-2.2 from https://github.com/aarizaq/inetmanet-3.x/tree/inetmanet-2.2, Oversim from https://github.com/aarizaq/Oversim-20121206 all run on ubuntu 16.04.3 LTS 64-bit. I did try on Windows 8.1 too.

Still happens at the same code line in IPvXAddress.h of inetmanet-2.0/src/networklayer/contract/IPvXAddress.h in this fn

void set(const IPvXAddress& addr)
    {
        isv6 = addr.isv6; crash at this line
        d[0] = addr.d[0];

        if (isv6)
        {
            d[1] = addr.d[1]; d[2] = addr.d[2]; d[3] = addr.d[3];
        }
    }
,

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

Arnon Saengarunwong

unread,
Oct 20, 2017, 11:52:14 AM10/20/17
to OMNeT++ Users
Dear Alfonso sir,

Recently, I have just tested again on Windows 10 32 bit OS and I still receive the same error. So there is a very high chance that I even have installed the wrong version of inetmanet and OverSim but I think I installed it the right way because I can run other samples.

Or I have configured .ini files wrong myself.

Could you please send me your configuration files (omnetpp.ini, denacast.ini and default.ini) so that I could try simulate the corrected configuration and get the result?

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

Alfonso Ariza Quintana

unread,
Oct 20, 2017, 2:15:12 PM10/20/17
to omn...@googlegroups.com

 

I have run a fresh installation downloading the code currently in github, I have run the simulation CDN-P2P but I cannot reproduce your problem

 

Arnon Saengarunwong

unread,
Oct 20, 2017, 2:34:19 PM10/20/17
to OMNeT++ Users

Dear Alfonso sir,

Thanks again for your effort.


From what I've seen in your sim. Can you try putting CDN-P2PTracker, CDN Servers in your scenario like in denacast.


Freshly downloaded code from github doesn't include denacast.ini but in my case


I've included denacast.ini in the omnetpp.ini shown below



Can you try including denacast.ini and the general for CDN-P2P scenario like in denacast github and see if you encounter the problem.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

Arnon Saengarunwong

unread,
Oct 20, 2017, 2:39:22 PM10/20/17
to OMNeT++ Users
To be more precisely I put these lines in the head of omnetpp.ini file


[General]

include
./denacast.ini

*.underlayConfigurator.gracefulLeaveDelay = 15s
*.underlayConfigurator.gracefulLeaveProbability = 1.0

sim
-time-limit = 200s
**.numTiers = 2
**.accessNet.channelTypes = "oversim.common.denacast_channel"
**.queueType = "inet.linklayer.queue.DropTailQueue"
**.tier1.queue.frameCapacity = 100000
**.ppp[*].queue.frameCapacity = 100000

After that the simulation will generate CDNP2Ptracker and Servers. When they are trying to join overlay the segmentation fault occurs.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

Arnon Saengarunwong

unread,
Oct 23, 2017, 7:12:15 AM10/23/17
to OMNeT++ Users
Dear Alfonso sir,

Today I too have just run a fresh installation from Github. Without including denacast.ini in omnetpp.ini file there is no error at all but when I want to add CDNP2P Tracker and Server by adding these lines of code in omnetpp.ini

[General]

include
./denacast.ini

**.numTiers = 2
**.accessNet.channelTypes = "oversim.common.denacast_channel"


I receive the same SIGSEGV error at this line on all of my machines

0x00000000004f3c06 in IPvXAddress::set (this=0x534c440, addr=...) at ../../inetmanet-2.0/src/networklayer/contract/IPvXAddress.h:137
137            isv6 = addr.isv6;

Can you try including denacast.ini and test your simulation to see if you can reproduce my problem sir.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at
https://groups.google.com/group/omnetpp.
For more options, visit
https://groups.google.com/d/optout.

Alfonso Ariza Quintana

unread,
Oct 23, 2017, 7:17:36 AM10/23/17
to omn...@googlegroups.com

If you include these file you need to modify the configuration files, there are parameters in the denecast that are incompatible with the configuration that are by default.

Arnon Saengarunwong

unread,
Oct 23, 2017, 7:32:38 AM10/23/17
to OMNeT++ Users
Thank you again, I really appreciate your helps.

I'm still new to this libraries and got no clues where to look at. Initially I want to test out the scenario that denacast works out so configuration files you mean in Simplemesh.cc files or in .ini files?

Looks like the program can't do joinoverlay function properly.

Alfonso Ariza Quintana

unread,
Oct 23, 2017, 1:25:00 PM10/23/17
to omn...@googlegroups.com

You should change the ini files only.

 

Denacast was based in a previous version of  Oversim than 20121206

Arnon Saengarunwong

unread,
Oct 23, 2017, 2:15:10 PM10/23/17
to OMNeT++ Users
Thanks for your guidance.

At first I also thought about changing the ini files but I wasn't sure if the misconfiguration of the ini files can leads to a seg fault problem.

I will try changing the ini files then. Thank you again

Arnon Saengarunwong

unread,
Oct 24, 2017, 6:33:00 AM10/24/17
to OMNeT++ Users
Actually I have been trying to change the ini files from the start but even when I manually add Simplemeshmodules overlay churns based on the OverSim documentation in omnetpp.ini file, the segmentation fault still occurs.

Is there a working example of denacast CDN-P2P configuration that I can study the system?

Alfonso Ariza Quintana

unread,
Oct 24, 2017, 4:46:16 PM10/24/17
to omn...@googlegroups.com

I am no sure, the denacast is a bit obsete, it is based in an older version of Oversim

 

Enviado desde Correo para Windows 10

 

De: Arnon Saengarunwong
Enviado: martes, 24 de octubre de 2017 12:33
Para: OMNeT++ Users
Asunto: Re: [Omnetpp-l] Re: Segmentation fault, SIGSEGV prob on OMNET++ V4.6 with inetmanet-2.0 and Oversim (Denacast CDN-P2P)

 

Actually I have been trying to change the ini files from the start but even when I manually add Simplemeshmodules overlay churns based on the OverSim documentation in omnetpp.ini file, the segmentation fault still occurs.

https://lh5.googleusercontent.com/proxy/MZEyCtksUHgDQC4jjXp4J7jTDyjpnrChGvIF4HcdF-oHXiLabwkgIZDO-kcD_ZP65KUBNj338_0hPd-77xEXgbCrSnX5ejc9O9HToLyyqrBr8Uq1kSzBF7iIO4zZSU3BHeYFqzMJjlm2SSpuRJzXuw=w5000-h5000

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Arnon Saengarunwong
Enviado el: viernes, 20 de octubre de 2017 17:52
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Re: Segmentation fault, SIGSEGV prob on OMNET++ V4.6 with inetmanet-2.0 and Oversim (Denacast CDN-P2P)

 

Dear Alfonso sir,

 

Recently, I have just tested again on Windows 10 32 bit OS and I still receive the same error. So there is a very high chance that I even have installed the wrong version of inetmanet and OverSim but I think I installed it the right way because I can run other samples.

 

Or I have configured .ini files wrong myself.

 

Could you please send me your configuration files (omnetpp.ini, denacast.ini and default.ini) so that I could try simulate the corrected configuration and get the result?

On Friday, October 20, 2017 at 4:56:01 PM UTC+7, Alfonso Ariza Quintana wrote:

There is a difference in the configuration that I am using

 

InetUnderlayNetwork2.connectivity = 0.8

InetUnderlayNetwork2.connectivity = 1

 

In other case the network has isolated nodes.

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Arnon Saengarunwong
Enviado el: viernes, 20 de octubre de 2017 6:27
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Re: Segmentation fault, SIGSEGV prob on OMNET++ V4.6 with inetmanet-2.0 and Oversim (Denacast CDN-P2P)

 

I tried to run CDN-P2P -- DenaCast (CDN-P2Ptracker, DenaCastApp, MPEG4Camera, MPEG4Player)

the overlay I select on my .ini file is SimpleMeshModule (set by default)

but for the config ini files I used the same as ini files from denacast branch provided in my attached files before

On Friday, October 20, 2017 at 4:54:30 AM UTC+7, Alfonso Ariza Quintana wrote:

What particular scenario?

Arnon Saengarunwong

unread,
Oct 25, 2017, 2:25:34 AM10/25/17
to OMNeT++ Users
I'm really in need of CDN-P2P simulation. Is there any chance that there is something unusual with denacast related codes? Can you help me take a look at this matter please.

By the way, I really appreciate your previous suggestions and attempts to help me.

Arnon Saengarunwong

unread,
Oct 25, 2017, 12:27:31 PM10/25/17
to OMNeT++ Users
Dear Alfonso,

Do you think that the OS version can possibly be a cause of segmentation fault. My senior told me that he used to run CDN-P2P Denacast on 32-bit Windows 7 without a segmentation fault error.

Best.

Arnon Saengarunwong

unread,
Oct 25, 2017, 2:59:41 PM10/25/17
to OMNeT++ Users
I've just tested it again on windows 7 32bit on VM. With the provided configuration files for CDN-P2P DenaCast from my senior but still I faced segmentation fault at the same place. I've checked project reference and there's nothing wrong with it. If it should work but it isn't then is it my installation procedure that is wrong at some point? I've installed omnet++ v4.6 inetmanet-2.2 and oversim-20121206 consequently without any build problem.

Alfonso Ariza Quintana

unread,
Oct 26, 2017, 8:04:14 AM10/26/17
to omn...@googlegroups.com

It is possible that the problem could be due to a configuration field that is not correct.

Message has been deleted

Arnon Saengarunwong

unread,
Oct 27, 2017, 6:09:27 AM10/27/17
to OMNeT++ Users
Dear Alfonso,

I've followed the instructions from my senior with his supposed-to work configuration files again today but I still receive the same weird error without any description in my console (But in debugger it said Segmentation fault). Note that I didn't make any change to the code at all for CDN-P2P Denacast scenario at all. I've run on omnetpp-4.6, inetmanet-2.2 and oversim-20121206

Simulation terminated with exit code: 139
Working directory: /home/arnon/sim/omnetpp/workspace/Oversim/simulations
Command line: ../src/Oversim -r 0 -n .:../src:../../inetmanet-2.0/examples:../../inetmanet-2.0/src --tkenv-image-path=../images -l ../../inetmanet-2.0/src/inet omnetpp.ini

Environment variables:
PATH=/home/arnon/sim/omnetpp/bin::/home/arnon/bin:/home/arnon/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/arnon/sim/omnetpp/bin
LD_LIBRARY_PATH=/home/arnon/sim/omnetpp/lib::/home/arnon/sim/omnetpp/workspace/inetmanet-2.0/src:/home/arnon/sim/omnetpp/lib
OMNETPP_IMAGE_PATH=/home/arnon/sim/omnetpp/images

It's supposed to work but it isn't and I couldn't find it cause of this error. I want to develop something based on CDN-P2P Scenario for my thesis sir but I can't get the whole original system to work properly could you please help me in this matter. I attach the configuration files that I received from my senior which are supposed to work here. Could you try these configurations and point out some fields that I mis-configured please? I wanted to find the root cause of this error to continue my thesis work.

Thank you in advance sir.
default.ini
denacast.ini
omnetpp.ini

Alfonso Ariza Quintana

unread,
Oct 27, 2017, 7:02:03 AM10/27/17
to omn...@googlegroups.com

 

I will try to check, but I am a bit busy

What particular scenario?

https://lh5.googleusercontent.com/proxy/kzOdqeV99nySH2K8KGCDaEMVrbN5VgjK0GWNMVYu0luIr23NC0_g1TstnH5UUS6947Ejru8Lw1qtiTsw3_oaTZcKKShG6guZjeUJ_0gf1qOSbw6XyVJ73PulZLYikhMrMeP8iPQ7ciFIH_g8wytojeiaK2aegm9ZN9n9P_rsQRK2DQqVpmbgwg=w5000-h5000

Arnon Saengarunwong

unread,
Oct 27, 2017, 7:10:11 AM10/27/17
to OMNeT++ Users
Dear Alfonso,

Just a while ago I did a change in Simplemesh.cc in joinOverlay() method which requires getRandomAliveNode method from GlobalNodeList

from

trackerAddress  = *globalNodeList->getRandomAliveNode(0)

to

trackerAddress  = *globalNodeList->getRandomAliveNode(0,0)

Initially the segfault error is solved. I'm not sure if the getRandomAliveNode in the current version of Oversim requires OverlayID while in the previous version (which denacast is developed) didn't require OverlayID.

From now on I will check how things work whether it's correctly or not.
Reply all
Reply to author
Forward
0 new messages