lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Memory error on DHCP retry


From: rsch
Subject: Re: [lwip-users] Memory error on DHCP retry
Date: Mon, 15 Apr 2019 00:30:17 -0700 (MST)

I have an update:
When adding 
#define MEM_LIBC_MALLOC (1)
in my lwipopts.h the retry will pass.

The problem seems to be in mem.c. I have debugged some more and have found
that the application runs as follows:

1) Creating DHCP struct (as part of dhcp_start -> mem_malloc) assign address
0x20003DB8

2) DHCP Discover message (dhcp_create_msg->pbuf_alloc -> mem_malloc) assign
address 0x20003DF4
This message will be freed afterwards

3) DHCP Discover retry (dhcp_create_msg->pbuf_alloc -> mem_malloc) assign
address 0x20003DB8

No other malloc / free calls are made between these 3 steps.

Cheers
Ricardo



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]