|
From: | Karol Domagalski |
Subject: | [lwip-devel] conn->mbox_threads_waiting variable is never initialized. |
Date: | Fri, 18 Jan 2019 17:03:57 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Dear LwIP developers My program stucks in busy loop in the netconn_mark_mbox_invalid function (in the src/api/api_msg.c file). This is because conn->mbox_threads_waiting is set to random value. This problem only appears if MEMP_MEM_MALLOC is set 1 (in lwipopts.h file). As I can see conn->mbox_threads_waiting is
never initiated to known value. After adding this in the netconn_alloc
function : The problem does not appear when MEMP_MEM_MALLOC is set to 0 because the memory pools are used instead of the heap. Typically, each system sets these pools to zero during startup. Regards -- Karol Domagalski Software-Hardware Engineer B.P.I. SoftCad www.softcad.com.pl |
[Prev in Thread] | Current Thread | [Next in Thread] |