lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Pbuf Assert


From: Patrick Klos
Subject: Re: [lwip-users] Pbuf Assert
Date: Thu, 27 Sep 2018 08:23:15 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 9/26/2018 9:53 PM, Greenwood, Gregory A. wrote:
I cannot figure out why I am getting an Assert in pbuf.c at line 747:
    LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
I know the obvious answer, in the p->ref cannot be 0.
The problem is that I cannot tell what would cause p->ref to be 0.
And this is occurring in a while loop that depends on p != NULL.
I am using the LWIP that comes from CubeMX for STM32H7.
LWIP version 2.0.3.

Until someone with better information responds, let me venture a guess for you:

I think that ASSERT implies the pbuf has been dereferenced (freed) more than it has been referenced.  Check that you're not freeing the pbuf more than once.

Patrick Klos
Klos Technologies, Inc.


reply via email to

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