[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #16830] err_tcp() posts to connection mailbox when no
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [bug #16830] err_tcp() posts to connection mailbox when no pend on the mailbox is active |
Date: |
Mon, 26 Feb 2007 14:07:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061221 Fedora/1.5.0.9-1.fc5 Firefox/1.5.0.9 |
Follow-up Comment #2, bug #16830 (project lwip):
I can confirm the problem exists. I can't offer a simple fix - I think a more
radical overhaul would be needed given the requirements for thread safety, and
probably involving something protected with the SYS_ARCH_PROTECT stuff.
What I did want to say is that this is not the only problem with the err_tcp
communication mechanism: errors can result in one of these null messages
being left in conn->mbox when netconn_delete is called. OSes do not freeing
mboxes with messages in - doing so might imply a memory leak. I am attaching
a patch I used in my own code, but I didn't contribute it because of the
problem indicated by the FIXME comment.
(file #12041)
_______________________________________________________
Additional Item Attachment:
File name: lwip.netconndelete.free.mbox.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?16830>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/