Bugzilla – Bug 417
stack explosion when sending to loopback device
Last modified: 2015-11-08 17:31:35 EST
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)
Created attachment 313 [details]
avoid infinite stack recursion.
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.
this causes regressions (it seems?)
more on the way.
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.
According to Massif's output, this bug is not anymore relevant thanks to the changes in LoopbackNetDevice.