Troubleshooting: Difference between revisions

From Nsnam
Jump to navigation Jump to search
(start troubleshooting section)
(add link to python from this page. Add some structure to this page.)
Line 1: Line 1:
{{TOC}}
{{TOC}}


== Platform-specific issues ==


== Debugging tips ==
=== Cygwin ===
 
Python bindings do not build successfully due to a gccxml bugSee the [[NS-3_Python_Bindings#Caveats]] page.
* Q.  Is there a way to dereference a Ptr when in gdb? 
* Ayes:  p *ptr->m_ptr


== General build problems ==


* Q.  What is this kind of build error representative of?
* Q.  What is this kind of build error representative of?
Line 13: Line 13:
* A.  The system can't find the specified TypeId.  Check spelling, and whether it is prefixed with the namespace "ns3::"
* A.  The system can't find the specified TypeId.  Check spelling, and whether it is prefixed with the namespace "ns3::"


== Run-time errors ==


* Q.  What is this assertion indicating?
* Q.  What is this assertion indicating?
   assert failed. file=debug/ns3/tags.h, line=105, cond="sizeof (T) <= Tags::SIZE"
   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)
* A.  The packet tag may be greater than Tags::SIZE (16 bytes)
== Debugging tips ==
* Q.  Is there a way to dereference a Ptr when in gdb? 
* A.  yes:  p *ptr->m_ptr

Revision as of 12:44, 4 September 2008

Main Page - Roadmap - Summer Projects - Project Ideas - Developer FAQ - Tools - Related Projects

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

Platform-specific issues

Cygwin

Python bindings do not build successfully due to a gccxml bug. See the NS-3_Python_Bindings#Caveats page.

General build problems

  • 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::"

Run-time errors

  • 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)

Debugging tips

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