UDP: Failed assert: assert failed. file=../src/internet-stack/udp-socket-impl.cc, line=431, cond="found"

10 views
Skip to first unread message

Lally Singh

unread,
Jan 8, 2009, 12:42:44 PM1/8/09
to ns-3-...@googlegroups.com
Hi folks,

I've got a simulator roughly based off of examples/first.cc (UDP
client & server), but am getting this error at runtime:

assert failed. file=../src/internet-stack/udp-socket-impl.cc,
line=431, cond="found"

first.cc works fine. Does this happen often? If not, how do I
diagnose this? How do I get waf to run a debugger for me?

Thanks in advance for any help!

-ls

--
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech

Tom Henderson

unread,
Jan 9, 2009, 12:00:17 AM1/9/09
to ns-3-...@googlegroups.com
Lally Singh wrote:
> Hi folks,
>
> I've got a simulator roughly based off of examples/first.cc (UDP
> client & server), but am getting this error at runtime:
>
> assert failed. file=../src/internet-stack/udp-socket-impl.cc,
> line=431, cond="found"
>
> first.cc works fine. Does this happen often? If not, how do I
> diagnose this?

I've never seen the code assert there. But you can use gdb or another
debugger to debug it.

How do I get waf to run a debugger for me?

http://www.nsnam.org/wiki/index.php/User_FAQ#How_to_run_NS-3_programs_under_another_tool

- Tom

Lally Singh

unread,
Jan 12, 2009, 4:02:20 PM1/12/09
to ns-3-...@googlegroups.com


Thanks. For future reference, you get the problem if you try to send
a packet of 0 bytes. At least that's what caused it for me.

Reply all
Reply to author
Forward
0 new messages