lwIP - A Lightweight TCP/IP stack - Bugs: bug #20791, conn->recvmbox might be deleted...
You are not allowed to post comments on this tracker with your current authentication level.
bug #20791: conn->recvmbox might be deleted twice in netconn_delete() and netconn_recv
Submitter: | Howell ZHU <howellzhu> | ||
Submitted: | Wed 15 Aug 2007 04:32:52 PM UTC | ||
Category: | TCP | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | None |
Jump to the original submission
Wed 22 Aug 2007 11:40:58 AM UTC, comment #7: |
Frédéric Bernon <fbernon> |
Wed 22 Aug 2007 06:14:13 AM UTC, comment #6: no, go ahead. |
Simon Goldschmidt <goldsimon> |
Tue 21 Aug 2007 11:43:40 PM UTC, comment #5: Since we have already define in others tasks (see coment#2) that this kind of multithread issue would/is not be supported by lwip, I propose to close it as "invalid". No objects?
|
Frédéric Bernon <fbernon> |
Thu 16 Aug 2007 08:22:09 AM UTC, comment #4: First of all, since this part of the code has changed in current CVS HEAD (there is no sys_mbox_free in netconn_recv, and we have introduce LWIP_TCPIP_CORE_LOCKING option to avoid some deadlocking problems with the "mbox" way to communicate between the application task and the tcpip_thread), you should test it (like Jonathan say in comment #1, it's not a waste of time). If you do it, look the CHANGELOG file to see the differences, and perhaps take a look at "http://lwip.scribblewiki.com/LwIP_version_1.3.0_release_notes", even if it's not complete...
|
Frédéric Bernon <fbernon> |
Thu 16 Aug 2007 03:25:29 AM UTC, comment #3: Hi Jonathan and Frédéric,
|
Howell ZHU <howellzhu> |
Wed 15 Aug 2007 09:30:33 PM UTC, comment #2: More, lwIP is not safe-thread on one socket: you should not call with a Task A netconn_delete, in the same time a Task B is "blocked" on a netconn_recv. In a general way, you should not use two "application" tasks on a same socket/netconn... You can find some informations/talks on :
|
Frédéric Bernon <fbernon> |
Wed 15 Aug 2007 04:49:47 PM UTC, comment #1: Hi Howell,
|
Jonathan Larmour <jifl> |
Wed 15 Aug 2007 04:32:52 PM UTC, original submission:
Assuming A task invoked netconn_delete(), while B task was pending on netconn_recv().
|
Howell ZHU <howellzhu> |
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.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-08-22 | fbernon | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
So, it's not something which will be fixed for the moment...
This is something to document in http://lwip.scribblewiki.com/LwIP_and_multithreading