bugGNUstep - Bugs: bug #39641, libobjc2 runtime_mutex lock leak...

 
 

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

bug #39641: libobjc2 runtime_mutex lock leak in dtable.c

Submitted by:  Nick Tuckett <ntuckett>
Submitted on:  Thu 01 Aug 2013 11:18:29 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: Ready For Test
Privacy: PublicAssigned to: None
Open/Closed: In Test

Fri 13 Dec 2013 03:14:24 PM UTC, comment #1:

David did apply your patch, please test again.

Fred Kiefer <FredKiefer>
Project Member
Thu 01 Aug 2013 11:18:29 AM UTC, original submission:

The latest version of this library (1.7) has a situation where a lock on the runtime_mutex can be leaked, eventually leading to blocked threads.

The following is a patch that fixes this:

--- a/dtable.c
+++ b/dtable.c
@@ -695,6 +695,7 @@ PRIVATE void objc_send_initialize(id object)
if (objc_test_class_flag(class, objc_class_flag_initialized))
{
UNLOCK(&initialize_lock);
+ UNLOCK_RUNTIME();
return;
}
BOOL skipMeta = objc_test_class_flag(meta, objc_class_flag_initialized);

Nick Tuckett <ntuckett>

 

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 FredKiefer (Posted a comment)
  • -unavailable- added by ntuckett (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Dec 2013 03:14:24 PM UTCFredKieferStatusNone=>Ready For Test
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup