buglwIP - A Lightweight TCP/IP stack - Bugs: bug #57996, [v2.1.2]...


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

bug #57996: [v2.1.2] sys_sem_signal(op_completed_sem) crash in lwip_netconn_do_connected function (seldom reproduce)

Submitted by:  Song Pu <pusong666>
Submitted on:  Mon 16 Mar 2020 10:49:14 AM UTC  
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Crash Error Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  2.1.1

Wed 18 Mar 2020 02:28:39 AM UTC, comment #3: 

According to <customer_log_in_no_crash_case.txt>, I think that there are non-blocking and blocking TCP socket  in their codes.

Song Pu <pusong666>
Tue 17 Mar 2020 04:02:50 AM UTC, comment #2: 

1. Customer All TCP Socket is non-blocking.
2. Please check "customer_tcp_connect_code.png".

Song Pu <pusong666>
Mon 16 Mar 2020 02:16:48 PM UTC, comment #1: 

I'm not sure I fully understand your post. Whast do you mean with that "what's the reason" line?

For this to be checked, we'll need the stack configuration and information about the user code (i.e. are nonblocking sockets used, is core locking used, etc)

Simon Goldschmidt <goldsimon>
Project Administrator
Mon 16 Mar 2020 10:49:14 AM UTC, original submission:  

Sys_sem_signal(op_completed_sem) crash in lwip_netconn_do_connected function due to the op_completed_sem has been freed.

Because this crash is reproduced in customer product.
I don't know other more detailed info.

"What's the reason" or "how to call Socket API", maybe cause the crash issue.


Song Pu <pusong666>


Attached Files
file #48610:  lwipopts.h added by pusong666 (8KiB - application/octet-stream)
file #48608:  lwip_crash_stack.png added by pusong666 (54KiB - image/png - 1. There is at least one non-blocking TCP socket in customer code. (We're not sure if there are more other TCP socket.) 2. Enable LWIP_TCPIP_CORE_LOCKING in lwipopts.h. 3. About stack information screenshot, please check "lwip_crash_stack.png".)


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 pusong666 (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-03-17 pusong666 Attached File- => Added lwipopts.h, #48610
    2020-03-17 pusong666 Attached File- => Added customer_tcp_connect_code.png, #48609
    2020-03-17 pusong666 Attached File- => Added lwip_crash_stack.png, #48608

    Back to the top

    Powered by Savane 3.5