Re: [lwip-users] DHCP request fails after 5th try (memory leack?)

2014-06-12 Thread George Ruinelli
Hi Sergio Thank you for your input! You were right, there was another task using pbufs. We re-initialized it every time a new network setting got applied (i.e. also when a DHCP request was completed). Sadly it every time took a new pbuf but didn't release the old one. After fixing this the DHCP

Re: [lwip-users] DHCP request fails after 5th try (memory leack?)

2014-06-12 Thread Sergio R. Caprile
Good to know! ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] DHCP request fails after 5th try (memory leack?)

2014-06-06 Thread Sergio R. Caprile
George, where did you get your stack ported ? How is it being called ? Since it is running under an RTOS, have you checked there is only one thread calling it ? Is there any other application using pbufs ? If everything is fine, can you put a breakpoint after the udp_remove() and track the

[lwip-users] DHCP request fails after 5th try (memory leack?)

2014-06-05 Thread George Ruinelli
Hi all I experiencing some weird behavior with DHCP requests. As far as I can see it seems to be a memory overflow in dhcp_start() / dhcp_stop(). DHCP requests work for 5 times but will fail at the 6th time with this error: dhcp_start(): could not obtain pcb Looking at the log below you can see