lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #56487] [v2.1.2] crash when TCP continuous write encou


From: Song Pu
Subject: [lwip-devel] [bug #56487] [v2.1.2] crash when TCP continuous write encounter wifi disconnect
Date: Fri, 14 Jun 2019 21:47:28 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36

Follow-up Comment #1, bug #56487 (project lwip):

Further explanation:

1. TCP Socket write large data in TaskA
2. disconnect wifi -> "wifi_disconnect" callback then netif_set_addr(sta_if,
IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY) in TaskB(wifi task is higher
priority.)
3. TaskA may be switch to TaskB when TaskA is running
lwip_netconn_do_writemore  "conn->current_msg->msg.w.offset += len" or
"sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg)".
But TaskB
netif_set_addr->netif_do_ip_addr_changed->tcp_netif_ip_addr_changed_pcblist->tcp_abort->err_tcp->conn->current_msg=NULL.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56487>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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