lwip-users
[Top][All Lists]
Advanced

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

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


From: Markus Pischinger
Subject: [lwip-users] lwip 2.0.3 "p->ref > 0" assert
Date: Tue, 24 Oct 2017 18:44:10 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hello,

i'm using lwip 2.0.3 on a cortex m4 board (atmel sam4e).
On high traffic (like zenmap "intense scan, all ports") i always get the p->ref > 0 assert in pbuf.c line 747.
If i look at the call stack it always seems to happen during pbuf_realloc called from ip4_input.
Going one step back to the pbuf_realloc where pbuf_free(q->next); is called
  /* any remaining pbufs in chain? */
  if (q->next != NULL) {
    /* free remaining pbufs in chain */
    pbuf_free(q->next);
  }
There I see that q->next is indeed not NULL but all the data inside is 0, including the ref.
Does anyone know how that can happen?

Below you'll find a screenshot from Atmel Studio taken before the pbuf_free(q->next); call.


Thanks in advance,
Markus

reply via email to

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