[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #50837] LWIP TCP/IP race condition
From: |
preet |
Subject: |
[lwip-devel] [bug #50837] LWIP TCP/IP race condition |
Date: |
Thu, 20 Apr 2017 17:28:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 |
Follow-up Comment #4, bug #50837 (project lwip):
The target port was 6060, and I was collecting the memory statistics in
parallel on port 4005. Attached are the PCAP file, and also my LWIP
configuration options. Note that this is with 1.4.x version, and not the 2.x
which I accidentally used while opening the issue. The MBOX err counter
related to the socket continues to climb and the task that was serving port
6060 is stuck inside the send() function.
Before the test starts:
Memory: 0/64/1004/0 (Avail/Used/Max/Err)
Mbox : 0 11 11 (Err/Used/Max)
Mutex : 0 1 1 (Err/Used/Max)
Sem : 0 10 11 (Err/Used/Max)
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 15/9 (rx/tx) 0 dropped
: use/wmk/MAX - err
UDP_PCB: 6/ 6/8 - 0
TCP_PCB: 1/ 1/12 - 0
TCP_PCB_LISTEN: 4/ 4/6 - 0
TCP_SEG: 1/ 2/16 - 0
REASSDATA: 0/ 0/5 - 0
FRAG_PBUF: 0/ 0/8 - 0
NETBUF: 0/ 0/1 - 0
NETCONN: 10/ 10/20 - 0
TCPIP_MSG_API: 0/ 0/8 - 0
TCPIP_MSG_INPKT: 0/ 6/20 - 0
SYS_TIMEOUT: 5/ 5/8 - 0
PBUF_REF/ROM: 0/ 0/8 - 0
PBUF_POOL: 0/ 0/8 - 0
MALLOC_64: 1/ 2/8 - 0
MALLOC_256: 0/ 6/32 - 0
MALLOC_768: 2/ 2/32 - 0
MALLOC_1564: 0/ 0/8 - 0
After the problem hits:
Memory: 0/2320/3648/0 (Avail/Used/Max/Err)
Mbox : 191 12 12 (Err/Used/Max)
Mutex : 0 1 1 (Err/Used/Max)
Sem : 0 11 12 (Err/Used/Max)
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 208/176 (rx/tx) 8 dropped
: use/wmk/MAX - err
UDP_PCB: 6/ 6/8 - 0
TCP_PCB: 2/ 2/12 - 0
TCP_PCB_LISTEN: 4/ 4/6 - 0
TCP_SEG: 3/ 4/16 - 0
REASSDATA: 0/ 0/5 - 0
FRAG_PBUF: 0/ 0/8 - 0
NETBUF: 0/ 0/1 - 0
NETCONN: 11/ 11/20 - 0
TCPIP_MSG_API: 0/ 0/8 - 0
TCPIP_MSG_INPKT: 0/ 6/20 - 0
SYS_TIMEOUT: 5/ 5/8 - 0
PBUF_REF/ROM: 0/ 0/8 - 0
PBUF_POOL: 0/ 0/8 - 0
MALLOC_64: 1/ 2/8 - 0
MALLOC_256: 10/ 13/32 - 0
MALLOC_768: 4/ 5/32 - 0
MALLOC_1564: 0/ 0/8 - 0
After some more time when the CLIENT has disconnected at least 30 seconds
prior:
Memory: 0/2320/3648/0 (Avail/Used/Max/Err)
Mbox : 294 12 12 (Err/Used/Max)
Mutex : 0 1 1 (Err/Used/Max)
Sem : 0 11 12 (Err/Used/Max)
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 211/178 (rx/tx) 8 dropped
: use/wmk/MAX - err
UDP_PCB: 6/ 6/8 - 0
TCP_PCB: 2/ 2/12 - 0
TCP_PCB_LISTEN: 4/ 4/6 - 0
TCP_SEG: 3/ 4/16 - 0
REASSDATA: 0/ 0/5 - 0
FRAG_PBUF: 0/ 0/8 - 0
NETBUF: 0/ 0/1 - 0
NETCONN: 11/ 11/20 - 0
TCPIP_MSG_API: 0/ 0/8 - 0
TCPIP_MSG_INPKT: 0/ 6/20 - 0
SYS_TIMEOUT: 5/ 5/8 - 0
PBUF_REF/ROM: 0/ 0/8 - 0
PBUF_POOL: 0/ 0/8 - 0
MALLOC_64: 1/ 2/8 - 0
MALLOC_256: 10/ 13/32 - 0
MALLOC_768: 4/ 5/32 - 0
MALLOC_1564: 0/ 0/8 - 0
Memory: 0/2320/3648/0 (Avail/Used/Max/Err)
Mbox : 324 12 12 (Err/Used/Max)
Mutex : 0 1 1 (Err/Used/Max)
Sem : 0 11 12 (Err/Used/Max)
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 214/180 (rx/tx) 8 dropped
: use/wmk/MAX - err
UDP_PCB: 6/ 6/8 - 0
TCP_PCB: 2/ 2/12 - 0
TCP_PCB_LISTEN: 4/ 4/6 - 0
TCP_SEG: 3/ 4/16 - 0
REASSDATA: 0/ 0/5 - 0
FRAG_PBUF: 0/ 0/8 - 0
NETBUF: 0/ 0/1 - 0
NETCONN: 11/ 11/20 - 0
TCPIP_MSG_API: 0/ 0/8 - 0
TCPIP_MSG_INPKT: 0/ 6/20 - 0
SYS_TIMEOUT: 5/ 5/8 - 0
PBUF_REF/ROM: 0/ 0/8 - 0
PBUF_POOL: 0/ 0/8 - 0
MALLOC_64: 1/ 2/8 - 0
MALLOC_256: 10/ 13/32 - 0
MALLOC_768: 4/ 5/32 - 0
MALLOC_1564: 0/ 0/8 - 0
(file #40456)
_______________________________________________________
Additional Item Attachment:
File name: lwip_trace.pcapng Size:117 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50837>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, preet, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Joel Cunningham, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Simon Goldschmidt, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Joel Cunningham, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition,
preet <=
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, preet, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, preet, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, preet, 2017/04/20
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Joel Cunningham, 2017/04/21
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Joel Cunningham, 2017/04/21
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, preet, 2017/04/21
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Simon Goldschmidt, 2017/04/21
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Joel Cunningham, 2017/04/23
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Simon Goldschmidt, 2017/04/24
- [lwip-devel] [bug #50837] LWIP TCP/IP race condition, Joel Cunningham, 2017/04/24