bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #39641] libobjc2 runtime_mutex lock leak in dtable.c


From: Nick Tuckett
Subject: [bug #39641] libobjc2 runtime_mutex lock leak in dtable.c
Date: Thu, 01 Aug 2013 11:18:30 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?39641>

                 Summary: libobjc2 runtime_mutex lock leak in dtable.c
                 Project: GNUstep
            Submitted by: ntuckett
            Submitted on: Thu 01 Aug 2013 11:18:29 AM GMT
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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);





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39641>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]