buglwIP - A Lightweight TCP/IP stack - Bugs: bug #16390, Crash through adding and removing...

 
 

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

bug #16390: Crash through adding and removing tcb's to the TIME_WAIT list

Submitted by:  None
Submitted on:  Thu 20 Apr 2006 04:22:49 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Fri 21 Apr 2006 04:37:28 PM UTC, comment #1:

Ok i did some more investigations...

the problem occured also at the active list.

And it occures if you write or read to/from connection if a further write or read returns an error and is not handled. In my case it was a webserver application. I wrote and wrote and wrote without checking for errors because I thought the lower layers will handle it if there is a problem with writing to a connection in a "wrong" state. The problem occured if the client is resetting or closing the connection. The write give me an error and I didn't handle it and continued writing. After this point the tcb lists get meshed up.

I do error checking now and I am closing the connection if there is an error and everything works fine.

Anonymous
Thu 20 Apr 2006 04:22:49 AM UTC, original submission:

I had a problem when I did a heavy load test on a webserver with a multitasking os I programmed. The program hangs in the tcp_input function where it looks in the TIMED_WAIT list for connection that might get data now. Once there was only one tcp in the list and the ->next pointer was pointing to the tcp itselfe. An other time there were two connections in the list and the last points to the first.

If I alter the last ->next to NULL in the list with my debugger it runs again.

I am not shure how to solve. I surrounded them with sys_arch_protect and -unprotect but the problem didn't went away. It comes up not as often as before but it is till there.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Date Changed By Updated Field Previous Value => Replaced By
Sat 25 Nov 2006 10:09:29 AM UTCchristiaansStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1