[En-Nut-Discussion] Race condition and stack overflow in tcpsm.c
phip at hb9etc.ch
Fri Jan 8 09:35:40 CET 2016
Cool, thanks Ole!
This reminds me that I've never touched Ethernut for what seems like an
On 08.01.2016 00:15, Ole Reinhardt wrote:
> Hi Philipp,
> quite some time have passed since you added your patch to the
> devnut_tiva branch, but I finally merged it into trunk :)
> best regards,
> Am 24.11.2014 um 18:08 schrieb Philipp Burch:
>> On 21.11.2014 08:13, Philipp Burch wrote:
>>> Hi Ole!
>>> On 20.11.2014 22:07, Ole Reinhardt wrote:
>>>> Hi Philipp,
>>>> Am 14.11.2014 18:04, schrieb Philipp Burch:
>>>>> 1. 388 for tcpsm is still too less, I managed to make it use up to 664
>>>>> bytes and hence increased the stack space to 1024 bytes.
>>>>> 2. The DHCP thread overflowed as well, I had to set this to 1024 bytes
>>>>> as well.
>>>> I made the same experience. On CM3 (lpc) I also have set the TCP and
>>>> DHCP stack both to 1024 bytes. I never made a measurement of the really
>>>> needed size, but I expect it will be more than 650 bytes.
>>> Ok, I think I'll then add an extra #if defined(__CORTEX__) or something
>>> to have it default to a higher value.
>> r5912 in devnut_tiva now has defaults of 1024 bytes for the tcpsm and
>> dhcpc threads when compiled with __CORTEX__.
More information about the En-Nut-Discussion