buglwIP - A Lightweight TCP/IP stack - Bugs: bug #55219, Closing a TCP server with...


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

bug #55219: Closing a TCP server with altcp_tcp_close triggers assert

Submitted by:  Pelle Bergkvist <pellebk>
Submitted on:  Thu 13 Dec 2018 08:50:24 AM UTC  
Category:  TCP Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  Simon Goldschmidt <goldsimon>
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.1.1

Tue 04 Feb 2020 06:58:48 PM UTC, comment #3: 

Yes, but as you might have noticed, I'm short of time for lwIP lately, so I'd rather do the next release from master again (as 2.2.0) instead of doing a 2.1.3.

Even with 2.1.2 we could have done that, but mqtt and mdns were in too much change then.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Mon 03 Feb 2020 11:53:40 PM UTC, comment #2: 

This bug report is against v2.1.1, so need to fix STABLE-2_1_x branch as well.

Axel Lin <axellin>
Project Member
Mon 03 Feb 2020 09:13:53 PM UTC, comment #1: 

Fixed, thanks for reporting!

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 13 Dec 2018 08:50:24 AM UTC, original submission:  

altcp_tcp_close(struct altcp_pcb*) removes callbacks for the tcp pcb without verifying state of the pcb. When setting callbacks to NULL, TCP asserts that we are not in state LISTEN.

I'm using the latest released version (2.1.2)

Pelle Bergkvist <pellebk>


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 axellin (Posted a comment)
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by pellebk (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.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-03 goldsimon StatusNone => Fixed
        Assigned toNone => goldsimon
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5