lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] What's wrong according to logs


From: zhou yi
Subject: Re: [lwip-users] What's wrong according to logs
Date: Sat, 26 Jul 2008 19:08:13 +0800

Dear all:
    The whole source code can be described as
first call socket(AF_INET, SOCK_STREAM, 0)
then call connect() function to connect to modbus slave, which is a modbus simulation software
then call send() function to send modbus request
then call recv() function to recieve modbus response.
    All the data operation is using a global array, where is the assertion failure comes from?
 
 
----- Original Message -----
From: zhou yi
Sent: Saturday, July 26, 2008 6:56 PM
Subject: [lwip-users] What's wrong according to logs

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.


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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