Skip to content

ESP: lwIP fixes#908

Merged
Grazfather merged 5 commits intoZigEmbeddedGroup:mainfrom
andreacoradi:esp-lwip-fixes
Feb 13, 2026
Merged

ESP: lwIP fixes#908
Grazfather merged 5 commits intoZigEmbeddedGroup:mainfrom
andreacoradi:esp-lwip-fixes

Conversation

@andreacoradi
Copy link
Contributor

Before this PR, lwIP caused null pointer dereferences in my setup (see this).
It was also possible to use APIs that expected the core mutex to be locked without locking it.
Now it will instead panic, letting you know.
My project is now much more stable, and I haven't encountered any crashes.

This is done to fix a known bug in lwIP that caused
a null pointer dereference.
Source: https://savannah.nongnu.org/bugs/?59831
This function helps identify improper use of lwIP functions in
multi-threaded environments, like forgetting to lock the core mutex
Copy link
Collaborator

@tact1m4n3 tact1m4n3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you! I think the merge to main broke the examples (the assert import in exports.zig was removed). After CI passes we can merge.

@andreacoradi
Copy link
Contributor Author

Oops! Thanks for telling me

@Grazfather Grazfather merged commit deb03e7 into ZigEmbeddedGroup:main Feb 13, 2026
60 checks passed
@andreacoradi andreacoradi deleted the esp-lwip-fixes branch February 14, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments