lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip 2.0.3 "p->ref > 0" assert


From: Markus Pischinger
Subject: Re: [lwip-users] lwip 2.0.3 "p->ref > 0" assert
Date: Thu, 2 Nov 2017 10:04:09 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Thanks for the help.
I'm using NO_SYS=1 and all my calls are from main-loop context or callbacks.
From what context am I allowed to free a pbuf? My application only calls pbuf_free at the end of the receive callback.

Could you suggest such an application using NO_SYS that is known-to-work?

Kind regards,
Markus


Am 27/10/2017 um 15:13 schrieb Sergio R. Caprile:
That assertion is telling you that "someone" is trying to free a pbuf that has already been freed. Either by "himself" or "someone else".

That can be:
- a misbehaving application. You should check with a well-written and known-to-work application
- a buggy port, check your vendor forums
- a user not honoring the threading rules. Which API are you using ? NO_SYS= ? Do you have all your calls to low-level functions on the same context ? (either all foreground or all interrupts, no mixes)
- perhaps a buggy driver could also trash memory, but most of the times it is a threading problem or a crappy application


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]