接收到MQTT數據後,出現內存泄漏

發布於 2026-08-14 18:18:07

DEMO_MSG_SOCKET_CREATE
local ip : 192.168.8.249
local port :4090 udp_socket_num:1
step1: init mqtt lib.
step2: establishing TCP connection.
step3: establishing mqtt connection.
step4: subscribe mqtt
step5: start the Heart-beat preservation timer ok
payload_id:123
light_brightness:255
light_ct:255
light_r:255
light_g:255
light_b:6
Wi:75
==> heart timer 0
send heart ping
payload_id:123
light_brightness:255
light_ct:255
light_r:255
light_g:255
light_b:6
payload_id:123
payload_id:123
light_brightness:255
light_ct:255
light_r:255
light_g:255
light_b:6
Assertion "malloc() must return aligned memory" failed at line 214 in mem.c
Assertion "malloc() must return aligned memory" failed at line 214 in mem.c
Assertion "memp_malloc: memp properly aligned" failed at line 281 in memp.c
Assertion "memp_free: mem properly aligned" failed at line 365 in memp.c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem.c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem.c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem.c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem.c

查看更多

關注者
0
被浏覽
24
1 個回答
abcd
abcd 認證專家 3分鐘前
我只是個路過的老年人~

這個跟你的應用層代碼實現有關,只貼log出來看不出問題來,需要把相關代碼貼出來,可以刪除敏感信息。

撰寫答案

請登錄後再發布答案,點擊登錄

發布
問題

分享
好友

手機
浏覽

掃碼手機浏覽