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

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
URL:
  <https://savannah.nongnu.org/bugs/?57996>

                 Summary: [v2.1.2] sys_sem_signal(op_completed_sem) crash in
lwip_netconn_do_connected function (seldom reproduce)
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: 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
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.1.1

    _______________________________________________________

Details:

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.

Thanks




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
Follow-up Comment #1, bug #57996 (project lwip):

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)

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
Additional Item Attachment, bug #57996 (project lwip):

File name: lwip_crash_stack.png           Size:54 KB
    <https://savannah.nongnu.org/file/lwip_crash_stack.png?file_id=48608>



    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
Additional Item Attachment, bug #57996 (project lwip):

File name: customer_tcp_connect_code.png  Size:534 KB
   
<https://savannah.nongnu.org/file/customer_tcp_connect_code.png?file_id=48609>



    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
Follow-up Comment #2, bug #57996 (project lwip):

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
Additional Item Attachment, bug #57996 (project lwip):

File name: lwipopts.h                     Size:8 KB
    <https://savannah.nongnu.org/file/lwipopts.h?file_id=48610>



    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

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

Ashley Duncan
Follow-up Comment #3, bug #57996 (project lwip):

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel