after debugging
(gdb) backtrace
#0 0xb567bf20 in ?? () from /lib/tls/i686/cmov/libc.so.6
#1 0xb6801d5d in std::__copy_move<false, true, std::random_access_iterator_tag>::__copy_m<char> (
__first=0x1 <error: Cannot access memory at address 0x1>, __last=0x0, __result=0x0)
at /usr/include/c++/4.4/bits/stl_algobase.h:378
#2 0xb6800940 in std::__copy_move_a<false, char*, char*> (__first=0x1 <error: Cannot access memory at address 0x1>,
__last=0x0, __result=0x0) at /usr/include/c++/4.4/bits/stl_algobase.h:397
#3 0xb67fe571 in std::__copy_move_a2<false, __gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > > (__first=..., __last=..., __result=...)
at /usr/include/c++/4.4/bits/stl_algobase.h:436
#4 0xb67fbb33 in std::copy<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > > > (__first=..., __last=..., __result=...)
at /usr/include/c++/4.4/bits/stl_algobase.h:468
#5 0xb67f821a in std::vector<char, std::allocator<char> >::erase (this=0xbfffdb70, __position=...)
at /usr/include/c++/4.4/bits/vector.tcc:137
/////////////////////////////// THIS PART CONCERN MY PROGRAM //////////////////////////////////////////////////////////////////////////////////
#6 0xb67e711f in ns3::Ipv4L3Protocol::BuildHeader (this=0x80b2888, source=..., destination=..., protocol=17 '\021',
payloadSize=1032, ttl=64 '@', tos=0 '\000', mayFragment=true) at ../src/internet/model/ipv4-l3-protocol.cc:752
#7 0xb67e5ce3 in ns3::Ipv4L3Protocol::Send (this=0x80b2888, packet=..., source=..., destination=..., protocol=17 '\021',
route=...) at ../src/internet/model/ipv4-l3-protocol.cc:651
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#8 0xb681839e in ns3::MemPtrCallbackImpl<ns3::Ptr<ns3::Ipv4>, void (ns3::Ipv4::*)(ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>), void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80b35a8,
a1=..., a2=..., a3=..., a4=17 '\021', a5=...) at ./ns3/callback.h:235
#9 0xb74a04bf in ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns---Type <return> to continue, or q <return> to quit---
#10 0xb6813587 in ns3::UdpL4Protocol::Send (this=0x80b3318, packet=..., saddr=..., daddr=..., sport=49153, dport=9,
route=...) at ../src/internet/model/udp-l4-protocol.cc:453
#11 0xb6848ffa in ns3::UdpSocketImpl::DoSendTo (this=0x80b70c8, p=..., dest=..., port=9)
at ../src/internet/model/udp-socket-impl.cc:601
#12 0xb68470d4 in ns3::UdpSocketImpl::DoSendTo (this=0x80b70c8, p=..., address=...)
at ../src/internet/model/udp-socket-impl.cc:422
#13 0xb684676c in ns3::UdpSocketImpl::DoSend (this=0x80b70c8, p=...) at ../src/internet/model/udp-socket-impl.cc:386
#14 0xb6846114 in ns3::UdpSocketImpl::Send (this=0x80b70c8, p=..., flags=0)
at ../src/internet/model/udp-socket-impl.cc:355
#15 0xb5f08048 in ns3::Socket::Send (this=0x80b70c8, p=...) at ../src/network/model/socket.cc:137
#16 0xb6eea02d in ns3::UdpEchoClient::Send (this=0x80b4bd8) at ../src/applications/model/udp-echo-client.cc:310
#17 0xb6eebccd in ns3::EventMemberImpl0::Notify (this=0x80b1f90) at ./ns3/make-event.h:94
#18 0xb5ce1cbe in ns3::EventImpl::Invoke (this=0x80b1f90) at ../src/core/model/event-impl.cc:45
#19 0xb5ce739b in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x80b1b08)
at ../src/core/model/default-simulator-impl.cc:140
#20 0xb5ce774c in ns3::DefaultSimulatorImpl::Run (this=0x80b1b08) at ../src/core/model/default-simulator-impl.cc:193
#21 0xb5ce2a83 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:160
#22 0x0804f5f6 in main (argc=1, argv=0xbffff104) at ../scratch/myfirst.cc:69
////////////////////////////// BREAK POINT for #6 and #7 ///////////////////////////////////////////////////////////
(gdb) break ns3::Ipv4L3Protocol::BuildHeader
Breakpoint 1 at 0xb67ad484 (2 locations)
(gdb) break ns3::Ipv4L3Protocol::Send
Breakpoint 2 at 0xb67e473e: file ../src/internet/model/ipv4-l3-protocol.cc, line 572.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
PLEASE ADVICEPS: before i integrate my program as a part of existing program: Ipv4L3Protocol, i tested this part via IDE it's work well !