SIGSEGV error

70 views
Skip to first unread message

Arij Souai

unread,
Jun 15, 2021, 5:50:15 AM6/15/21
to ns-3-users

Hi , i had an error and i couldn't solve it ,
can anyone  help me with it ?

Capture d’écran de 2021-06-15 10-45-18.png

Bharat Agarwal

unread,
Jun 15, 2021, 5:53:36 AM6/15/21
to ns-3-...@googlegroups.com
you are referencing a null pointer that why u get segmentation fault error related to memory.

Please share your code.
Best Regards ,

Bharat Agarwal 
Doctoral Researcher 
Dublin City University | School of Electronic Engineering
Glasnevin, Dublin 9 
Republic of Ireland 



--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/71b7f628-bf89-4d14-9957-19637834951fn%40googlegroups.com.

Séanadh Ríomhphoist/

Email Disclaimer

Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo. 

This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here. 

Arij Souai

unread,
Jun 15, 2021, 5:58:01 AM6/15/21
to ns-3-users
Hi,, 
Thank you for your response.
you find attached my code
final.cc

Arij Souai

unread,
Jun 16, 2021, 5:49:46 AM6/16/21
to ns-3-users

Any help please ! 

Ricardo Moura

unread,
Jun 16, 2021, 6:30:12 AM6/16/21
to ns-3-...@googlegroups.com
Hello, 

 First of all, pay attention to the variable names. Created positionAlloc6 and added the vector in positionAlloc. Afterwards, make sure the number of positions corresponds to the number of nodes. 

Screenshot_20210616-072407_txtpad.jpg
Reply all
Reply to author
Forward
0 new messages