buglwIP - A Lightweight TCP/IP stack - Bugs: bug #29823, hang when close a connection in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #29823: hang when close a connection in the middle of a communication

Submitted by:  juan schiavoni <jjsch>
Submitted on:  Fri 07 May 2010 10:27:37 PM UTC  
 
Category: TCPSeverity: 1 - Wish
Item Group: Crash ErrorStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Sat 12 Jun 2010 03:00:34 PM UTC, comment #4:

Well, thanks for responding so fast ;-)

Anyway, you are using the stack in a way that is not supported: It has been repeated multiple times here and on the mailing lists that using a socket or netconn from 2 threads at a time is not supported!

Simon Goldschmidt <goldsimon>
Project Administrator
Sat 12 Jun 2010 12:05:52 AM UTC, comment #3:

Hi Simon,

I fix my problem, activating LWIP_TCPIP_CORE_LOCKING.

I use netconn_write from a different thread of netconn_recv.

Thanks a lot,
Juan

juan schiavoni <jjsch>
Wed 19 May 2010 05:27:27 PM UTC, comment #2:

Last call for answers: I'll close this as invalid in a few days.

Simon Goldschmidt <goldsimon>
Project Administrator
Tue 11 May 2010 07:11:59 PM UTC, comment #1:

It's pretty difficult to say from here what's wrong. What does "firmware hang" mean? Is it really a "crash error"? If you can say at which line it "hangs", can you debug a bit more? What are other threads doing at that time? Which function is executed? Is the function pointer correct or does it point to an address that doesn't belong to a valid function?

Simon Goldschmidt <goldsimon>
Project Administrator
Fri 07 May 2010 10:27:37 PM UTC, original submission:

Hi,

I need a support to find which could be the mistake that make the firmware hang when close the connection in the middle of a communication, in the line of

msg->msg.apimsg->function(&(msg->msg.apimsg->msg));

#if LWIP_NETCONN
case TCPIP_MSG_API:
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API message %p\n", (void *)msg));
msg->msg.apimsg->function(&(msg->msg.apimsg->msg));
break;
#endif /* LWIP_NETCONN */

Regards
Juan

juan schiavoni <jjsch>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by jjsch (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Jun 2010 03:00:34 PM UTCgoldsimonStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Tue 11 May 2010 07:11:59 PM UTCgoldsimonSeverity3 - Normal=>1 - Wish
      StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1