[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #65786] tcpip_init fails LWIP_ASSERT_CORE_LOCKED asser
From: |
Godmar Back |
Subject: |
[lwip-devel] [bug #65786] tcpip_init fails LWIP_ASSERT_CORE_LOCKED assertion |
Date: |
Fri, 24 May 2024 09:49:59 -0400 (EDT) |
URL:
<https://savannah.nongnu.org/bugs/?65786>
Summary: tcpip_init fails LWIP_ASSERT_CORE_LOCKED assertion
Group: lwIP - A Lightweight TCP/IP stack
Submitter: godmar
Submitted: Fri 24 May 2024 01:49:59 PM UTC
Category: None
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.2.0
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 24 May 2024 01:49:59 PM UTC By: Godmar Back <godmar>
I'm trying to use lwip 2.2-STABLE with
#define LWIP_TCPIP_CORE_LOCKING 1
and have implemented the necessary sys_arch functions.
Calling tcpip_init leads to a sequence where the startup sequence fails since
the code asserts that the TCP core lock is held before it was even created.
Specifically, tcpip_init calls lwip_init, which calls netif_init, which calls
netif_add for the loopback interface, which asserts
LWIP_ASSERT_CORE_LOCKED().
See https://lists.nongnu.org/archive/html/lwip-users/2024-05/msg00002.html
Possible fix: move lines 668ff before lwip_init, see
https://github.com/lwip-tcpip/lwip/blob/86c9f7999150199374d7697fd2eed62dcd9b1afa/src/api/tcpip.c#L668-L672
I'm happy to submit a PR if needed (on Github?)
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?65786>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [lwip-devel] [bug #65786] tcpip_init fails LWIP_ASSERT_CORE_LOCKED assertion,
Godmar Back <=