|
From: | zhou yi |
Subject: | [lwip-users] What's wrong according to logs |
Date: | Sat, 26 Jul 2008 18:56:12 +0800 |
Dear all:
I port LwIP 1.1.1 to at91sam7x256 with
rtl8201 phy, and write a modbus tcp procotol, now I test my modbus tcp procotol,
the system run for about 30 minutes, the log will like this:
Assertion "pbuf_free: p->ref > 0" failed at line 574 in
E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c
Assertion "mem_free: legal memory" failed at line 149 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\mem.c Assertion "p->next != NULL" failed at line 790 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "p->len < p->tot_len" failed at line 788 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "p->len < p->tot_len" failed at line 788 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "p->next != NULL" failed at line 790 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c lwip_send(0, data="" size=12, flags=0x0) lwip_send(0) ok size=12 TCP Sent"00 94 00 00 00 06 01 03 00 00 00 32 lwip_recvfrom(0, 0000d3e9, 8, 0x0, ..) Assertion "pbuf_free: sane flags" failed at line 561 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "pbuf_free: p->ref > 0" failed at line 574 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "pbuf_free: p->ref > 0" failed at line 574 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "mem_free: legal memory" failed at line 149 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\mem.c Assertion "p->next != NULL" failed at line 790 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "p->len < p->tot_len" failed at line 788 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "p->len < p->tot_len" failed at line 788 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "p->next != NULL" failed at line 790 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c Assertion "pbuf_free: sane flags" failed at line 561 in E:\work\7x256.200807251944\7x256\src\LwIP\src\core\pbuf.c lwip_recvfrom(0): buf == NULL! But I only use static memory which is allocated by predefined array, like unsigned char gszMbAduData[DC_MB_ASCII_ADU_LENGTH]. What is the problem? Thanks. |
[Prev in Thread] | Current Thread | [Next in Thread] |