buglwIP - A Lightweight TCP/IP stack - Bugs: bug #58631, Bug or documentation discrepancy...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58631: Bug or documentation discrepancy in netconn_recv_tcp_pbuf

Submitter:  Wilfred <will>
Submitted:  Sat 20 Jun 2020 01:55:43 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  git head

Wed 24 Jun 2020 04:21:06 PM UTC, comment #2: 


comment #1:

> A bit more details would be nice. What's the documentation discrepancy and where did you read the docs?

Wilfred <will>
Wed 24 Jun 2020 05:23:16 AM UTC, comment #1: 

A bit more details would be nice. What's the documentation discrepancy and where did you read the docs?

Simon Goldschmidt <goldsimon>
Group administrator
Sat 20 Jun 2020 01:55:43 AM UTC, original submission:  


There is either a bug in netconn_recv_tcp_pbuf or a clarification in the documentation is needed.

I am using the ESP32 IDE latest commit 625bd5e
https://github.com/espressif/esp-idf/
lwIP CHANGELOG says STABLE-2.1.2

My code:

pb=NULL;
if(ERR_OK != netconn_recv_tcp_pbuf(nconn, &pb))
{
   assert(pb == NULL); /* fails */
   if(pb)
      pbuf_free(pb); /* Crashes in pbuf_free() if above assert is removed */
}



Wilfred <will>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by will (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code