lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #25695] Segmentation fault in do_writemore(struct netc


From: Simon Braun
Subject: [lwip-devel] [bug #25695] Segmentation fault in do_writemore(struct netconn *conn)
Date: Thu, 05 Mar 2009 01:35:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0 (.NET CLR 3.5.30729)

Follow-up Comment #6, bug #25695 (project lwip):

Hi guys, I just diagnosed exactly the same problem here at InnerRange, and
came up with the same solution (setting netconn->state to NETCONN_NONE before
the call to API_EVENT).  I have tested this solution overnight and the problem
has not recurred (was occuring within 1 hour).  I think this is the correct
fix because when write_msg is set to NULL, the netconn is in an intermediate,
invalid state, until the 'finished' code is executed.  API_EVENT must not be
called while the netconn is invalid, so the simple solution is to set the
state to NETCONN_NONE early.  I can see how using sys_arch_sem_wait fixes the
problem but it will have other unexplored consequences.

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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