lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #22983] Bugs in unix port unixsim program


From: Rishi Khan
Subject: [lwip-devel] [bug #22983] Bugs in unix port unixsim program
Date: Sat, 19 Apr 2008 19:29:45 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

URL:
  <http://savannah.nongnu.org/bugs/?22983>

                 Summary: Bugs in unix port unixsim program
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: rishi
            Submitted on: Saturday 04/19/2008 at 19:29
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

1) The number of SYS_TIMEOUT memblocks is too small. It is set to 2 and when
I compile this on ubuntu linux, the program segfaults on the assertion
"sys_timeout: timeout != NULL". What is actually happening if you turn on the
memory debug is that the SYS_TIMEOUT pool is running out. However, when I
increase this number and display the stats later, only 3 are used at the max.
I'm not sure the problem, but increasing MEMP_NUM_SYS_TIMEOUT beyond 3 fixes
it.

2) In apps/shell.c, there is a null pointer exception because at line 311,
the values are set to NULL. I'm not sure the proper behavior, but if you just
remove these and resize STATS_NUM  and edit stat_msgs accordingly, all is
well. Alternatively, the whole thing could be rewritten to use stat_display().




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?22983>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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