Bug 417 - stack explosion when sending to loopback device
: stack explosion when sending to loopback device
Status: RESOLVED FIXED
: ns-3
internet-stack
: pre-release
: All All
: P1 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-11-24 02:45 EDT by
Modified: 2008-12-13 23:30 EDT (History)


Attachments
avoid infinite stack recursion. (2.18 KB, patch)
2008-11-24 02:46 EDT, Mathieu Lacage
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-11-24 02:45:39 EDT
If you use the tcp or udp stacks, and attempt to send and receive packets from
the loopback device, you risk getting into a stack explosion. The attached
patch fixes this in a very minimally intrusive way.

(testcase exhibiting the bug and exercising the fix is in the ns-3-simu tree)
------- Comment #1 From 2008-11-24 02:46:37 EDT -------
Created an attachment (id=313) [details]
avoid infinite stack recursion.
------- Comment #2 From 2008-12-10 02:37:02 EDT -------
there is not much I can do here. I am waiting for an ACK from the relevant
maintainer, and that means raj. Reassigning to raj: if it's ok with you, please
apply.
------- Comment #3 From 2008-12-11 16:55:37 EDT -------
this causes regressions (it seems?)

more on the way.
------- Comment #4 From 2008-12-11 17:11:43 EDT -------
Given that this patch changes the order of execution of functions, it should
probably change time stamps for events as well (which it appears to do).  I
think it is good.
------- Comment #5 From 2008-12-13 23:30:16 EDT -------
Changeset
4022:142c13a3975f