Difference between revisions of "Troubleshooting"

From Nsnam
Jump to: navigation, search
(revert spam)
(start troubleshooting section)
Line 1: Line 1:
 
{{TOC}}
 
{{TOC}}
 +
 +
 +
== Debugging tips ==
 +
 +
* Q.  Is there a way to dereference a Ptr when in gdb? 
 +
* A.  yes:  p *ptr->m_ptr
 +
 +
 +
* Q.  What is this kind of build error representative of?
 +
  assert failed. file=../src/core/type-id.cc, line=389, cond="uid != 0"
 +
  Command ['/ns-3-dev/build/debug/examples/mixed-wireless'] exited with code -5
 +
* A.  The system can't find the specified TypeId.  Check spelling, and whether it is prefixed with the namespace "ns3::"
 +
 +
 +
* Q.  What is this assertion indicating?
 +
  assert failed. file=debug/ns3/tags.h, line=105, cond="sizeof (T) <= Tags::SIZE"
 +
* A.  The packet tag may be greater than Tags::SIZE (16 bytes)

Revision as of 03:18, 25 April 2008

Main Page - Current Development - Developer FAQ - Tools - Related Projects - Project Ideas - Summer Projects

Installation - Troubleshooting - User FAQ - HOWTOs - Samples - Models - Education - Contributed Code - Papers


Debugging tips

  • Q. Is there a way to dereference a Ptr when in gdb?
  • A. yes: p *ptr->m_ptr


  • Q. What is this kind of build error representative of?
 assert failed. file=../src/core/type-id.cc, line=389, cond="uid != 0"
 Command ['/ns-3-dev/build/debug/examples/mixed-wireless'] exited with code -5
  • A. The system can't find the specified TypeId. Check spelling, and whether it is prefixed with the namespace "ns3::"


  • Q. What is this assertion indicating?
 assert failed. file=debug/ns3/tags.h, line=105, cond="sizeof (T) <= Tags::SIZE"
  • A. The packet tag may be greater than Tags::SIZE (16 bytes)