lwIP - A Lightweight TCP/IP stack - Bugs: bug #21077, lwip_stats.mem.used is inaccurate,...
You are not allowed to post comments on this tracker with your current authentication level.
bug #21077: lwip_stats.mem.used is inaccurate, sometimes negative
| Submitter: | Mike Kleshov <kleshov> | ||
| Submitted: | Fri 14 Sep 2007 09:54:03 AM UTC | ||
| Category: | pbufs | Severity: | 2 - Minor |
| Item Group: | Faulty Behaviour | Status: | Fixed |
| Privacy: | Public | Assigned to: | kleshov |
| Open/Closed: | Closed | Planned Release: | None |
| lwIP version: | None | ||
|
Sat 15 Sep 2007 11:30:24 AM UTC, comment #5: |
Mike Kleshov <kleshov> |
|
Sat 15 Sep 2007 10:06:48 AM UTC, comment #4: And the suggested fix for mem.c, line 470 seems to work: the two last stats_display give:
|
Frédéric Bernon <fbernon> |
|
Sat 15 Sep 2007 10:02:26 AM UTC, comment #3: Simple code to show the problem (with the current CVS HEAD):
|
Frédéric Bernon <fbernon> |
|
Fri 14 Sep 2007 08:50:07 PM UTC, comment #2: I've had a look through the code and your description, and your rationale and suggested fix look correct to me.
|
Jonathan Larmour <jifl> |
|
Fri 14 Sep 2007 08:33:56 PM UTC, comment #1: Having spent some time analyzing the code in mem.c, I think I found where the problem comes from.
|
Mike Kleshov <kleshov> |
|
Fri 14 Sep 2007 09:54:03 AM UTC, original submission:
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.)
|
Mike Kleshov <kleshov> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Thanks for the feedback.
I'm checking in the fix and closing the bug.