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

Submitted by:  Wilfred <will>
Submitted on:  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>
Project 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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.7