[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes n
From: |
Mike Kleshov |
Subject: |
[lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative |
Date: |
Fri, 14 Sep 2007 09:54:04 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5 |
URL:
<http://savannah.nongnu.org/bugs/?21077>
Summary: lwip_stats.mem.used is inaccurate, sometimes
negative
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: kleshov
Submitted on: Friday 09/14/2007 at 13:54
Category: pbufs
Severity: 2 - Minor
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
While debugging my lwip-based application with LWIP_STATS switched on, I
found that lwip_stats.mem.used was assuming negative values (say,
lwip_stats.mem.used == 65532 which is effectively -4.)
There are only a few places where lwip_stats.mem.used is updated. My guess is
that it's mem.c, line 274:
lwip_stats.mem.used -= mem->next - ((u8_t *)mem - ram);
But I could be completely wrong. Could someone with knowledge of inner
workings of lwip memory management have a look at this?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?21077>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative,
Mike Kleshov <=
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative, Mike Kleshov, 2007/09/14
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative, Jonathan Larmour, 2007/09/14
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative, Frédéric Bernon, 2007/09/15
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative, Frédéric Bernon, 2007/09/15
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative, Mike Kleshov, 2007/09/15
- [lwip-devel] [bug #21077] lwip_stats.mem.used is inaccurate, sometimes negative, Frédéric Bernon, 2007/09/15