bug-gnustep
[Top][All Lists]
Advanced

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

[bug #33405] Release fails in multithreaded environment


From: Thomas Davie
Subject: [bug #33405] Release fails in multithreaded environment
Date: Thu, 26 May 2011 07:01:05 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1

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

                 Summary: Release fails in multithreaded environment
                 Project: GNUstep
            Submitted by: beelsebob
            Submitted on: Thu 26 May 2011 07:01:04 AM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When an NSThread has been created, release no longer causes objects to hit a
retain count of 0, and no longer triggers deallocation.  Source to reproduce
the problem is attached.  Using svn trunk clang, libobjc2, gnustep-make and
gnustep-base, my output from this is:

tatd2@GLaDOS:~/Desktop$ ./obj/Test
2011-05-26 06:51:53.532 Test[4334] Testing outside thread
2011-05-26 06:51:53.533 Test[4334] Allocing A 0xab2b20
2011-05-26 06:51:53.533 Test[4334] Releasing A 0xab2b20 (count before 1)
2011-05-26 06:51:53.533 Test[4334] Dealloc A 0xab2b20
2011-05-26 06:51:53.533 Test[4334] 
2011-05-26 06:51:53.533 Test[4334] Testing outside thread again
2011-05-26 06:51:53.533 Test[4334] Allocing A 0xab2b20
2011-05-26 06:51:53.533 Test[4334] Releasing A 0xab2b20 (count before 1)
2011-05-26 06:51:53.533 Test[4334] Dealloc A 0xab2b20
2011-05-26 06:51:53.533 Test[4334] 
2011-05-26 06:51:53.533 Test[4334] Testing inside thread
2011-05-26 06:51:53.534 Test[4334] Allocing A 0xadae30
2011-05-26 06:51:53.534 Test[4334] Releasing A 0xadae30 (count before 1)
2011-05-26 06:51:53.534 Test[4334] 
2011-05-26 06:51:53.534 Test[4334] Testing outside thread again
2011-05-26 06:51:53.534 Test[4334] Allocing A 0xb8ae30
2011-05-26 06:51:53.534 Test[4334] Releasing A 0xb8ae30 (count before 1)




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 26 May 2011 07:01:04 AM GMT  Name: test.m  Size: 1kB   By: beelsebob

<http://savannah.gnu.org/bugs/download.php?file_id=23451>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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