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

Submitter:  juan schiavoni <jjsch>
Submitted:  Fri 07 May 2010 10:27:37 PM UTC
   
 
Category:  TCP Severity:  1 - Wish
Item Group:  Crash Error Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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>
Group 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>
Group 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-12 goldsimon StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2010-05-11 goldsimon Severity3 - Normal 1 - Wish
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code