Problem with TypeID

1,499 views
Skip to first unread message

abdelwahed berguiga

unread,
Feb 6, 2014, 4:49:44 AM2/6/14
to ns-3-...@googlegroups.com


Dear all,
anyone know the source of this error

assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::Udp6L4Protocol not found", file=../src/core/model/type-id.cc, line=540 terminate called without an active exception
Command ['/home/user1/ns-allinone-3.19/ns-3.19/build/scratch/pmip6-wifi'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

Konstantinos

unread,
Feb 6, 2014, 5:22:09 AM2/6/14
to ns-3-...@googlegroups.com
There is not class with a typeID Udp6L4Protocol.

The typeId for UdpL4Protocol is always ns3::UdpL4Protocol no matter if it is Ipv6 or Ipv4. 
It will instantiate an Ipv4 or Ipv6 endpoint depending on the IP Address type you have installed on that node.

Similarly for TCP.

abdelwahed berguiga

unread,
Feb 6, 2014, 9:19:21 AM2/6/14
to ns-3-...@googlegroups.com
Dear Konstantinos,
Thank you for your response,
i have update the source code and now its depnding ont the IP Address type.
Another remarque please, i have the attached ns3 script (developped under ns3.12) to be verified under ns3-19. 

when i run waf command i have this error:

'build' finished successfully (1.273s)
assert failed. cond="cur->tid != tag.GetInstanceTypeId ()", file=../src/network/model/packet-tag-list.cc, line=251
terminate called without an active exception
Command ['/home/user1/ns-allinone-3.19/ns-3.19/build/scratch/pmip6-wifi'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

Can you please tell me if its is an error compilation from source code or not?
Thank you. 

Konstantinos

unread,
Feb 6, 2014, 9:27:21 AM2/6/14
to ns-3-...@googlegroups.com
Please try running it under a debugger as it is suggested so see where it crashes. 

abdelwahed berguiga

unread,
Feb 6, 2014, 9:59:54 AM2/6/14
to ns-3-...@googlegroups.com
user1@user1:~/ns-allinone-3.19/ns-3.19$  ./waf --run pmip6-wifi --command-template="gdb --args %s <agrs>" 
Waf: Entering directory `/home/user1/ns-allinone-3.19/ns-3.19/build'
Waf: Leaving directory `/home/user1/ns-allinone-3.19/ns-3.19/build'
'build' finished successfully (1.284s)
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /home/abdelwahed/ns-allinone-3.19/ns-3.19/build/scratch/pmip6-wifi...done.
(gdb) run
Starting program: /home/abdelwahed/ns-allinone-3.19/ns-3.19/build/scratch/pmip6-wifi \<agrs\>
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
assert failed. cond="cur->tid != tag.GetInstanceTypeId ()", file=../src/network/model/packet-tag-list.cc, line=251
terminate called without an active exception

Program received signal SIGABRT, Aborted.
0xb7fdd424 in __kernel_vsyscall ()
(gdb) backtrace
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb43561df in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb4359825 in __GI_abort () at abort.c:91
#3  0xb45e513d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#4  0xb45e2ed3 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#5  0xb45e2f0f in std::terminate() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#6  0xb5b0b017 in ns3::PacketTagList::Add (this=0x81180a4, tag=...) at ../src/network/model/packet-tag-list.cc:251
#7  0xb5afa7dc in ns3::Packet::AddPacketTag (this=0x8118080, tag=...) at ../src/network/model/packet.cc:844
#8  0xb69a092e in ns3::TunnelNetDevice::Send (this=0x8116b40, packet=..., dest=..., protocolNumber=34525) at ../src/pmip6/model/tunnel-net-device.cc:351
#9  0xb651141f in ns3::Ipv6Interface::Send (this=0x80efe78, p=..., dest=...) at ../src/internet/model/ipv6-interface.cc:425
#10 0xb654144d in ns3::Ipv6L3Protocol::SendRealOut (this=0x80a2150, route=..., packet=..., ipHeader=...) at ../src/internet/model/ipv6-l3-protocol.cc:994
#11 0xb653ddd2 in ns3::Ipv6L3Protocol::Send (this=0x80a2150, packet=..., source=..., destination=..., protocol=58 ':', route=...) at ../src/internet/model/ipv6-l3-protocol.cc:792
#12 0xb64a1877 in ns3::MemPtrCallbackImpl<ns3::Ptr<ns3::Ipv6L3Protocol>, void (ns3::Ipv6L3Protocol::*)(ns3::Ptr<ns3::Packet>, ns3::Ipv6Address, ns3::Ipv6Address, unsigned char, ns3::Ptr<ns3::Ipv6Route>), void, ns3::Ptr<ns3::Packet>, ns3::Ipv6Address, ns3::Ipv6Address, unsigned char, ns3::Ptr<ns3::Ipv6Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (
    this=0x80a2480, a1=..., a2=..., a3=..., a4=58 ':', a5=...) at ./ns3/callback.h:390
#13 0xb649f824 in ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv6Address, ns3::Ipv6Address, unsigned char, ns3::Ptr<ns3::Ipv6Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80a2378, a1=..., a2=..., a3=..., a4=58 ':', a5=...) at ./ns3/callback.h:1073
#14 0xb65883f2 in ns3::Icmpv6L4Protocol::SendMessage (this=0x80a2350, packet=..., src=..., dst=..., ttl=255 '\377') at ../src/internet/model/icmpv6-l4-protocol.cc:886
#15 0xb65887d1 in ns3::Icmpv6L4Protocol::DelayedSendMessage (this=0x80a2350, packet=..., src=..., dst=..., ttl=255 '\377') at ../src/internet/model/icmpv6-l4-protocol.cc:892
#16 0xb6592686 in ns3::EventMemberImpl4::Notify (this=0x81172d8) at ./ns3/make-event.h:223
#17 0xb5824c85 in ns3::EventImpl::Invoke (this=0x81172d8) at ../src/core/model/event-impl.cc:45
#18 0xb5829aac in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x80a12b8) at ../src/core/model/default-simulator-impl.cc:141
#19 0xb5829e45 in ns3::DefaultSimulatorImpl::Run (this=0x80a12b8) at ../src/core/model/default-simulator-impl.cc:194
#20 0xb5825abc in ns3::Simulator::Run () at ../src/core/model/simulator.cc:161
---Type <return> to continue, or q <return> to quit---
#21 0x0805af42 in main (argc=2, argv=0xbffff084) at ../scratch/pmip6-wifi.cc:353
(gdb) 

abdelwahed berguiga

unread,
Feb 6, 2014, 2:45:57 PM2/6/14
to ns-3-...@googlegroups.com
Capture du 2014-02-06 20:19:58.png

Tommaso Pecorella

unread,
Feb 6, 2014, 3:01:52 PM2/6/14
to ns-3-...@googlegroups.com
Hi,

you added the tag twice to the same packet. Mind that this means also: you added the tag to an already tagged packet.

Common error:
- you have a packet
- you want to send it to two interfaces
- you tag it on the first interface
- you tag it again on the other interface, but the packet was already tagged :P

Either, you're forwarding a packet, and that packet already had a tag.

Cheers,

T.

abdelwahed berguiga

unread,
Feb 6, 2014, 6:11:47 PM2/6/14
to ns-3-...@googlegroups.com
Thanks Tommaso,
effectively, i added the tag twice to the same packet!
Thank you ;-)

Eugenio Augusto

unread,
Sep 22, 2014, 10:34:00 PM9/22/14
to ns-3-...@googlegroups.com
Hi abdelwahed berguiga,
Can you help me ?

How can I fix this problem?

mimi...@hotmail.fr

unread,
May 9, 2017, 4:45:18 PM5/9/17
to ns-3-users
dear all;
i have this error,
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::LteFfrSimple not found", file=../src/core/model/type-id.cc, line=755
terminate called without an active exception.
How i can resolve it??
thanks .

Tommaso Pecorella

unread,
May 9, 2017, 7:42:36 PM5/9/17
to ns-3-users
This means that LteFfrSimple doesn't exist.
Solutions:
1) Check the spelling and class name, and
2) Read the posting guidelines, plus
3) Read the posting guidelines (again)

T.

SHAHID K K

unread,
May 8, 2018, 2:23:24 AM5/8/18
to ns-3-users

Hi..
I got error as below. Please give solution.

assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=817
Message has been deleted

Muhammad Tauqeer

unread,
Dec 2, 2022, 2:06:18 PM12/2/22
to ns-3-users
I have the issue with TypeId need your help. The error is attached in the file. Please help me out I am stuck here.
socket err.PNG
Reply all
Reply to author
Forward
0 new messages