[En-Nut-Discussion] Race condition and stack overflow in tcpsm.c

Philipp Burch phip at hb9etc.ch
Mon Nov 24 18:08:03 CET 2014


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__.

Regards,
Philipp


More information about the En-Nut-Discussion mailing list