buglwIP - A Lightweight TCP/IP stack - Bugs: bug #3466, sockets.c: Usage of sys_sem_new()

 
 

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

bug #3466: sockets.c: Usage of sys_sem_new()

Submitted by:  None
Submitted on:  Mon 05 May 2003 10:10:53 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Kieran Mansley <kieranm>
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Wed 28 Feb 2007 01:49:26 PM UTC, comment #2:

This patch has been applied, so bug should be fixed. Please review and post any problems.

Kieran Mansley <kieranm>
Project AdministratorIn charge of this item.
Mon 26 Feb 2007 03:07:27 PM UTC, comment #1:

This will get fixed when patch #5468 gets applied (real soon now!)

Kieran Mansley <kieranm>
Project AdministratorIn charge of this item.
Mon 05 May 2003 10:10:53 AM UTC, original submission:

All calls to sys_sem_wait() in sockets.c are introduced by

if (!...)
... = sys_sem_new(1);

except for lwip_accept(), where sys_sem_wait() could be used on non-allocated semaphore.

(Moreover this construction is not thread-save. A task switch could occur between the decision that the semaphore needs creation and the actual call of sys_sem_new.)

Proposal: Allocate the semaphore only once, at lwip startup.

Anonymous

 

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 kieranm (Posted a comment)
  •  

    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
    Wed 28 Feb 2007 01:49:26 PM UTCkieranmStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 26 Feb 2007 03:07:27 PM UTCkieranmAssigned toNone=>kieranm
    Wed 07 May 2003 08:44:18 PM UTClikewiseCategoryNone=>(Error - Not Found)

    Back to the top


    Powered by Savane 3.1-cleanup1